]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix Edebug specs for 'cl-defmethod' and 'defmethod'
authorGemini Lasswell <gazally@runbox.com>
Tue, 2 May 2017 07:19:12 +0000 (10:19 +0300)
committerEli Zaretskii <eliz@gnu.org>
Tue, 2 May 2017 07:19:12 +0000 (10:19 +0300)
* lisp/emacs-lisp/cl-generic.el (cl-defmethod): Change Edebug spec
to make Edebug generate a new symbol for each method (Bug#24753) and
to support a string following :extra (Bug#23995).
* lisp/emacs-lisp/eieio-compat.el (defmethod): Change Edebug spec to
make Edebug generate a new symbol for each method (Bug#24753).

lisp/emacs-lisp/cl-generic.el
lisp/emacs-lisp/eieio-compat.el

index e15c94242fb6eb8f8e05c54a0c3107b7791c0a32..107d520b1e92fc12a8a2721b8afb7b3875cda012 100644 (file)
@@ -413,10 +413,11 @@ The set of acceptable TYPEs (also called \"specializers\") is defined
   (declare (doc-string 3) (indent 2)
            (debug
             (&define                    ; this means we are defining something
-             [&or name ("setf" :name setf name)]
+             [&or symbolp ("setf" symbolp)]
              ;; ^^ This is the methods symbol
-             [ &optional keywordp ]     ; this is key :before etc
-             list                       ; arguments
+             [ &optional keywordp       ; this is key :before etc
+               &optional stringp ]      ; :extra can be followed by a string
+             listp                      ; arguments
              [ &optional stringp ]      ; documentation string
              def-body)))                ; part to be debugged
   (let ((qualifiers nil))
index d6eb0b416f82968ecaa4f016ede6f9c249fd28b2..fe65ae02623c6c4b249d2f49d984bdc9270387b0 100644 (file)
@@ -105,10 +105,10 @@ Summary:
   (declare (doc-string 3) (obsolete cl-defmethod "25.1")
            (debug
             (&define                    ; this means we are defining something
-             [&or name ("setf" :name setf name)]
+             [&or symbolp ("setf" symbolp)]
              ;; ^^ This is the methods symbol
              [ &optional symbolp ]                ; this is key :before etc
-             list                                 ; arguments
+             listp                                ; arguments
              [ &optional stringp ]                ; documentation string
              def-body                             ; part to be debugged
              )))