[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ivy 4c1690c5fe 2/3: Fix compatibility with Tramp 2.6.0.
From: |
Basil L. Contovounesios |
Subject: |
[elpa] externals/ivy 4c1690c5fe 2/3: Fix compatibility with Tramp 2.6.0.2 and above |
Date: |
Thu, 2 May 2024 04:11:51 -0400 (EDT) |
branch: externals/ivy
commit 4c1690c5feb5b4e0b55ad7ad96cd3d9b51d3ec77
Author: Ruiyang Wu <58066925+ywwry66@users.noreply.github.com>
Commit: Basil L. Contovounesios <basil@contovou.net>
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 <michael.albinus@gmx.de> 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
---
ivy.el | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/ivy.el b/ivy.el
index ccdcdb57aa..db41371913 100644
--- a/ivy.el
+++ b/ivy.el
@@ -1067,6 +1067,10 @@ contains a single candidate.")
(defvar tramp-completion-mode)
(with-no-warnings
(let* ((tramp-completion-mode t)
+ ;; Alternative to `tramp-completion-mode' in newer Tramp.
+ (non-essential t)
+ ;; Non-nil changes completion since Tramp 2.6.0.2.
+ (minibuffer-completing-file-name nil)
(file (expand-file-name
(if (> ivy--length 0) (ivy-state-current
ivy-last) ivy-text)
ivy--directory)))