summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <n.goaziou@gmail.com>2011-10-23 18:14:21 +0200
committerNicolas Goaziou <n.goaziou@gmail.com>2011-10-23 18:14:58 +0200
commit77eeb0df1b149e8beb0a052334cffc7f826e2e7a (patch)
treec6bc836ecb715d03835978e427da2c4cfae76ca9
parentb83e532174cbdf55025a21c29d00a8364614a0b6 (diff)
downloadorg-mode-77eeb0df1b149e8beb0a052334cffc7f826e2e7a.tar.gz
Fix regexps for headlines
* lisp/org.el (org-set-regexps-and-options): Fix small bug introduced by commit dfcb6faef11a2439b56b18a6289803361d402130.
-rw-r--r--lisp/org.el12
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/org.el b/lisp/org.el
index eca98d5..d22feee 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -4654,24 +4654,24 @@ means to push this value onto the list in the variable.")
(mapconcat 'regexp-quote org-not-done-keywords "\\|")
"\\)")
org-heading-regexp
- "\\(\\*+\\)\\(?: +\\(.*?\\)\\)?[ \t]*$"
+ "^\\(\\*+\\)\\(?: +\\(.*?\\)\\)?[ \t]*$"
org-heading-keyword-regexp-format
- "\\(\\*+\\)\\(?: +%s\\)\\(?: +\\(.*?\\)\\)?[ \t]*$"
+ "^\\(\\*+\\)\\(?: +%s\\)\\(?: +\\(.*?\\)\\)?[ \t]*$"
org-heading-keyword-maybe-regexp-format
- "\\(\\*+\\)\\(?: +%s\\)?\\(?: +\\(.*?\\)\\)?[ \t]*$"
+ "^\\(\\*+\\)\\(?: +%s\\)?\\(?: +\\(.*?\\)\\)?[ \t]*$"
org-not-done-heading-regexp
(format org-heading-keyword-regexp-format org-not-done-regexp)
org-todo-line-regexp
(format org-heading-keyword-maybe-regexp-format org-todo-regexp)
org-complex-heading-regexp
- (concat "\\(\\*+\\)"
+ (concat "^\\(\\*+\\)"
"\\(?: +" org-todo-regexp "\\)?"
"\\(?: +\\(\\[#.\\]\\)\\)?"
"\\(?: +\\(.*?\\)\\)?"
(org-re "\\(?:[ \t]+\\(:[[:alnum:]_@#%:]+:\\)\\)?")
"[ \t]*$")
org-complex-heading-regexp-format
- (concat "\\(\\*+\\)"
+ (concat "^\\(\\*+\\)"
"\\(?: +" org-todo-regexp "\\)?"
"\\(?: +\\(\\[#.\\]\\)\\)?"
"\\(?: +"
@@ -4683,7 +4683,7 @@ means to push this value onto the list in the variable.")
(org-re "\\(?:[ \t]+\\(:[[:alnum:]_@#%%:]+:\\)\\)?")
"[ \t]*$")
org-todo-line-tags-regexp
- (concat "\\(\\*+\\)"
+ (concat "^\\(\\*+\\)"
"\\(?: +" org-todo-regexp "\\)?"
"\\(?: +\\(.*?\\)\\)?"
(org-re "\\(?:[ \t]+\\(:[[:alnum:]:_@#%]+:\\)\\)?")