|
@@ -5938,14 +5938,12 @@ by a #."
|
|
|
(add-text-properties
|
|
|
beg (match-end 0)
|
|
|
'(font-lock-fontified t face font-lock-comment-face)))
|
|
|
- ((not (member (char-after beg) '(?\ ?\t)))
|
|
|
- ;; just any other in-buffer setting, but not indented
|
|
|
+ (t ;; just any other in-buffer setting, but not indented
|
|
|
(org-remove-flyspell-overlays-in (match-beginning 0) (match-end 0))
|
|
|
(add-text-properties
|
|
|
beg (match-end 0)
|
|
|
'(font-lock-fontified t face org-meta-line))
|
|
|
- t)
|
|
|
- (t nil))))))
|
|
|
+ t))))))
|
|
|
|
|
|
(defun org-fontify-drawers (limit)
|
|
|
"Fontify drawers."
|
|
@@ -9344,7 +9342,7 @@ call CMD."
|
|
|
(goto-char (point-min))
|
|
|
(put-text-property (point) (point-max) 'org-category def-cat)
|
|
|
(while (re-search-forward
|
|
|
- "^\\(#\\+CATEGORY:\\|[ \t]*:CATEGORY:\\)\\(.*\\)" nil t)
|
|
|
+ "^[ \t]*\\(#\\+CATEGORY:\\|[ \t]*:CATEGORY:\\)\\(.*\\)" nil t)
|
|
|
(setq pos (match-end 0)
|
|
|
optionp (equal (char-after (match-beginning 0)) ?#)
|
|
|
cat (org-trim (match-string 2)))
|
|
@@ -12137,7 +12135,7 @@ expands them."
|
|
|
(rpl (nth (if musep 2 1) cell))
|
|
|
(ind ""))
|
|
|
(delete-region start (point))
|
|
|
- (when (string-match "\\`#\\+" rpl)
|
|
|
+ (when (string-match "\\`[ \t]*#\\+" rpl)
|
|
|
(cond
|
|
|
((bolp))
|
|
|
((not (string-match "\\S-" (buffer-substring (point-at-bol) (point))))
|
|
@@ -15676,7 +15674,7 @@ formats in the current buffer."
|
|
|
(widen)
|
|
|
(goto-char (point-min))
|
|
|
(while (re-search-forward
|
|
|
- "^\\(#\\+COLUMNS:\\|[ \t]*:COLUMNS:\\)[ \t]*\\(.*\\)"
|
|
|
+ "^[ \t]*\\(#\\+COLUMNS:\\|[ \t]*:COLUMNS:\\)[ \t]*\\(.*\\)"
|
|
|
nil t)
|
|
|
(setq cfmt (match-string 2) s 0)
|
|
|
(while (string-match (org-re "%[0-9]*\\([-[:alnum:]_]+\\)")
|
|
@@ -21720,16 +21718,16 @@ and :keyword."
|
|
|
;; New the "medium" contexts: clocktables, source blocks
|
|
|
(cond ((org-in-clocktable-p)
|
|
|
(push (list :clocktable
|
|
|
- (and (or (looking-at "#\\+BEGIN: clocktable")
|
|
|
- (search-backward "#+BEGIN: clocktable" nil t))
|
|
|
- (match-beginning 0))
|
|
|
- (and (re-search-forward "#\\+END:?" nil t)
|
|
|
+ (and (or (looking-at "[ \t]*\\(#\\+BEGIN: clocktable\\)")
|
|
|
+ (re-search-backward "[ \t]*\\(#+BEGIN: clocktable\\)" nil t))
|
|
|
+ (match-beginning 1))
|
|
|
+ (and (re-search-forward "[ \t]*#\\+END:?" nil t)
|
|
|
(match-end 0))) clist))
|
|
|
((org-in-src-block-p)
|
|
|
(push (list :src-block
|
|
|
- (and (or (looking-at "#\\+BEGIN_SRC")
|
|
|
- (search-backward "#+BEGIN_SRC" nil t))
|
|
|
- (match-beginning 0))
|
|
|
+ (and (or (looking-at "[ \t]*\\(#\\+BEGIN_SRC\\)")
|
|
|
+ (re-search-backward "[ \t]*\\(#+BEGIN_SRC\\)" nil t))
|
|
|
+ (match-beginning 1))
|
|
|
(and (search-forward "#+END_SRC" nil t)
|
|
|
(match-beginning 0))) clist))))
|
|
|
(goto-char p)
|