help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: rx expressions


From: steve-humphreys
Subject: Re: rx expressions
Date: Mon, 1 Feb 2021 13:19:18 +0100

It is part of a minor mode I have written, and included the following
code.  What do you think?

(eval-when-compile
  (setq byte-compile-function-environment
        (delq (assq 'crucible-mode byte-compile-function-environment)
              byte-compile-function-environment)))



> Sent: Tuesday, February 02, 2021 at 12:10 AM
> From: "moasenwood--- via Users list for the GNU Emacs text editor" 
> <help-gnu-emacs@gnu.org>
> To: help-gnu-emacs@gnu.org
> Subject: Re: rx expressions
>
> Philip K. wrote:
> 
> >> (eval-when-compile (require 'rx))
> >> (rx--empty)
> >>
> >> geh.el: 
> >> In end of data:
> >> geh.el:294:1: Warning: the function ‘rx--empty’ might not be defined at
> >>     runtime.
> >
> > rx--empty is a function, so it doesn't make sense. I do
> > eval-when-compile when all I use is the rx macro itself.
> 
> Byte-compiling Elisp almost always makes sense, for
> several reasons.
> 
> Use
> 
>   (require 'rx)
> 
> so everything is solid from the get-go and you can focus on
> the byte-compiler messages that are actually useful, even
> interesting to read...
> 
> -- 
> underground experts united
> http://user.it.uu.se/~embe8573
> https://dataswamp.org/~incal
> 
> 
>



reply via email to

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