|
@@ -4447,6 +4447,22 @@ means to push this value onto the list in the variable.")
|
|
|
(org-remove-if (lambda (p) (string= (car p) key)) props)))
|
|
|
(cons (cons key val) props)))
|
|
|
|
|
|
+(defconst org-block-regexp
|
|
|
+ "^[ \t]*#\\+begin_?\\([^ \n]+\\)\\(\\([^\n]+\\)\\)?\n\\([^\000]+?\\)#\\+end_?\\1[ \t]*$"
|
|
|
+ "Regular expression for hiding blocks.")
|
|
|
+(defconst org-heading-keyword-regexp-format
|
|
|
+ "^\\(\\*+\\)\\(?: +%s\\)\\(?: +\\(.*?\\)\\)?[ \t]*$"
|
|
|
+ "Printf format for a regexp matching an headline with some keyword.
|
|
|
+This regexp will match the headline of any node which has the
|
|
|
+exact keyword that is put into the format. The keyword isn't in
|
|
|
+any group by default, but the stars and the body are.")
|
|
|
+(defconst org-heading-keyword-maybe-regexp-format
|
|
|
+ "^\\(\\*+\\)\\(?: +%s\\)?\\(?: +\\(.*?\\)\\)?[ \t]*$"
|
|
|
+ "Printf format for a regexp matching an headline, possibly with some keyword.
|
|
|
+This regexp can match any headline with the specified keyword, or
|
|
|
+without a keyword. The keyword isn't in any group by default,
|
|
|
+but the stars and the body are.")
|
|
|
+
|
|
|
(defun org-set-regexps-and-options ()
|
|
|
"Precompute regular expressions for current buffer."
|
|
|
(when (eq major-mode 'org-mode)
|
|
@@ -4869,18 +4885,6 @@ sure that we are at the beginning of the line.")
|
|
|
(defconst org-heading-regexp "^\\(\\*+\\)\\(?: +\\(.*?\\)\\)?[ \t]*$"
|
|
|
"Matches an headline, putting stars and text into groups.
|
|
|
Stars are put in group 1 and the trimmed body in group 2.")
|
|
|
-(defconst org-heading-keyword-regexp-format
|
|
|
- "^\\(\\*+\\)\\(?: +%s\\)\\(?: +\\(.*?\\)\\)?[ \t]*$"
|
|
|
- "Printf format for a regexp matching an headline with some keyword.
|
|
|
-This regexp will match the headline of any node which has the
|
|
|
-exact keyword that is put into the format. The keyword isn't in
|
|
|
-any group by default, but the stars and the body are.")
|
|
|
-(defconst org-heading-keyword-maybe-regexp-format
|
|
|
- "^\\(\\*+\\)\\(?: +%s\\)?\\(?: +\\(.*?\\)\\)?[ \t]*$"
|
|
|
- "Printf format for a regexp matching an headline, possibly with some keyword.
|
|
|
-This regexp can match any headline with the specified keyword, or
|
|
|
-without a keyword. The keyword isn't in any group by default,
|
|
|
-but the stars and the body are.")
|
|
|
|
|
|
;;;###autoload
|
|
|
(define-derived-mode org-mode outline-mode "Org"
|
|
@@ -6631,10 +6635,6 @@ DATA should have been made by `org-outline-overlay-data'."
|
|
|
|
|
|
;;; Folding of blocks
|
|
|
|
|
|
-(defconst org-block-regexp
|
|
|
- "^[ \t]*#\\+begin_?\\([^ \n]+\\)\\(\\([^\n]+\\)\\)?\n\\([^\000]+?\\)#\\+end_?\\1[ \t]*$"
|
|
|
- "Regular expression for hiding blocks.")
|
|
|
-
|
|
|
(defvar org-hide-block-overlays nil
|
|
|
"Overlays hiding blocks.")
|
|
|
(make-variable-buffer-local 'org-hide-block-overlays)
|