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 17:44:25 +0000 Message-ID: References: <87sft2r1g1.fsf@piccione> 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="10979"; mail-complaints-to="usenet@ciao.gmane.io" Cc: goncholden via Users list for the GNU Emacs text editor To: inasprecali Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 01 23:17:20 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 1nF1Sh-0002g2-D1 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 01 Feb 2022 23:17:19 +0100 Original-Received: from localhost ([::1]:44684 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nF1Sg-00019Q-Ac for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 01 Feb 2022 17:17:18 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:34304) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nExCz-0004By-15 for help-gnu-emacs@gnu.org; Tue, 01 Feb 2022 12:44:50 -0500 Original-Received: from mail-40135.protonmail.ch ([185.70.40.135]:45412) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nExCw-000300-JV for help-gnu-emacs@gnu.org; Tue, 01 Feb 2022 12:44:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail2; t=1643737466; bh=uyLu7uerohU+KYgNOis7RVxQTWAB0RLirkUWnMQKhjg=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:From:To:Cc; b=JnoUyx8QRtVeaqTCiQtV7hpByyVOWHTCBJBHBPNiM2KDJ0Tdvpuauv1OPijobiGNU wDrwmYYJr+sl8+lvrLMWTXtqk0hAmfUi+adY/YPbV8Fd51xhcf1Za79CzqRPeWtPJK Vm0RepnllEZtsvallLBaueCegDL3qpnOXZu1Dc7xm8lJW8k7areFvk0K5MHBJjS2hY YBxX7BOLqGSar0/DK79zBFLPE2UGgeC1ClMZNA1GOP48GtPZoyR5apo185EmYG6cVq nMEFXk7WM3mCyzeF+sZe+1W7q8nLhGur9bYruc+o86+bpqEOznGqlKZqf6P0l7su1T bew04Oh0DuwCg== In-Reply-To: <87sft2r1g1.fsf@piccione> Received-SPF: pass client-ip=185.70.40.135; envelope-from=goncholden@protonmail.com; helo=mail-40135.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:135642 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 4:33 PM, inasprecali wrote: > goncholden via Users list for the GNU Emacs text editor > > help-gnu-emacs@gnu.org writes: > > > I am looking up documentation for emacs-version. But cannot understand = the meaning of > > > > If optional argument HERE is non-nil, insert string at point. > > > > Doc: > > > > (emacs-version &optional HERE) > > > > Probably introduced at or before Emacs version 19.20. > > > > Return string describing the version of Emacs that is running. > > > > If optional argument HERE is non-nil, insert string at point. > > In Emacs jargon, "point" means something like "the current cursor > > position". Try executing (emacs-version nil) and (emacs-version t) > > in a scratch buffer and see for yourself (C-x C-e runs the > > command eval-last-sexp, which you may find useful for this). > > When ARG is not provided or nil, emacs-version returns a string > > describing your current Emacs version as a value, if ARG is not > > NIL, emacs-version returns NIL and inserts said string wherever > > the cursor is currently located (that is, it inserts it at point). I got it, it is to print a message in buffer.