aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Wahl2020-01-22 13:58:52 +0100
committerLars Ingebrigtsen2020-01-22 13:58:52 +0100
commite88eed95a9b0a4c4d06312a557b6b382ad12b8a3 (patch)
tree8ba1d8356c9636af39677b7cfa46104781812423
parent63f69e935e8aac7c8f132096992ae022c088c596 (diff)
downloademacs-e88eed95a9b0a4c4d06312a557b6b382ad12b8a3.tar.gz
emacs-e88eed95a9b0a4c4d06312a557b6b382ad12b8a3.zip
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).
-rw-r--r--lisp/ffap.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ffap.el b/lisp/ffap.el
index 66ef0824d8a..ead79b45c0e 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."
1080 ;; Slightly controversial decisions: 1080 ;; Slightly controversial decisions:
1081 ;; * strip trailing "@", ":" and enclosing "{"/"}". 1081 ;; * strip trailing "@", ":" and enclosing "{"/"}".
1082 ;; * no commas (good for latex) 1082 ;; * no commas (good for latex)
1083 (file "--:\\\\${}+<>@-Z_[:alpha:]~*?" "{<@" "@>;.,!:}") 1083 (file "--:\\\\${}+<>@-Z_[:alpha:]~*?#" "{<@" "@>;.,!:}")
1084 ;; An url, or maybe an email/news message-id: 1084 ;; An url, or maybe an email/news message-id:
1085 (url "--:=&?$+@-Z_[:alpha:]~#,%;*()!'" "^[0-9a-zA-Z]" ":;.,!?") 1085 (url "--:=&?$+@-Z_[:alpha:]~#,%;*()!'" "^[0-9a-zA-Z]" ":;.,!?")
1086 ;; Find a string that does *not* contain a colon: 1086 ;; Find a string that does *not* contain a colon: