# HG changeset patch # User Carsten Dominik # Date 1172729295 0 # Node ID 9d0480c6016a2627261b1864226fafee3bd17879 # Parent a5f83aa322a483408c2116be73131bb2ec3038a2 (org-prepare-agenda-buffers): Also check for invisible heading. diff -r a5f83aa322a4 -r 9d0480c6016a lisp/textmodes/org.el --- a/lisp/textmodes/org.el Thu Mar 01 06:07:36 2007 +0000 +++ b/lisp/textmodes/org.el Thu Mar 01 06:08:15 2007 +0000 @@ -13633,7 +13633,7 @@ (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 "\\>"))