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

[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)) ))






reply via email to

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