Only match complete words in org-export-add-options-to-plist
* org-exp.el (org-export-add-options-to-plist): Require match to start at a word-boundary. Previously, if an option was the suffix of another option (such as TeX and LaTeX) the setting for the former would propagator to the latter. This seems like an unintended consequence of a lax regexp in org-export-add-options-to-plist. This patch allows options to share a suffix with another option by requiring that the match against an option starts at a word-boundary.
This commit is contained in:
parent
2fb8bff528
commit
aa6dba8a74
|
@ -830,7 +830,7 @@ security risks."
|
||||||
(let ((op org-export-plist-vars))
|
(let ((op org-export-plist-vars))
|
||||||
(while (setq o (pop op))
|
(while (setq o (pop op))
|
||||||
(if (and (nth 1 o)
|
(if (and (nth 1 o)
|
||||||
(string-match (concat (regexp-quote (nth 1 o))
|
(string-match (concat "\\<" (regexp-quote (nth 1 o))
|
||||||
":\\([^ \t\n\r;,.]*\\)")
|
":\\([^ \t\n\r;,.]*\\)")
|
||||||
options))
|
options))
|
||||||
(setq p (plist-put p (car o)
|
(setq p (plist-put p (car o)
|
||||||
|
|
Loading…
Reference in New Issue