all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* insert string at point with emacs-version
@ 2022-02-01 18:23 goncholden
  2022-02-01 18:26 ` [External] : " Drew Adams
  0 siblings, 1 reply; 4+ messages in thread
From: goncholden @ 2022-02-01 18:23 UTC (permalink / raw)
  To: Drew Adams; +Cc: 'Help-Gnu-Emacs (help-gnu-emacs@gnu.org)'

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

On Tuesday, February 1st, 2022 at 5:54 PM, Drew Adams <drew.adams@oracle.com> wrote:

> How can I have a condition that checks whether the version
>
> is 28.0 or later

(> emacs-major-version 27)

My difficulty is about calling

(alist-get (frame--current-backround-mode nil) colors)

when (> emacs-version 28.0)

and do some other thing otherwise.




^ permalink raw reply	[flat|nested] 4+ messages in thread
* insert string at point with emacs-version
@ 2022-02-01 18:57 goncholden
  2022-02-01 19:44 ` [External] : " Drew Adams
  0 siblings, 1 reply; 4+ messages in thread
From: goncholden @ 2022-02-01 18:57 UTC (permalink / raw)
  To: Drew Adams; +Cc: 'Help-Gnu-Emacs (help-gnu-emacs@gnu.org)'

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






^ permalink raw reply	[flat|nested] 4+ messages in thread
[parent not found: <4h3iso1W7puJXGdUPTCvSojWJ5reWSAjBducYzNRkaLAOZLcHlY4I81FGlAWDTGdAjetS-uCUk3eJ8b5zdU2DnDJGki4PdrjgAKRIEFDlJE=@protonmail.com>]

end of thread, other threads:[~2022-02-01 19:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-01 18:23 insert string at point with emacs-version goncholden
2022-02-01 18:26 ` [External] : " Drew Adams
  -- strict thread matches above, loose matches on Subject: below --
2022-02-01 18:57 goncholden
2022-02-01 19:44 ` [External] : " Drew Adams
     [not found] <4h3iso1W7puJXGdUPTCvSojWJ5reWSAjBducYzNRkaLAOZLcHlY4I81FGlAWDTGdAjetS-uCUk3eJ8b5zdU2DnDJGki4PdrjgAKRIEFDlJE=@protonmail.com>
2022-02-01 17:54 ` Drew Adams

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.