From: Carsten Dominik Date: Thu, 1 Mar 2007 06:08:15 +0000 (+0000) Subject: (org-prepare-agenda-buffers): Also check for invisible heading. X-Git-Tag: emacs-pretest-22.0.95~19 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3cee14950cd1ff2a23c0ecb153f829c0c4873845;p=emacs.git (org-prepare-agenda-buffers): Also check for invisible heading. --- diff --git a/lisp/textmodes/org.el b/lisp/textmodes/org.el index 7772f7cb966..61d4a690ef9 100644 --- a/lisp/textmodes/org.el +++ b/lisp/textmodes/org.el @@ -13633,7 +13633,7 @@ Optional argument FILE means, use this file instead of the current." (when org-agenda-skip-archived-trees (goto-char (point-min)) (while (re-search-forward rea nil t) - (if (org-on-heading-p) + (if (org-on-heading-p t) (add-text-properties (point-at-bol) (org-end-of-subtree t) pa)))) (goto-char (point-min)) (setq re (concat "^\\*+ +" org-comment-string "\\>"))