forked from mirrors/org-mode
Allow multiple %(expression) instances in org-agenda-prefix-format
* lisp/org-agenda.el (org-compile-prefix-format): Use non-greedy match for %(expression). Previously, format like "%-12.12s%(expr1) %(expr2)" would not be parsed correctly because of greedy "(.+)" regexp used to match the expressions.
This commit is contained in:
parent
d96e897579
commit
0260d2fcf6
|
@ -6927,7 +6927,7 @@ and stored in the variable `org-prefix-format-compiled'."
|
|||
(t " %-12:c%?-12t% s")))
|
||||
(start 0)
|
||||
varform vars var c f opt) ;; e
|
||||
(while (string-match "%\\(\\?\\)?\\([-+]?[0-9.]*\\)\\([ .;,:!?=|/<>]?\\)\\([cltseib]\\|(.+)\\)"
|
||||
(while (string-match "%\\(\\?\\)?\\([-+]?[0-9.]*\\)\\([ .;,:!?=|/<>]?\\)\\([cltseib]\\|(.+?)\\)"
|
||||
s start)
|
||||
(setq var (or (cdr (assoc (match-string 4 s)
|
||||
'(("c" . category) ("t" . time) ("l" . level) ("s" . extra)
|
||||
|
|
Loading…
Reference in New Issue