emacs-devel
[Top][All Lists]
Advanced

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

Re: Instead of pcase


From: Dmitry Gutov
Subject: Re: Instead of pcase
Date: Tue, 21 Nov 2023 13:11:05 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0

On 21/11/2023 04:42, Richard Stallman wrote:
I uderstand that when you say it, but when I saw the line

          > (`(,hookfun . (,start ,end ,collection . ,plist))
I was not sure which part of the line that rule applies to.

In particular, what is the reason for the period and inner
parenthsses?  Why doesn't the code say this?

          > (`(,hookfun ,start ,end ,collection . ,plist)
Would that be equiva;ent?

These are indeed equivalent.

The particular shape is chosen to follow how the data matched against was constructed in completion--capf-wrapper: (cons fun res). So it was for the ease of comprehension, actually.



reply via email to

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