From 157591db7cb00ceba586c6592a10fa6126be7d7a Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sun, 28 Jun 2015 21:09:59 +0200 Subject: [PATCH] Fix `org-decrease-number-at-point' * lisp/org.el (org-decrease-number-at-point): Handle the case when INC is nil. --- lisp/org.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index e39b30c0a..f8a623d62 100755 --- a/lisp/org.el +++ b/lisp/org.el @@ -20779,7 +20779,7 @@ this numeric value." With an optional prefix numeric argument INC, decrement using this numeric value." (interactive "p") - (org-increase-number-at-point (- inc))) + (org-increase-number-at-point (- (or inc 1)))) (defun org-ctrl-c-ret () "Call `org-table-hline-and-move' or `org-insert-heading' dep. on context."