emacs-devel
[Top][All Lists]
Advanced

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

Re: Upcoming seq.el version problem with the Emacs release


From: Michael Heerdegen
Subject: Re: Upcoming seq.el version problem with the Emacs release
Date: Sun, 20 Mar 2016 21:35:43 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.92 (gnu/linux)

Nicolas Petton <address@hidden> writes:

>     (push `(pcase-defmacro . ,(lambda (&rest _) nil))
>           byte-compile-macro-environment)


Would this work?


(defmacro seq--when-pcase-defmacro-defined (&rest body)
  (when (fboundp 'pcase-defmacro)
    `(progn ,@body)))

(seq--when-pcase-defmacro-defined
  { your seq pcase pattern definitions here })


Note that the fboundp test is done at compile time.


Michael.




reply via email to

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