From 3cee14950cd1ff2a23c0ecb153f829c0c4873845 Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Thu, 1 Mar 2007 06:08:15 +0000 Subject: [PATCH] (org-prepare-agenda-buffers): Also check for invisible heading. --- lisp/textmodes/org.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 "\\>")) -- 2.39.2