emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 7f1baf2 3/4: ffap: disallow braces in filenames for


From: Nicolas Richard
Subject: [Emacs-diffs] master 7f1baf2 3/4: ffap: disallow braces in filenames for tex modes
Date: Sun, 09 Aug 2015 16:44:26 +0000

branch: master
commit 7f1baf2bfa0369c68d41cc178c482d26068e43a4
Author: Nicolas Richard <address@hidden>
Commit: Nicolas Richard <address@hidden>

    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.
---
 lisp/ffap.el |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/lisp/ffap.el b/lisp/ffap.el
index 8f1ecd4..d95dad1 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]