]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/emacs-lisp/subr-x.el (if-let): Swap &or branches (Bug#48489)
authorPhilipp Stephani <phst@google.com>
Tue, 18 May 2021 07:25:54 +0000 (09:25 +0200)
committerPhilipp Stephani <phst@google.com>
Tue, 18 May 2021 07:26:49 +0000 (09:26 +0200)
lisp/emacs-lisp/subr-x.el

index 5a8885c04270c7e2eded1f9e6e1bc06cee9d84b7..fb890509ad7a13d95d50b62e046377703de9a616 100644 (file)
@@ -174,8 +174,8 @@ As a special case, interprets a SPEC of the form \(SYMBOL SOMETHING)
 like \((SYMBOL SOMETHING)).  This exists for backward compatibility
 with an old syntax that accepted only one binding."
   (declare (indent 2)
-           (debug ([&or (&rest [&or symbolp (symbolp form) (form)])
-                        (symbolp form)]
+           (debug ([&or (symbolp form)  ; must be first, Bug#48489
+                        (&rest [&or symbolp (symbolp form) (form)])]
                    form body)))
   (when (and (<= (length spec) 2)
              (not (listp (car spec))))