Variable: emacs-version
emacs-version is a variable defined in emacs.c.
Value
"31.0.50"
Documentation
Version numbers of this version of Emacs.
This has the form: MAJOR.MINOR[.MICRO], where MAJOR/MINOR/MICRO are integers.
MICRO is only present in unreleased development versions,
and is not especially meaningful. Prior to Emacs 26.1, an extra final
component .BUILD is present. This is now stored separately in
emacs-build-number.
Probably introduced at or before Emacs version 19.1.
Key Bindings
Source Code
// Defined in /usr/src/emacs/src/emacs.c
DEFVAR_LISP ("emacs-version", Vemacs_version,
doc: /* Version numbers of this version of Emacs.
This has the form: MAJOR.MINOR[.MICRO], where MAJOR/MINOR/MICRO are integers.
MICRO is only present in unreleased development versions,
and is not especially meaningful. Prior to Emacs 26.1, an extra final
component .BUILD is present. This is now stored separately in
`emacs-build-number'. */);