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

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

Re: rx expressions


From: Emanuel Berg
Subject: Re: rx expressions
Date: Mon, 01 Feb 2021 13:10:35 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

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]