aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Richard2015-08-06 13:05:11 +0200
committerNicolas Richard2015-08-09 18:41:43 +0200
commit7f1baf2bfa0369c68d41cc178c482d26068e43a4 (patch)
tree1f9f36d06345db24e02889670ee5dc42fe760091
parent3e9759a3d5a254f3074e391f147e52afb1d9734f (diff)
downloademacs-7f1baf2bfa0369c68d41cc178c482d26068e43a4.tar.gz
emacs-7f1baf2bfa0369c68d41cc178c482d26068e43a4.zip
ffap: disallow braces in filenames for tex modes
* lisp/ffap.el (ffap-string-at-point-mode-alist): Don't allow braces in tex-related modes.
-rw-r--r--lisp/ffap.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/ffap.el b/lisp/ffap.el
index 8f1ecd47f0f..d95dad109eb 100644
--- a/lisp/ffap.el
+++ b/lisp/ffap.el
@@ -1013,6 +1013,9 @@ If a given RFC isn't in these then `ffap-rfc-path' is offered."
1013 (machine "-[:alnum:]." "" ".") 1013 (machine "-[:alnum:]." "" ".")
1014 ;; Mathematica paths: allow backquotes 1014 ;; Mathematica paths: allow backquotes
1015 (math-mode ",-:$+<>@-Z_[:lower:]~`" "<" "@>;.,!?`:") 1015 (math-mode ",-:$+<>@-Z_[:lower:]~`" "<" "@>;.,!?`:")
1016 ;; (La)TeX: don't allow braces
1017 (latex-mode "--:\\\\$+<>@-Z_[:alpha:]~*?" "<@" "@>;.,!:")
1018 (tex-mode "--:\\\\$+<>@-Z_[:alpha:]~*?" "<@" "@>;.,!:")
1016 ) 1019 )
1017 "Alist of (MODE CHARS BEG END), where MODE is a symbol, 1020 "Alist of (MODE CHARS BEG END), where MODE is a symbol,
1018possibly a major-mode name, or one of the symbols 1021possibly a major-mode name, or one of the symbols