From: Nicolas Richard Date: Thu, 6 Aug 2015 11:05:11 +0000 (+0200) Subject: ffap: disallow braces in filenames for tex modes X-Git-Tag: emacs-25.0.90~1373^2~76 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7f1baf2bfa0369c68d41cc178c482d26068e43a4;p=emacs.git 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. --- 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." (machine "-[:alnum:]." "" ".") ;; Mathematica paths: allow backquotes (math-mode ",-:$+<>@-Z_[:lower:]~`" "<" "@>;.,!?`:") + ;; (La)TeX: don't allow braces + (latex-mode "--:\\\\$+<>@-Z_[:alpha:]~*?" "<@" "@>;.,!:") + (tex-mode "--:\\\\$+<>@-Z_[:alpha:]~*?" "<@" "@>;.,!:") ) "Alist of (MODE CHARS BEG END), where MODE is a symbol, possibly a major-mode name, or one of the symbols