aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArash Esbati2017-08-11 23:57:35 +0200
committerTassilo Horn2017-08-12 08:11:11 +0200
commit19d2b4a3e2eb900158f0e78864d971b44cc8ea89 (patch)
treec03d07ee78ec186ca623158d36fde0a19e242c2a
parente3ed43f4ac667d39fffcc48cfbe97b074f9aa5c7 (diff)
downloademacs-19d2b4a3e2eb900158f0e78864d971b44cc8ea89.tar.gz
emacs-19d2b4a3e2eb900158f0e78864d971b44cc8ea89.zip
Make a case-sensitive match for strings
* lisp/textmodes/reftex.el (reftex-typekey-check): Temporarily let-bind `case-fold-search' to nil in order to be case-sensitive when matching a string. (Bug#27518)
-rw-r--r--lisp/textmodes/reftex.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/textmodes/reftex.el b/lisp/textmodes/reftex.el
index 9754d2b20ff..d46bd0dacdd 100644
--- a/lisp/textmodes/reftex.el
+++ b/lisp/textmodes/reftex.el
@@ -1496,7 +1496,8 @@ When DIE is non-nil, throw an error if file not found."
1496 (and n (setq conf-variable (nth n conf-variable))) 1496 (and n (setq conf-variable (nth n conf-variable)))
1497 (or (eq conf-variable t) 1497 (or (eq conf-variable t)
1498 (and (stringp conf-variable) 1498 (and (stringp conf-variable)
1499 (string-match (concat "[" conf-variable "]") typekey)))) 1499 (let ((case-fold-search nil))
1500 (string-match (concat "[" conf-variable "]") typekey)))))
1500 1501
1501(defun reftex-check-recursive-edit () 1502(defun reftex-check-recursive-edit ()
1502 ;; Check if we are already in a recursive edit. Abort with helpful 1503 ;; Check if we are already in a recursive edit. Abort with helpful