aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStrawberryTea2024-03-09 15:37:44 -0600
committerEli Zaretskii2024-03-14 11:47:04 +0200
commitfd0a6cb172dbae8779dae768fa8c475eb0af50ee (patch)
treee4a568f6cd1d42eaf929304544eca5dc00e2fffc
parentcb9ee24ea69be4a70f68cb2d564b23a55cb84216 (diff)
downloademacs-fd0a6cb172dbae8779dae768fa8c475eb0af50ee.tar.gz
emacs-fd0a6cb172dbae8779dae768fa8c475eb0af50ee.zip
ffap.el: Exclude angle brackets from file names in XML
* lisp/ffap.el (ffap-string-at-point-mode-alist): Add elements for XML, to better recognize file names in XML buffers. Copyright-paperwork-exempt: yes
-rw-r--r--lisp/ffap.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/ffap.el b/lisp/ffap.el
index 5383f743878..b2b681b7c44 100644
--- a/lisp/ffap.el
+++ b/lisp/ffap.el
@@ -1065,6 +1065,9 @@ If a given RFC isn't in these then `ffap-rfc-path' is offered."
1065 ;; (La)TeX: don't allow braces 1065 ;; (La)TeX: don't allow braces
1066 (latex-mode "--:\\\\$+<>@-Z_[:alpha:]~*?" "<@" "@>;.,!:") 1066 (latex-mode "--:\\\\$+<>@-Z_[:alpha:]~*?" "<@" "@>;.,!:")
1067 (tex-mode "--:\\\\$+<>@-Z_[:alpha:]~*?" "<@" "@>;.,!:") 1067 (tex-mode "--:\\\\$+<>@-Z_[:alpha:]~*?" "<@" "@>;.,!:")
1068 ;; XML: don't allow angle brackets
1069 (xml-mode "--:\\\\${}+@-Z_[:alpha:]~*?#" "{<@" "@>;.,!:}")
1070 (nxml-mode "--:\\\\${}+@-Z_[:alpha:]~*?#" "{<@" "@>;.,!:}")
1068 ) 1071 )
1069 "Alist of (MODE CHARS BEG END), where MODE is a symbol. 1072 "Alist of (MODE CHARS BEG END), where MODE is a symbol.
1070This is possibly a major-mode name, or one of the symbols 1073This is possibly a major-mode name, or one of the symbols