Next: , Up: Installing   [Index]


4.1.1 What is Your Version

To check your Emacs’ version from the shell, type:

emacs --version

Listing 4.1: Your Emacs Version using the Shell

GNU Emacs 28.0.50
Copyright (C) 2021 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of GNU Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.

Emacs Version using Emacs

The version can be checked from within Emacs, using:

M-x emacs-version ; or
M-x version ; an alias for 'emacs-version'
Function: emacs-version &optional here

Return string describing the version of Emacs that is running.

HERE

If optional argument HERE is non-nil, insert string at point.

(print (emacs-version))

Listing 4.2: Your Emacs Version using Emacs


"GNU Emacs 28.0.50 (build 1, x86_64-apple-darwin19.6.0, NS appkit-1894.60 Version 10.15.7 (Build 19H1323))
 of 2021-08-11"

System Configuration

To check the system configuration, refer to the value of ‘system-configuration’.

Variable: system-configuration

Value is string indicating configuration Emacs was built for.

Use this variable in programs to choose actions according to the system configuration.

system-configuration

Listing 4.3: Value of the ’system-configuration’ Variable

x86_64-apple-darwin19.6.0