Skip to content

Commit 4c1690c

Browse files
ywwry66basil-conto
authored andcommitted
Fix compatibility with Tramp 2.6.0.2 and above
With Tramp 2.6.0.2 and above, during `dired` completion, typing "//ssh:" followed by "C-j" (ivy-alt-done) gives the error "Reading directory: No such file or directory, /ssh:". Previously the output was a list of possible completions. This fix (#3046) proposed by Tramp maintainer Michael Albinus <[email protected]> in the following thread: https://lists.gnu.org/r/tramp-devel/2023-03/msg00014.html https://lists.gnu.org/r/tramp-devel/2024-05/msg00000.html Copyright-paperwork-exempt: yes
1 parent d8dace9 commit 4c1690c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ivy.el

+4
Original file line numberDiff line numberDiff line change
@@ -1067,6 +1067,10 @@ contains a single candidate.")
10671067
(defvar tramp-completion-mode)
10681068
(with-no-warnings
10691069
(let* ((tramp-completion-mode t)
1070+
;; Alternative to `tramp-completion-mode' in newer Tramp.
1071+
(non-essential t)
1072+
;; Non-nil changes completion since Tramp 2.6.0.2.
1073+
(minibuffer-completing-file-name nil)
10701074
(file (expand-file-name
10711075
(if (> ivy--length 0) (ivy-state-current ivy-last) ivy-text)
10721076
ivy--directory)))

0 commit comments

Comments
 (0)