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>
This commit is contained in:
Nicolas Goaziou 2015-08-10 13:54:19 +02:00
parent 7204ba0e46
commit 07a2d3d6f5
1 changed files with 1 additions and 1 deletions

View File

@ -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