diff options
| author | Gemini Lasswell | 2017-10-16 11:40:38 -0700 |
|---|---|---|
| committer | Gemini Lasswell | 2017-10-24 08:17:33 -0700 |
| commit | 928a106939080df7df6ea158318f5afa5579ddcf (patch) | |
| tree | 135db033139f79867c52f3cca7182595b4188c8e | |
| parent | 46f2ee0d4c7123941bb8decc5e947e356099d7b6 (diff) | |
| download | emacs-928a106939080df7df6ea158318f5afa5579ddcf.tar.gz emacs-928a106939080df7df6ea158318f5afa5579ddcf.zip | |
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.
| -rw-r--r-- | lisp/emacs-lisp/map.el | 3 | ||||
| -rw-r--r-- | 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 0f9a74422b4..2a3e1d0a4b0 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 | |||
| 73 | KEY is an unquoted form. | 73 | KEY is an unquoted form. |
| 74 | 74 | ||
| 75 | MAP can be a list, hash-table or array." | 75 | MAP can be a list, hash-table or array." |
| 76 | (declare (indent 2) (debug t)) | 76 | (declare (indent 2) |
| 77 | (debug ((&rest &or symbolp ([form symbolp])) form body))) | ||
| 77 | `(pcase-let ((,(map--make-pcase-patterns keys) ,map)) | 78 | `(pcase-let ((,(map--make-pcase-patterns keys) ,map)) |
| 78 | ,@body)) | 79 | ,@body)) |
| 79 | 80 | ||
diff --git a/test/lisp/emacs-lisp/map-tests.el b/test/lisp/emacs-lisp/map-tests.el index 0a888d88b72..a434c9bd066 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: | |||
| 36 | Evaluate BODY for each created map. | 36 | Evaluate BODY for each created map. |
| 37 | 37 | ||
| 38 | \(fn (var map) body)" | 38 | \(fn (var map) body)" |
| 39 | (declare (indent 1) (debug t)) | 39 | (declare (indent 1) (debug (symbolp body))) |
| 40 | (let ((alist (make-symbol "alist")) | 40 | (let ((alist (make-symbol "alist")) |
| 41 | (vec (make-symbol "vec")) | 41 | (vec (make-symbol "vec")) |
| 42 | (ht (make-symbol "ht"))) | 42 | (ht (make-symbol "ht"))) |