From 8c60694779e28b9a53067acf1800b26c72173c48 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Fri, 26 Jul 2019 13:38:51 +0200 Subject: [PATCH] Make ffap find {/etc} files again * lisp/ffap.el (ffap-string-at-point-mode-alist): Make (ffap-file-at-point) work on {/etc} again (bug#26190). --- lisp/ffap.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/ffap.el b/lisp/ffap.el index 47ceed47e3e..33854a6c0d4 100644 --- a/lisp/ffap.el +++ b/lisp/ffap.el @@ -1081,9 +1081,9 @@ If a given RFC isn't in these then `ffap-rfc-path' is offered." '( ;; The default, used when the `major-mode' is not found. ;; Slightly controversial decisions: - ;; * strip trailing "@" and ":" + ;; * strip trailing "@", ":" and enclosing "{"/"}". ;; * no commas (good for latex) - (file "--:\\\\${}+<>@-Z_[:alpha:]~*?" "<@" "@>;.,!:") + (file "--:\\\\${}+<>@-Z_[:alpha:]~*?" "{<@" "@>;.,!:}") ;; An url, or maybe an email/news message-id: (url "--:=&?$+@-Z_[:alpha:]~#,%;*()!'" "^[0-9a-zA-Z]" ":;.,!?") ;; Find a string that does *not* contain a colon: -- 2.39.2