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, 23 Oct 2015 16:23:17 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Oleh Krehel <address@hidden> writes:

>     (progn
>       (setq hookfun (car res))
>       (setq start (nth 0 (cdr res)))
>       (setq end (nth 1 (cdr res)))
>       (setq collection (nth 2 (cdr res)))
>       (setq plist (nthcdr 3 (cdr res)))
>       (message "match"))

And especially this part also depends on the environment.  What bindings
are created does not only depend on whether a branch matches or not.

By accident, in the

  `(,hookfun . (,start ,end ,collection . ,plist))

example, you can mentally separate those two things, but in general, you
can't.


Michael.



reply via email to

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