[Top][All Lists]

[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: Mon, 27 Nov 2023 14:21:41 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0

On 27/11/2023 05:09, Richard Stallman wrote:
[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

   > I suggest you try rewriting the definition of completion-help-at-point
   > using your alternative construct.

I tried to do this, and it isn't hard to do this by formulating each clause
to use :match.

I didn't think it would be difficult. But then one would compare the solutions.

However, to make the simplest possible result, I need to know
all the kinds of values that RES can have.  For instance, at this point,

       (`(,hookfun . ,_)
        ;; The hook function already performed completion :-(
        ;; Not much we can do at this point.
        (message "%s already performed completion!" hookfun)

what are the possible values of RES that will NOT match that pattern?

Since "_" means "anything", the pcase form does enumerate all possible options (anything else would be a bug in the code producing res).

reply via email to

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