From: goncholden <goncholden@protonmail.com>
To: inasprecali <inasprecali@disroot.org>
Cc: goncholden via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org>
Subject: insert string at point with emacs-version
Date: Tue, 01 Feb 2022 17:44:25 +0000 [thread overview]
Message-ID: <Ri9k0UHvLAb5_-eUVo4Mv9P7hk1LZGUdhdTSAMjJtuebB4rQY6TwENi6kX_Do-aY-b_aDhZ6Bpjx0Xuu-zzuCmK5cRzwO5x0HXTDMwPJXNw=@protonmail.com> (raw)
In-Reply-To: <87sft2r1g1.fsf@piccione>
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Tuesday, February 1st, 2022 at 4:33 PM, inasprecali <inasprecali@disroot.org> 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.
next prev parent reply other threads:[~2022-02-01 17:44 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-01 14:24 insert string at point with emacs-version 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 [this message]
2022-02-01 17:21 ` tomas
2022-02-01 23:15 ` Emanuel Berg via Users list for the GNU Emacs text editor
-- strict thread matches above, loose matches on Subject: below --
2022-02-01 18:23 goncholden
2022-02-01 18:57 goncholden
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='Ri9k0UHvLAb5_-eUVo4Mv9P7hk1LZGUdhdTSAMjJtuebB4rQY6TwENi6kX_Do-aY-b_aDhZ6Bpjx0Xuu-zzuCmK5cRzwO5x0HXTDMwPJXNw=@protonmail.com' \
--to=goncholden@protonmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=inasprecali@disroot.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).