Resurrect ^:{} option
* lisp/org.el (org-set-regexps-and-options, org--setup-collect-keywords): Check OPTIONS keywords for information about sub/superscript. Reported-by: Thomas Holst <thomas.holst@de.bosch.com> <http://permalink.gmane.org/gmane.emacs.orgmode/93117>
This commit is contained in:
parent
e1adb17ba5
commit
6289d8ecf4
13
lisp/org.el
13
lisp/org.el
|
@ -4948,8 +4948,8 @@ related expressions."
|
||||||
(append '("FILETAGS" "TAGS" "SETUPFILE")
|
(append '("FILETAGS" "TAGS" "SETUPFILE")
|
||||||
(and (not tags-only)
|
(and (not tags-only)
|
||||||
'("ARCHIVE" "CATEGORY" "COLUMNS" "CONSTANTS"
|
'("ARCHIVE" "CATEGORY" "COLUMNS" "CONSTANTS"
|
||||||
"LINK" "PRIORITIES" "PROPERTY" "SEQ_TODO"
|
"LINK" "OPTIONS" "PRIORITIES" "PROPERTY"
|
||||||
"STARTUP" "TODO" "TYP_TODO")))))))
|
"SEQ_TODO" "STARTUP" "TODO" "TYP_TODO")))))))
|
||||||
(org--setup-process-tags
|
(org--setup-process-tags
|
||||||
(cdr (assq 'tags alist)) (cdr (assq 'filetags alist)))
|
(cdr (assq 'tags alist)) (cdr (assq 'filetags alist)))
|
||||||
(unless tags-only
|
(unless tags-only
|
||||||
|
@ -4979,6 +4979,9 @@ related expressions."
|
||||||
(org-set-local 'org-highest-priority (nth 0 priorities))
|
(org-set-local 'org-highest-priority (nth 0 priorities))
|
||||||
(org-set-local 'org-lowest-priority (nth 1 priorities))
|
(org-set-local 'org-lowest-priority (nth 1 priorities))
|
||||||
(org-set-local 'org-default-priority (nth 2 priorities))))
|
(org-set-local 'org-default-priority (nth 2 priorities))))
|
||||||
|
;; Scripts.
|
||||||
|
(let ((scripts (cdr (assq 'scripts alist))))
|
||||||
|
(when scripts (org-set-local 'org-use-sub-superscripts scripts)))
|
||||||
;; Startup options.
|
;; Startup options.
|
||||||
(let ((startup (cdr (assq 'startup alist))))
|
(let ((startup (cdr (assq 'startup alist))))
|
||||||
(dolist (option startup)
|
(dolist (option startup)
|
||||||
|
@ -5094,7 +5097,7 @@ files. ALIST, when non-nil, is the alist computed so far.
|
||||||
|
|
||||||
Return value contains the following keys: `archive', `category',
|
Return value contains the following keys: `archive', `category',
|
||||||
`columns', `constants', `filetags', `link', `priorities',
|
`columns', `constants', `filetags', `link', `priorities',
|
||||||
`property', `startup', `tags' and `todo'."
|
`property', `startup', `tags', `todo' and `scripts'."
|
||||||
(org-with-wide-buffer
|
(org-with-wide-buffer
|
||||||
(goto-char (point-min))
|
(goto-char (point-min))
|
||||||
(let ((case-fold-search t))
|
(let ((case-fold-search t))
|
||||||
|
@ -5137,6 +5140,10 @@ Return value contains the following keys: `archive', `category',
|
||||||
(org-match-string-no-properties 2 value))))
|
(org-match-string-no-properties 2 value))))
|
||||||
(if links (push pair (cdr links))
|
(if links (push pair (cdr links))
|
||||||
(push (list 'link pair) alist)))))
|
(push (list 'link pair) alist)))))
|
||||||
|
((equal key "OPTIONS")
|
||||||
|
(when (and (org-string-nw-p value)
|
||||||
|
(string-match "\\^:\\(t\\|nil\\|{}\\)" value))
|
||||||
|
(push (cons 'scripts (read (match-string 1 value))) alist)))
|
||||||
((equal key "PRIORITIES")
|
((equal key "PRIORITIES")
|
||||||
(push (cons 'priorities
|
(push (cons 'priorities
|
||||||
(let ((prio (org-split-string value)))
|
(let ((prio (org-split-string value)))
|
||||||
|
|
Loading…
Reference in New Issue