From 938e1ef3bf4e65ae38acc2097219be24db6e73d3 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Thu, 27 Mar 2014 16:13:58 +0100 Subject: [PATCH] Fix `org-in-commented-heading-p' * lisp/org.el (org-in-commented-heading-p): Fix recursive call. http://permalink.gmane.org/gmane.emacs.orgmode/84294 --- lisp/org.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index a1b9b0bdf..bb83eb7c6 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -23311,9 +23311,8 @@ unless optional argument NO-INHERITANCE is non-nil." (org-string-match-p (concat "^" org-comment-string "\\(?: \\|$\\)") headline))))) (no-inheritance nil) - (t (save-excursion - (and (org-up-heading-safe) - (org-in-commented-heading-p t)))))) + (t + (save-excursion (and (org-up-heading-safe) (org-in-commented-heading-p)))))) (defun org-at-comment-p nil "Is cursor in a line starting with a # character?"