]> git.eshelyaron.com Git - emacs.git/commit
* lisp/emacs-lisp/edebug.el: Tweak last change
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 10 Feb 2021 18:12:09 +0000 (13:12 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 10 Feb 2021 18:12:09 +0000 (13:12 -0500)
commit2e5d400ca6d7619cb4c0bcbd8abf5828127c77bf
treeeae992992c8db53f81f509aeb01f884368429665
parentdcfb8f6b617f285a51e4aac23e37b0e81ae37698
* lisp/emacs-lisp/edebug.el: Tweak last change

Use generic functions i.s.o `edebug--spec-op-function`.

<toplevel>: No need to register the &foo and :foo handler any more.
(edebug--handle-&-spec-op, edebug--handle-:-spec-op): New generic functions.
(edebug-match-specs): Use them.
(edebug--get-spec-op): Remove function.
(edebug-match-&optional, edebug-match-&rest, edebug-match-&or)
(edebug-match-&not, edebug-match-&key, edebug-match-&error)
(edebug-match-&define): Turn functions into methods of
`edebug--handle-&-spec-op`.
(edebug-match-:name, edebug-match-:unique): Turn functions into methods of
`edebug--handle-:-spec-op`.
lisp/emacs-lisp/edebug.el