emacs-devel
[Top][All Lists]
Advanced

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

Re: two likely bugs with qualified methods


From: Stefan Monnier
Subject: Re: two likely bugs with qualified methods
Date: Fri, 15 Jul 2016 09:31:38 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

>   (declare (doc-string 3) (indent 2)
>            (debug
>             (&define                    ; this means we are defining something
>              [&or name ("setf" :name setf name)]
>              ;; ^^ This is the methods symbol
>              [ &optional keywordp ]     ; this is key :before etc
>              list                       ; arguments
>              [ &optional stringp ]      ; documentation string
>              def-body)))                ; part to be debugged

> (indent 2) could be changed to (indent defun);

That might work, indeed.

>  the debug spec could probably be fixed by using one of the edebug
>  specs in cl-macs, such as `cl-lambda-list'.

I don't think this will help.  The problem is that the qualifiers are
matched by [ &optional keywordp ] which was sufficient for EIEIO's
defmethod, but not for cl-defmethod (which accepts the more general
Common Lisp form of qualifiers, i.e. any sequence of non-lists).


        Stefan




reply via email to

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