diff options
| author | Craig Jennings <c@cjennings.net> | 2024-04-07 13:41:34 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2024-04-07 13:41:34 -0500 |
| commit | 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 (patch) | |
| tree | f1190704f78f04a2b0b4c977d20fe96a828377f1 /devdocs/elisp/version-info.html | |
new repository
Diffstat (limited to 'devdocs/elisp/version-info.html')
| -rw-r--r-- | devdocs/elisp/version-info.html | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/devdocs/elisp/version-info.html b/devdocs/elisp/version-info.html new file mode 100644 index 00000000..f1650fa5 --- /dev/null +++ b/devdocs/elisp/version-info.html @@ -0,0 +1,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> |
