emacs-devel
[Top][All Lists]
Advanced

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

Re: scratch/command 064f146 1/2: Change command to interactive ... modes


From: Stefan Monnier
Subject: Re: scratch/command 064f146 1/2: Change command to interactive ... modes
Date: Wed, 17 Feb 2021 17:26:30 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

>> As I said, I think it will work whenever the code has been fully
>> macro-expanded, which happens not just for byte-compilation but also for
>> `eval-buffer`, or when loading a `.el` file.  We should arguably do it
>> at most other occasions (e.g. `C-M-x`), but someone will have to write
>> the corresponding patches.
>
> We can fix this in Emacs 28, of course -- but my point was that this
> doesn't work (in general) in earlier Emacs versions.  (Which was the
> point of the compat macro.)

It'll still work in most cases in older Emacsen, tho, since it works
when the code is byte-compiled, or `load`ed, or eval'd via `eval-buffer`
which should cover 99.9894% of the cases where a package's code will
be executed.


        Stefan




reply via email to

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