summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2015-08-10 13:54:19 +0200
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2015-08-10 13:54:19 +0200
commit07a2d3d6f5cd56b915d413190802ef81988ba260 (patch)
treeed9caafcd625d01e5bd33e415e15b5a156d95a25
parent7204ba0e4616714d22f04af62ee8e375275f1353 (diff)
downloadorg-mode-07a2d3d6f5cd56b915d413190802ef81988ba260.tar.gz
Fix agenda wrt commented headlines
* lisp/org.el (org-agenda-prepare-buffers): Ignore commented headlines deeper than level 1. Reported-by: Samuel Wales <samologist@gmail.com> <http://permalink.gmane.org/gmane.emacs.orgmode/99529>
-rwxr-xr-xlisp/org.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el
index bc3945c..d0ef7a6 100755
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -18713,7 +18713,7 @@ When a buffer is unmodified, it is just killed. When modified, it is saved
(if (org-at-heading-p t)
(add-text-properties (point-at-bol) (org-end-of-subtree t) pa))))
(goto-char (point-min))
- (setq re (format "^\\* .*\\<%s\\>" org-comment-string))
+ (setq re (format "^\\*+ .*\\<%s\\>" org-comment-string))
(while (re-search-forward re nil t)
(when (save-match-data (org-in-commented-heading-p t))
(add-text-properties