emacs-diffs
[Top][All Lists]
Advanced

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

master fd0a6cb172d: ffap.el: Exclude angle brackets from file names in X


From: Eli Zaretskii
Subject: master fd0a6cb172d: ffap.el: Exclude angle brackets from file names in XML
Date: Thu, 14 Mar 2024 05:48:02 -0400 (EDT)

branch: master
commit fd0a6cb172dbae8779dae768fa8c475eb0af50ee
Author: StrawberryTea <look@strawberrytea.xyz>
Commit: Eli Zaretskii <eliz@gnu.org>

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

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."
     ;; (La)TeX: don't allow braces
     (latex-mode "--:\\\\$+<>@-Z_[:alpha:]~*?" "<@" "@>;.,!:")
     (tex-mode "--:\\\\$+<>@-Z_[:alpha:]~*?" "<@" "@>;.,!:")
+    ;; XML: don't allow angle brackets
+    (xml-mode "--:\\\\${}+@-Z_[:alpha:]~*?#" "{<@" "@>;.,!:}")
+    (nxml-mode "--:\\\\${}+@-Z_[:alpha:]~*?#" "{<@" "@>;.,!:}")
     )
   "Alist of (MODE CHARS BEG END), where MODE is a symbol.
 This is possibly a major-mode name, or one of the symbols



reply via email to

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