[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master e88eed9 1/2: Make find-file-at-point respect port numbers in Tram
From: |
Lars Ingebrigtsen |
Subject: |
master e88eed9 1/2: Make find-file-at-point respect port numbers in Tramp file name |
Date: |
Wed, 22 Jan 2020 08:19:02 -0500 (EST) |
branch: master
commit e88eed95a9b0a4c4d06312a557b6b382ad12b8a3
Author: Marco Wahl <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>
Make find-file-at-point respect port numbers in Tramp file name
* lisp/ffap.el (ffap-string-at-point-mode-alist): Respect port
numbers in files names like /ssh:root@127.0.0.1#2222:/root/ (bug#20412).
---
lisp/ffap.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/ffap.el b/lisp/ffap.el
index 66ef082..ead79b4 100644
--- a/lisp/ffap.el
+++ b/lisp/ffap.el
@@ -1080,7 +1080,7 @@ If a given RFC isn't in these then `ffap-rfc-path' is
offered."
;; Slightly controversial decisions:
;; * 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: