diff options
| author | StrawberryTea | 2024-03-09 15:37:44 -0600 |
|---|---|---|
| committer | Eli Zaretskii | 2024-03-14 11:47:04 +0200 |
| commit | fd0a6cb172dbae8779dae768fa8c475eb0af50ee (patch) | |
| tree | e4a568f6cd1d42eaf929304544eca5dc00e2fffc | |
| parent | cb9ee24ea69be4a70f68cb2d564b23a55cb84216 (diff) | |
| download | emacs-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.el | 3 |
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. |
| 1070 | This is possibly a major-mode name, or one of the symbols | 1073 | This is possibly a major-mode name, or one of the symbols |