emacs-devel
[Top][All Lists]
Advanced

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

Re: (emacs-version) in the Elisp reference


From: Jean-Christophe Helary
Subject: Re: (emacs-version) in the Elisp reference
Date: Wed, 21 Jun 2017 19:09:11 +0900

> On Jun 21, 2017, at 7:55, Glenn Morris <address@hidden> wrote:
> 
> Jean-Christophe Helary wrote:
> 
>> (why hardcode values that do not correspond to the current manual?)
> 
> Becuase they are just illustrative examples, and nothing would be gained
> by changing them to always refer to the current version.

Sorry, back to the thread.

If we hardcode 1 value, why not hardcode the 2 other:

@defvar emacs-major-version
The major version number of Emacs, as an integer.  For Emacs version
26.1, the value is 26.
@end defvar

@defvar emacs-minor-version
The minor version number of Emacs, as an integer.  For Emacs version
26.1, the value is 1.
@end defvar

That's an even better illustration of the variables and it costs extremely 
little since we already hardcode the value of (emacs-version).

Jean-Christophe


reply via email to

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