]> code.delx.au - gnu-emacs/commitdiff
ffap: Support environment variable expansion in file names
authorDmitry Gutov <dgutov@yandex.ru>
Wed, 8 Apr 2015 00:18:38 +0000 (03:18 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Wed, 8 Apr 2015 00:18:38 +0000 (03:18 +0300)
Fixes: debbugs:19839
* lisp/ffap.el (ffap-string-at-point-mode-alist): Support
environment variable expansion in file names.

lisp/ffap.el

index d4e30a05dcc24cc6c5e3cdf59799e76003af781a..452275ab8c2a12686cb97a3e95b6a32901131915 100644 (file)
@@ -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: