emacs-devel
[Top][All Lists]
Advanced

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

Re: Why shouldn't we have a #if .... #else .... #endif construct in Emac


From: Andreas Schwab
Subject: Re: Why shouldn't we have a #if .... #else .... #endif construct in Emacs Lisp?
Date: Wed, 06 Sep 2023 09:28:35 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

On Sep 05 2023, Richard Stallman wrote:

>   > ..  (hash-if has been renamed static-if.)  It would be more work to
>   > replace it with
>
>   >   (when (or (> emacs-major-version 24)
>   >             (and (= emacs-major-version 24)
>   >            (>= emacs-minor-version 4)))
>   >     (electric-indent-local-mode (if c-electric-flag 1 0)))
>
> If you want to have a conditional about version mumbers,
> I think that is the right way to write it.

We also have (version<= "24.4" emacs-version).

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."



reply via email to

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