From: Lars Ingebrigtsen Date: Fri, 26 Jul 2019 11:38:51 +0000 (+0200) Subject: Make ffap find {/etc} files again X-Git-Tag: emacs-27.0.90~1817^2~102 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8c60694779e28b9a53067acf1800b26c72173c48;p=emacs.git 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). --- 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: