[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
insert string at point with emacs-version
From: |
goncholden |
Subject: |
insert string at point with emacs-version |
Date: |
Tue, 01 Feb 2022 18:57:12 +0000 |
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Tuesday, February 1st, 2022 at 6:26 PM, Drew Adams <drew.adams@oracle.com>
wrote:
> Ask Emacs:
>
> `C-h f if'` C-h f cond'
>
> `C-h i', choose Elisp manual,` g Conditionals'
>
> > My difficulty is about calling
> >
> > (alist-get (frame--current-backround-mode nil) colors)
> >
> > when (> emacs-version 28.0)
> >
> > and do some other thing otherwise.
Would the use of cond in the case below make sense?
(let* ( (colors annotation-chroma)
(levels
(cond (>= emacs-version 28.0)
(alist-get (frame--current-backround-mode nil) colors)) ))
- insert string at point with emacs-version, goncholden, 2022/02/01
- Re: insert string at point with emacs-version, Jean-Christophe Helary, 2022/02/01
- Re: insert string at point with emacs-version, Robert Pluim, 2022/02/01
- Re: insert string at point with emacs-version, H. Dieter Wilhelm, 2022/02/01
- Re: insert string at point with emacs-version, inasprecali, 2022/02/01
- Re: insert string at point with emacs-version, tomas, 2022/02/01