From: goncholden <goncholden@protonmail.com>
To: Drew Adams <drew.adams@oracle.com>
Cc: "'Help-Gnu-Emacs (help-gnu-emacs@gnu.org)'" <help-gnu-emacs@gnu.org>
Subject: insert string at point with emacs-version
Date: Tue, 01 Feb 2022 18:57:12 +0000 [thread overview]
Message-ID: <C6x-pujK54JnNt8PtPc2AMHO4fnbED6DQIIGpscNlve4LprdybROqTFR5OyJSIKJzep0oxkrKX5Yre7lwfcC_VKO65NWaHpbKUqJRMOi1lE=@protonmail.com> (raw)
‐‐‐‐‐‐‐ 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)) ))
next reply other threads:[~2022-02-01 18:57 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-01 18:57 goncholden [this message]
2022-02-01 19:44 ` [External] : insert string at point with emacs-version Drew Adams
-- strict thread matches above, loose matches on Subject: below --
2022-02-01 18:23 goncholden
2022-02-01 14:24 goncholden via Users list for the GNU Emacs text editor
2022-02-01 15:51 ` Jean-Christophe Helary
2022-02-01 15:53 ` Robert Pluim
2022-02-01 16:08 ` H. Dieter Wilhelm
2022-02-01 16:33 ` inasprecali
2022-02-01 17:44 ` goncholden
2022-02-01 17:21 ` tomas
2022-02-01 23:15 ` Emanuel Berg via Users list for the GNU Emacs text editor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='C6x-pujK54JnNt8PtPc2AMHO4fnbED6DQIIGpscNlve4LprdybROqTFR5OyJSIKJzep0oxkrKX5Yre7lwfcC_VKO65NWaHpbKUqJRMOi1lE=@protonmail.com' \
--to=goncholden@protonmail.com \
--cc=drew.adams@oracle.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).