From 58e45f4df1deaa1926617df515b32d32d6756623 Mon Sep 17 00:00:00 2001 From: Bastien Guerry Date: Thu, 22 May 2014 12:38:06 +0200 Subject: [PATCH] org.el (org-entry-properties): Ensure the special property is not commented out when matched MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * org.el (org-entry-properties): Ensure the special property is not commented out when matched. Other an agenda view like (tags "DEADLINE<\"<+0d>\"" ...) will wrongly list an entry with a commented out DEADLINE line, because org-agenda-skip only skip commented out stuff on the current line, with is the headline itself when using "tags" agenda. Thanks to Sébastien for reporting this. --- lisp/org.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index d970cdb45..e1dff1348 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -15277,7 +15277,10 @@ things up because then unnecessary parsing is avoided." '("SCHEDULED" "DEADLINE" "CLOCK" "CLOSED" "TIMESTAMP" "TIMESTAMP_IA"))) (catch 'match - (while (re-search-forward org-maybe-keyword-time-regexp end t) + (while (and (re-search-forward org-maybe-keyword-time-regexp end t) + (not (text-property-any 0 (length (match-string 0)) + 'face 'font-lock-comment-face + (match-string 0)))) (setq key (if (match-end 1) (substring (org-match-string-no-properties 1) 0 -1)) -- 2.11.4.GIT