1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
<h3 class="section">Version Information</h3> <p>These facilities provide information about which version of Emacs is in use. </p> <dl> <dt id="emacs-version">Command: <strong>emacs-version</strong> <em>&optional here</em>
</dt> <dd>
<p>This function returns a string describing the version of Emacs that is running. It is useful to include this string in bug reports. </p> <div class="example"> <pre class="example">(emacs-version)
⇒ "GNU Emacs 26.1 (build 1, x86_64-unknown-linux-gnu,
GTK+ Version 3.16) of 2017-06-01"
</pre>
</div> <p>If <var>here</var> is non-<code>nil</code>, it inserts the text in the buffer before point, and returns <code>nil</code>. When this function is called interactively, it prints the same information in the echo area, but giving a prefix argument makes <var>here</var> non-<code>nil</code>. </p>
</dd>
</dl> <dl> <dt id="emacs-build-time">Variable: <strong>emacs-build-time</strong>
</dt> <dd>
<p>The value of this variable indicates the time at which Emacs was built. It uses the style of <code>current-time</code> (see <a href="time-of-day">Time of Day</a>), or is <code>nil</code> if the information is not available. </p> <div class="example"> <pre class="example">emacs-build-time
⇒ (20614 63694 515336 438000)
</pre>
</div> </dd>
</dl> <dl> <dt id="emacs-version">Variable: <strong>emacs-version</strong>
</dt> <dd><p>The value of this variable is the version of Emacs being run. It is a string such as <code>"26.1"</code>. A value with three numeric components, such as <code>"26.0.91"</code>, indicates an unreleased test version. (Prior to Emacs 26.1, the string includes an extra final component with the integer that is now stored in <code>emacs-build-number</code>; e.g., <code>"25.1.1"</code>.) </p></dd>
</dl> <dl> <dt id="emacs-major-version">Variable: <strong>emacs-major-version</strong>
</dt> <dd><p>The major version number of Emacs, as an integer. For Emacs version 23.1, the value is 23. </p></dd>
</dl> <dl> <dt id="emacs-minor-version">Variable: <strong>emacs-minor-version</strong>
</dt> <dd><p>The minor version number of Emacs, as an integer. For Emacs version 23.1, the value is 1. </p></dd>
</dl> <dl> <dt id="emacs-build-number">Variable: <strong>emacs-build-number</strong>
</dt> <dd><p>An integer that increments each time Emacs is built in the same directory (without cleaning). This is only of relevance when developing Emacs. </p></dd>
</dl> <dl> <dt id="emacs-repository-version">Variable: <strong>emacs-repository-version</strong>
</dt> <dd><p>A string that gives the repository revision from which Emacs was built. If Emacs was built outside revision control, the value is <code>nil</code>. </p></dd>
</dl> <dl> <dt id="emacs-repository-branch">Variable: <strong>emacs-repository-branch</strong>
</dt> <dd><p>A string that gives the repository branch from which Emacs was built. In the most cases this is <code>"master"</code>. If Emacs was built outside revision control, the value is <code>nil</code>. </p></dd>
</dl><div class="_attribution">
<p class="_attribution-p">
Copyright © 1990-1996, 1998-2022 Free Software Foundation, Inc. <br>Licensed under the GNU GPL license.<br>
<a href="https://www.gnu.org/software/emacs/manual/html_node/elisp/Version-Info.html" class="_attribution-link">https://www.gnu.org/software/emacs/manual/html_node/elisp/Version-Info.html</a>
</p>
</div>
|