emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] emacs-26 928a106: Fix Edebug specs for map-let and with-ma


From: Gemini Lasswell
Subject: [Emacs-diffs] emacs-26 928a106: Fix Edebug specs for map-let and with-maps-do
Date: Tue, 24 Oct 2017 11:31:17 -0400 (EDT)

branch: emacs-26
commit 928a106939080df7df6ea158318f5afa5579ddcf
Author: Gemini Lasswell <address@hidden>
Commit: Gemini Lasswell <address@hidden>

    Fix Edebug specs for map-let and with-maps-do
    
    * lisp/emacs-lisp/map.el (map-let): Fix Edebug spec (bug#24777).
    * test/lisp/emacs-lisp/map-tests.el (with-maps-do): Fix Edebug spec.
---
 lisp/emacs-lisp/map.el            | 3 ++-
 test/lisp/emacs-lisp/map-tests.el | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/lisp/emacs-lisp/map.el b/lisp/emacs-lisp/map.el
index 0f9a744..2a3e1d0 100644
--- a/lisp/emacs-lisp/map.el
+++ b/lisp/emacs-lisp/map.el
@@ -73,7 +73,8 @@ KEYS can also be a list of (KEY VARNAME) pairs, in which case
 KEY is an unquoted form.
 
 MAP can be a list, hash-table or array."
-  (declare (indent 2) (debug t))
+  (declare (indent 2)
+           (debug ((&rest &or symbolp ([form symbolp])) form body)))
   `(pcase-let ((,(map--make-pcase-patterns keys) ,map))
      ,@body))
 
diff --git a/test/lisp/emacs-lisp/map-tests.el 
b/test/lisp/emacs-lisp/map-tests.el
index 0a888d8..a434c9b 100644
--- a/test/lisp/emacs-lisp/map-tests.el
+++ b/test/lisp/emacs-lisp/map-tests.el
@@ -36,7 +36,7 @@ Each map is built from the following alist data:
 Evaluate BODY for each created map.
 
 \(fn (var map) body)"
-  (declare (indent 1) (debug t))
+  (declare (indent 1) (debug (symbolp body)))
   (let ((alist (make-symbol "alist"))
         (vec (make-symbol "vec"))
         (ht (make-symbol "ht")))



reply via email to

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