]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix byte-run--set-modes call signature
authorLars Ingebrigtsen <larsi@gnus.org>
Sun, 14 Feb 2021 17:01:06 +0000 (18:01 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 14 Feb 2021 17:01:06 +0000 (18:01 +0100)
* 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

index 30fcbf2b9cc726b5e5afeea299909f24c9a4f096..48a7fe80615bd1bc5d59706ade44a1add7fe1190 100644 (file)
@@ -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