diff options
| author | Nicolas Richard <youngfrog@members.fsf.org> | 2015-08-06 13:05:11 +0200 |
|---|---|---|
| committer | Nicolas Richard <youngfrog@members.fsf.org> | 2015-08-09 18:41:43 +0200 |
| commit | 7f1baf2bfa0369c68d41cc178c482d26068e43a4 (patch) | |
| tree | 1f9f36d06345db24e02889670ee5dc42fe760091 /lisp/ffap.el | |
| parent | 3e9759a3d5a254f3074e391f147e52afb1d9734f (diff) | |
| download | emacs-7f1baf2bfa0369c68d41cc178c482d26068e43a4.tar.gz | |
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.
Diffstat (limited to 'lisp/ffap.el')
| -rw-r--r-- | lisp/ffap.el | 3 |
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." (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 |
