From 60bfafcb0c52192fc9238c22e2c4f02d461f135b Mon Sep 17 00:00:00 2001 From: Achim Gratz Date: Tue, 29 Jul 2014 23:28:08 +0200 Subject: [PATCH] org.el (org-refresh-category-properties): Enhance regexp * org.el (org-refresh-category-properties): Enhance regexp. --- lisp/org.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index 4cdcd26e3..27f7f29d3 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -9474,7 +9474,7 @@ The refresh happens only for the current tree (not subtree)." (goto-char (point-min)) (put-text-property (point) (point-max) 'org-category def-cat) (while (re-search-forward - "^[ \t]*\\(#\\+CATEGORY:\\|:CATEGORY:\\)\\(.*\\)" nil t) + "^[ \t]*\\(\\(?:#\\+\\|:\\)CATEGORY:\\)\\(.*\\)" nil t) (setq pos (match-end 0) optionp (equal (char-after (match-beginning 0)) ?#) cat (org-trim (match-string 2))) -- 2.11.4.GIT