Browse Source

org-agenda.el (org-agenda-skip): Fix bug by correctly skipping commented scheduled/deadline lines

* org-agenda.el (org-agenda-skip): Fix bug by correctly
skipping commented scheduled/deadline lines.

This fixes a bug introduced in
http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=211b13
Bastien Guerry 5 years ago
parent
commit
582cca5806
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/org-agenda.el

+ 1 - 1
lisp/org-agenda.el

@@ -3729,7 +3729,7 @@ Also moves point to the end of the skipped region, so that search can
 continue from there."
   (let ((p (point-at-bol)) to)
     (when (or
-	   (eq (get-text-property p 'face) 'font-lock-comment-face)
+	   (save-excursion (goto-char p) (looking-at comment-start-skip))
 	   (and org-agenda-skip-archived-trees (not org-agenda-archives-mode)
 		(get-text-property p :org-archived)
 		(org-end-of-subtree t))