branch: externals/ivy-hydra
commit 1b426e1215242cef61b65ee6a1d07840e22d4bce
Author: Basil L. Contovounesios <[email protected]>
Commit: Basil L. Contovounesios <[email protected]>
Fix byte-compilation warning in Emacs 28
ivy.el (ivy--directory-done): Declare tramp-completion-mode as a
special variable as it has been removed in Emacs 28 and thus gives
rise to "unused lexical variable" warnings.
Re: #2322
---
ivy.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/ivy.el b/ivy.el
index 1a00a0b..afc3595 100644
--- a/ivy.el
+++ b/ivy.el
@@ -1112,6 +1112,8 @@ contains a single candidate.")
(ivy--cd dir)))
((ivy--directory-enter))
((unless (string= ivy-text "")
+ ;; Obsolete since 26.1 and removed in 28.1.
+ (defvar tramp-completion-mode)
(with-no-warnings
(let* ((tramp-completion-mode t)
(file (expand-file-name