emacs-devel
[Top][All Lists]
Advanced

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

Re: Recent pcase changes


From: Omar Polo
Subject: Re: Recent pcase changes
Date: Thu, 04 Mar 2021 12:40:19 +0100
User-agent: mu4e 1.4.14; emacs 28.0.50

Mattias EngdegÄrd <mattiase@acm.org> writes:

> 4 mars 2021 kl. 11.06 skrev Manuel Uberti <manuel.uberti@inventati.org>:
>
>> By looking at clojure-mode code I see it sets `lisp-indent-function' to
>> `clojure-indent-function', which makes use of `pcase'. More specifically, 
>> this
>> is what it does at line 1497 of clojure-mode.el:
>> 
>> (pcase method
>>  ((or (pred integerp) `(,method))
>
> Now all variables in an `or`-pattern are always bound, to nil if nothing 
> else. Try:
>
>    ((or (pred integerp) `(m))
>     (let ((method (if (integerp method) method m)))
>      ...

Yes, that fixes the issue for me, thanks!



reply via email to

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