From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: goncholden Newsgroups: gmane.emacs.help Subject: insert string at point with emacs-version Date: Tue, 01 Feb 2022 18:57:12 +0000 Message-ID: Reply-To: goncholden Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7421"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "'Help-Gnu-Emacs (help-gnu-emacs@gnu.org)'" To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 01 22:37:07 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nF0pn-0001hu-QI for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 01 Feb 2022 22:37:07 +0100 Original-Received: from localhost ([::1]:40522 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nF0pm-0008Ix-Gi for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 01 Feb 2022 16:37:06 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:53348) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nEyLu-0005ic-4u for help-gnu-emacs@gnu.org; Tue, 01 Feb 2022 13:58:06 -0500 Original-Received: from mail-4318.protonmail.ch ([185.70.43.18]:47663) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nEyL9-00066d-0V for help-gnu-emacs@gnu.org; Tue, 01 Feb 2022 13:57:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail2; t=1643741836; bh=jlrKDV+MK33oJmnXpA0n8Ygqy2D20Se02wI7EwHBuiY=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:From:To:Cc; b=hHgOkZ3Epw5qCvrw2zSiXKIlZ8zidQUXIiGNUQcsxB+d/AUOfHDkaX1jzj9d2ykiA TTf9ZA7Rf/QVieogH9lPWQbAZARdVUV18esZlnMXQAN1USqIBNfXk3NukjBsrn5q50 mYoEGvXzkAr5R16wuvtyDH9d2wahX4IBGevZkPF+sjcqaljdkl+DmVCs323YI3WY5k w0DDX5+DQMQhzvZ+ui7SWi0odsvOrTOPn2YSjRLHXcOYGtC0lPNAa/TKrHlt4UW0TT eu90nJlJAu3v+h3C5TNbOyiF0j1HE5kCA/8TeCVM/ZD3KL5vGddoKFQVt6ZvVnGXmR kECRoE2UUuBSA== Received-SPF: pass client-ip=185.70.43.18; envelope-from=goncholden@protonmail.com; helo=mail-4318.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:135639 Archived-At: =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Original Me= ssage =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 On Tuesday, February 1st, 2022 at 6:26 PM, Drew Adams 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 =09 (cond (>=3D emacs-version 28.0) =09=09 (alist-get (frame--current-backround-mode nil) colors)) ))