emacs-diffs
[Top][All Lists]
Advanced

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

scratch/command 9252f1c: There's no `declare' in lambdas


From: Lars Ingebrigtsen
Subject: scratch/command 9252f1c: There's no `declare' in lambdas
Date: Fri, 12 Feb 2021 06:42:57 -0500 (EST)

branch: scratch/command
commit 9252f1cc3c2296c8cb75e5030e9b5fc204cf14f1
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    There's no `declare' in lambdas
---
 lisp/gnus/gnus-sum.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el
index 33d4ce7..30b7b5d 100644
--- a/lisp/gnus/gnus-sum.el
+++ b/lisp/gnus/gnus-sum.el
@@ -2522,10 +2522,10 @@ gnus-summary-show-article-from-menu-as-charset-%s" 
cs))))
                       (fset command
                             (lambda ()
                               (interactive)
-                              (declare (completion #'ignore))
                               (let ((gnus-summary-show-article-charset-alist
                                      `((1 . ,cs))))
                                 (gnus-summary-show-article 1))))
+                      (put command 'completion-predicate 'ignore)
                       `[,(symbol-name cs) ,command t]))
                   (sort (coding-system-list) #'string<)))))
             ("Washing"



reply via email to

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