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

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

Re: insert string at point with emacs-version


From: H. Dieter Wilhelm
Subject: Re: insert string at point with emacs-version
Date: Tue, 01 Feb 2022 17:08:19 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux)

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.

HERE in this context means that if the argument HERE is not nil then at
the current position of the cursor (thus "here") in the current document
(buffer) the version string will be inserted.

Please contrast

  (emacs-version)  <- "Here" ;-), behind the parenthesis please do: C-x e
  (emacs-version t) <- and here as well 

or check the interactive "version" version:

  M-x version
  C-u M-x version

HTH

    Dieter

-- 
Best wishes
H. Dieter Wilhelm
Zwingenberg, Germany



reply via email to

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