[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: |
Alan Mackenzie |
Subject: |
Re: Why shouldn't we have a #if .... #else .... #endif construct in Emacs Lisp? |
Date: |
Wed, 6 Sep 2023 09:31:31 +0000 |
Hello, Andreas.
On Wed, Sep 06, 2023 at 09:28:35 +0200, Andreas Schwab wrote:
> 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).
Thanks! I didn't know about that.
> --
> 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."
--
Alan Mackenzie (Nuremberg, Germany).
- Re: Why shouldn't we have a #if .... #else .... #endif construct in Emacs Lisp?, (continued)
- Re: Why shouldn't we have a #if .... #else .... #endif construct in Emacs Lisp?, Alan Mackenzie, 2023/09/06
- Re: Why shouldn't we have a #if .... #else .... #endif construct in Emacs Lisp?, Richard Stallman, 2023/09/08
- Re: Why shouldn't we have a #if .... #else .... #endif construct in Emacs Lisp?, Ihor Radchenko, 2023/09/09
- Re: Why shouldn't we have a #if .... #else .... #endif construct in Emacs Lisp?, Richard Stallman, 2023/09/09
- Re: Why shouldn't we have a #if .... #else .... #endif construct in Emacs Lisp?, Ihor Radchenko, 2023/09/10
- Re: Why shouldn't we have a #if .... #else .... #endif construct in Emacs Lisp?, Richard Stallman, 2023/09/13
- Re: Why shouldn't we have a #if .... #else .... #endif construct in Emacs Lisp?, Ihor Radchenko, 2023/09/20
Re: Why shouldn't we have a #if .... #else .... #endif construct in Emacs Lisp?, Ulrich Mueller, 2023/09/05