emacs-diffs
[Top][All Lists]
Advanced

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

master c339691: Fix byte-run--set-modes call signature


From: Lars Ingebrigtsen
Subject: master c339691: Fix byte-run--set-modes call signature
Date: Sun, 14 Feb 2021 12:01:14 -0500 (EST)

branch: master
commit c3396917725a537e9060f2144b6907ab870b22dd
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Fix byte-run--set-modes call signature
    
    * lisp/emacs-lisp/byte-run.el (byte-run--set-modes): We take a
    list of modes, not a single one (and fix the quoting).
---
 lisp/emacs-lisp/byte-run.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/emacs-lisp/byte-run.el b/lisp/emacs-lisp/byte-run.el
index 30fcbf2..48a7fe8 100644
--- a/lisp/emacs-lisp/byte-run.el
+++ b/lisp/emacs-lisp/byte-run.el
@@ -149,10 +149,10 @@ The return value of this function is not used."
             ''completion-predicate val)))
 
 (defalias 'byte-run--set-modes
-  #'(lambda (f _args val)
+  #'(lambda (f _args &rest val)
       (list 'function-put (list 'quote f)
             ''completion-predicate `(lambda (_ b)
-                                      (completion-with-modes-p ,val b)))))
+                                      (completion-with-modes-p ',val b)))))
 
 ;; Add any new entries to info node `(elisp)Declare Form'.
 (defvar defun-declarations-alist



reply via email to

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