aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorPhilipp Stephani2019-04-24 10:22:18 +0200
committerPhilipp Stephani2019-04-28 20:08:25 +0200
commit4d97e1a9ea35c3a1d9f03abb7a822d57f384c1a5 (patch)
tree0ed9322698c302f7e2190f570102cc41112c0d86 /etc
parent24f717a5d7de80fdd6aa061f35d04144fe1c4e10 (diff)
downloademacs-4d97e1a9ea35c3a1d9f03abb7a822d57f384c1a5.tar.gz
emacs-4d97e1a9ea35c3a1d9f03abb7a822d57f384c1a5.zip
Export major version of latest Emacs supported by emacs-module.h.
This is useful if module authors want to support multiple versions of emacs-module.h. * configure.ac (emacs_major_version): Define substitution. * src/emacs-module.h.in (EMACS_MAJOR_VERSION): Define macro. * doc/lispref/internals.texi (Module Initialization): Document EMACS_MAJOR_VERSION preprocessor macro. * test/data/emacs-module/mod-test.c (emacs_module_init): Verify behavior of EMACS_MAJOR_VERSION.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index cf6f4fea3e9..9b32d720b62 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1933,6 +1933,9 @@ convert between timespec structures and Emacs Lisp time values.
1933'extract_big_integer' to create and extract arbitrary-size integer 1933'extract_big_integer' to create and extract arbitrary-size integer
1934values. 1934values.
1935 1935
1936** emacs-module.h now defines a macro EMACS_MAJOR_VERSION that expands
1937to the major version of the latest Emacs supported by the header.
1938
1936 1939
1937* Changes in Emacs 27.1 on Non-Free Operating Systems 1940* Changes in Emacs 27.1 on Non-Free Operating Systems
1938 1941