diff options
| author | Philipp Stephani | 2019-04-24 10:22:18 +0200 |
|---|---|---|
| committer | Philipp Stephani | 2019-04-28 20:08:25 +0200 |
| commit | 4d97e1a9ea35c3a1d9f03abb7a822d57f384c1a5 (patch) | |
| tree | 0ed9322698c302f7e2190f570102cc41112c0d86 /etc | |
| parent | 24f717a5d7de80fdd6aa061f35d04144fe1c4e10 (diff) | |
| download | emacs-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/NEWS | 3 |
1 files changed, 3 insertions, 0 deletions
| @@ -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 |
| 1934 | values. | 1934 | values. |
| 1935 | 1935 | ||
| 1936 | ** emacs-module.h now defines a macro EMACS_MAJOR_VERSION that expands | ||
| 1937 | to 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 | ||