diff options
author | Lawrence Mitchell <wence@gmx.li> | 2011-01-20 18:23:22 +0000 |
---|---|---|
committer | Bastien Guerry <bzg@altern.org> | 2011-02-13 00:47:51 +0100 |
commit | aa6dba8a74016587755c250bb8cc4743a4082ea1 (patch) | |
tree | 85d8fd3d1d9757a8830186e0ae6339280ae0701a | |
parent | 2fb8bff5287e4ab36e934a674db0a3bac11028c3 (diff) | |
download | org-mode-aa6dba8a74016587755c250bb8cc4743a4082ea1.tar.gz |
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.
-rw-r--r-- | lisp/org-exp.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org-exp.el b/lisp/org-exp.el index a265c3b..4a10303 100644 --- a/lisp/org-exp.el +++ b/lisp/org-exp.el @@ -830,7 +830,7 @@ security risks." (let ((op org-export-plist-vars)) (while (setq o (pop op)) (if (and (nth 1 o) - (string-match (concat (regexp-quote (nth 1 o)) + (string-match (concat "\\<" (regexp-quote (nth 1 o)) ":\\([^ \t\n\r;,.]*\\)") options)) (setq p (plist-put p (car o) |