[Top][All Lists]

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

Re: Recent pcase changes

From: Mattias Engdegård
Subject: Re: Recent pcase changes
Date: Thu, 4 Mar 2021 12:30:58 +0100

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. 

   ((or (pred integerp) `(m))
    (let ((method (if (integerp method) method m)))

reply via email to

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