projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e9759a
)
ffap: disallow braces in filenames for tex modes
author
Nicolas Richard
<youngfrog@members.fsf.org>
Thu, 6 Aug 2015 11:05:11 +0000
(13:05 +0200)
committer
Nicolas Richard
<youngfrog@members.fsf.org>
Sun, 9 Aug 2015 16:41:43 +0000
(18:41 +0200)
* lisp/ffap.el (ffap-string-at-point-mode-alist): Don't allow
braces in tex-related modes.
lisp/ffap.el
patch
|
blob
|
history
diff --git
a/lisp/ffap.el
b/lisp/ffap.el
index 8f1ecd47f0f78b8af45c4e6388e9c4fe2455c893..d95dad109eb05f1d18f86bcaf46e23daef4e9fb3 100644
(file)
--- 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