emacs-devel
[Top][All Lists]
Advanced

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

Re: Question on pcase


From: Michael Heerdegen
Subject: Re: Question on pcase
Date: Fri, 30 Oct 2015 02:33:54 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Johan Bockgård <address@hidden> writes:

> Edebug already understands most of pcase's patterns, but it doesn't step
> "into" the SYMBOL bindings.
>
> Try this:
>
>     pcase.el: Support edebug stepping of SYMBOL patterns
>
>     * lisp/emacs-lisp/pcase.el (pcase-SYMBOL) New edebug spec.
>     (pcase-PAT): Use it.
>     (pcase--edebug-match-symbol): New function.
>     (pcase-QPAT): Improve handling of cons patterns.

Very nice!

Do you think we could install this?  I don't feel familiar enough with
edebug to judge the quality of your patch, but I'm impressed that Edebug
can be made working for `pcase' with that few lines...


Thanks,

Michael.



reply via email to

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