]> git.eshelyaron.com Git - emacs.git/commit
Fix Edebug's handling of dotted specs (bug#6415)
authorGemini Lasswell <gazally@runbox.com>
Thu, 2 Nov 2017 04:13:02 +0000 (21:13 -0700)
committerGemini Lasswell <gazally@runbox.com>
Sun, 26 Nov 2017 21:44:15 +0000 (13:44 -0800)
commit0ded1b41a986229eaa4218095d9c78d1800c0b27
treee7df79ca1383abc77d33d444e0998dacdfbce122
parent16358d4fcbad3fa60ff36167ae666b1ec7e7c02a
Fix Edebug's handling of dotted specs (bug#6415)

* lisp/emacs-lisp/cl-macs.el (cl-destructuring-bind): Use
cl-macro-list1 instead of cl-macro-list in Edebug spec.

* lisp/emacs-lisp/edebug.el (edebug-after-dotted-spec): Delete
unused variable.
(edebug-dotted-spec): Add docstring.
(edebug-match-specs): Allow &optional and &rest specs to
match nothing at the tail of a dotted form. Handle matches of
dotted form tails which return non-lists.

* test/lisp/emacs-lisp/edebug-tests.el (edebug-tests-dotted-forms):
New test.

* test/lisp/emacs-lisp/edebug-resources/edebug-test-code.el:
(edebug-test-code-use-destructuring-bind): New function.
lisp/emacs-lisp/cl-macs.el
lisp/emacs-lisp/edebug.el
test/lisp/emacs-lisp/edebug-resources/edebug-test-code.el
test/lisp/emacs-lisp/edebug-tests.el