help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

insert string at point with emacs-version


From: goncholden
Subject: insert string at point with emacs-version
Date: Tue, 01 Feb 2022 17:44:25 +0000

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]