emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/ivy-hydra 1b426e1 202/395: Fix byte-compilation warning


From: Basil L. Contovounesios
Subject: [elpa] externals/ivy-hydra 1b426e1 202/395: Fix byte-compilation warning in Emacs 28
Date: Thu, 25 Feb 2021 08:32:02 -0500 (EST)

branch: externals/ivy-hydra
commit 1b426e1215242cef61b65ee6a1d07840e22d4bce
Author: Basil L. Contovounesios <contovob@tcd.ie>
Commit: Basil L. Contovounesios <contovob@tcd.ie>

    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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]