From ba6c32b6decaa2a72a3d5f854efd513e8e82c118 Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Wed, 8 Apr 2015 03:18:38 +0300 Subject: [PATCH] ffap: Support environment variable expansion in file names Fixes: debbugs:19839 * lisp/ffap.el (ffap-string-at-point-mode-alist): Support environment variable expansion in file names. --- lisp/ffap.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ffap.el b/lisp/ffap.el index d4e30a05dcc..452275ab8c2 100644 --- a/lisp/ffap.el +++ b/lisp/ffap.el @@ -1004,7 +1004,7 @@ If a given RFC isn't in these then `ffap-rfc-path' is offered." ;; Slightly controversial decisions: ;; * strip trailing "@" and ":" ;; * no commas (good for latex) - (file "--:\\\\$+<>@-Z_[:alpha:]~*?" "<@" "@>;.,!:") + (file "--:\\\\$\\{\\}+<>@-Z_[:alpha:]~*?" "<@" "@>;.,!:") ;; An url, or maybe a email/news message-id: (url "--:=&?$+@-Z_[:alpha:]~#,%;*()!'" "^[0-9a-zA-Z]" ":;.,!?") ;; Find a string that does *not* contain a colon: -- 2.39.2