Jelajahi Sumber

org.el (org-refresh-category-properties): Regexp enhancement

* org.el (org-refresh-category-properties): Regexp enhancement.

TINYCHANGE
Malcolm Purvis 10 tahun lalu
induk
melakukan
3af4949a07
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      lisp/org.el

+ 1 - 1
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:\\|[ \t]*:CATEGORY:\\)\\(.*\\)" nil t)
+		 "^[ \t]*\\(#\\+CATEGORY:\\|*:CATEGORY:\\)\\(.*\\)" nil t)
 	   (setq pos (match-end 0)
 		 optionp (equal (char-after (match-beginning 0)) ?#)
 		 cat (org-trim (match-string 2)))