1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-05 22:20:24 -08:00
Commit graph

676 commits

Author SHA1 Message Date
Paul Eggert
8cdc8a51ef Update from Gnulib by running admin/merge-gnulib 2025-11-25 23:08:33 -08:00
Po Lu
386e4642dc * lib/strnlen.c (strnlen): Fix syntax error in Gnulib module. 2025-11-21 09:49:44 +08:00
Paul Eggert
918b9f04f4 Prefer C23 support if available
This merges in changes that were made to Autoconf master
in April 2024.  It causes ‘configure’ to prefer the C compiler to
enable C23 features if possible; otherwise, ‘configure’
behaves as before, using C11 if available and C99 if not.
* admin/merge-gnulib (GNULIB_MODULES): Add std-gnu23.
(AVOIDED_MODULES): Add (i.e., start avoiding) std-gnu11.
* m4/std-gnu11.m4: Remove.
* m4/std-gnu23.m4: Add.
2025-11-20 11:14:03 -08:00
Paul Eggert
2cc6c81278 Update from Gnulib by running admin/merge-gnulib 2025-11-20 09:11:59 -08:00
Paul Eggert
eb69aca760 Update from Gnulib by running admin/merge-gnulib 2025-11-06 14:35:21 -08:00
Paul Eggert
50a1929f6c Update from Gnulib by running admin/merge-gnulib 2025-11-06 12:12:24 -08:00
Paul Eggert
7654ec5e95 Update from Gnulib by running admin/merge-gnulib
* admin/merge-gnulib (GNULIB_MODULES): Add stdio-windows.
Also, sort and remove duplicates.
2025-11-06 12:02:53 -08:00
Eli Zaretskii
d6402072f2 A better fix for recent changes in Gnulib's acl_entries.c
See https://lists.gnu.org/archive/html/emacs-devel/2025-11/msg00145.html
for the related discussions.
* nt/mingw-cfg.site (ac_cv_func_acl_entries): Set to "yes" to
disable compilation of lib/acl_entries.c on MinGW.

* lib/acl_entries.c (acl_entries): Revert last change, as it is no
longer needed.
2025-11-06 08:36:50 +02:00
Eli Zaretskii
d3101630ab Unbreak MinGW build broken by Gnulib merge
* lib/acl_entries.c (acl_entries): Make it no-op for MinGW, as it
was before.  Without this, acl_entries doesn't compile on MinGW.

* nt/gnulib-cfg.mk (OMIT_GNULIB_MODULE_issymlink)
(OMIT_GNULIB_MODULE_issymlinkat): Disable these Gnulib modules.
2025-11-05 17:51:42 +02:00
Paul Eggert
59fbaca6b9 Update from Gnulib by running admin/merge-gnulib
* admin/merge-gnulib (GNULIB_MODULES): Add stringeq.
With current Gnulib it is already present as in indirect dependency;
listing it here because Emacs now depends on it directly.
* lib-src/ebrowse.c, lib-src/etags.c:
(streq): Remove, as Gnulib defines this now.
* lib/fseterr.c, lib/fseterr.h, lib/issymlink.c, lib/issymlink.h:
* lib/issymlinkat.c, lib/stdio-consolesafe.c, lib/string.c:
* m4/fseterr.m4, m4/gettext_h.m4, m4/stringeq.m4:
New files from Gnulib.
* src/conf_post.h (tzfree) [__ANDROID_API__ >= 35]: Remove.
2025-11-04 13:32:58 -08:00
Paul Eggert
687d3cb03b Update from Gnulib by running admin/merge-gnulib
* lib/sys-limits.h: New file.
2025-08-02 11:19:24 -07:00
Paul Eggert
3797484608 Update from Gnulib by running admin/merge-gnulib 2025-07-29 15:06:14 -07:00
Paul Eggert
30bfb03adf Update from Gnulib by running admin/merge-gnulib 2025-06-29 06:07:52 -07:00
Paul Eggert
dbdf761187 Update from Gnulib by running admin/merge-gnulib 2025-06-27 23:06:40 -07:00
Paul Eggert
e929d6df77 Update from Gnulib by running admin/merge-gnulib 2025-05-08 18:54:40 -07:00
Paul Eggert
c9c6abfa81 Update from Gnulib by running admin/merge-gnulib
The following changes were made by hand,
so that admin/merge-gnulib could succeed
instead of failing because the diff didn’t match.
* admin/gnulib-patches/lib/getloadavg.c.diff:
Remove, as it is no longer needed now that recent
Gnulib has been merged.
* admin/merge-gnulib (GNULIB_TOOL_FLAGS):
Remove the --local-dir="$src"admin/gnulib-patches option,
as it is no longer needed either.
2025-05-08 00:16:46 -07:00
Po Lu
a84a934a44 Render lib/getloadavg.c patches more permanent
* admin/gnulib-patches/lib/getloadavg.c.diff: New file.

* admin/merge-gnulib (GNULIB_TOOL_FLAGS): Set --local-dir to
admin/gnulib-patches.

* lib/gnulib.mk.in: Update from Gnulib.
2025-04-21 09:37:59 +08:00
Po Lu
57966a3350 Temporary fix for compilation on Android API levels <= 13
* lib/getloadavg.c (getloadavg): Don't use sysinfo on Android
API levels <= 13.  This will be resolved in Gnulib shortly, with
any luck.
2025-04-20 20:49:24 +08:00
Paul Eggert
71ee484cac Update from Gnulib by running admin/merge-gnulib 2025-04-19 19:31:25 -07:00
Paul Eggert
0e4883f18e Update from Gnulib by running admin/merge-gnulib 2025-02-07 16:52:07 -08:00
Stefan Kangas
bf97946d7d Merge branch 'scratch/no-purespace' into 'master' 2025-02-01 04:56:52 +01:00
Paul Eggert
8661f40ce4 Remove unnecessary stdalign.in.h
* lib/stdalign.in.h: Remove.  This file was already removed in
commit b429274c5b (2023-02-04)
but was brought back mistakenly by a merge from emacs-29 in
commit ecf08f0621 (2024-01-02).
* nt/inc/stdalign.h: Don’t mention removed file in comment.
2025-01-18 11:27:48 -08:00
Paul Eggert
29794c7145 Let Gnulib deal with malloc/realloc 0
Instead of worrying about whether malloc and realloc yield a
non-null pointer when given size 0 (the traditional behavior
recommended by Doug McIlroy, and the only behavior that makes
sense for Emacs), let Gnulib arrange for the traditional behavior.
* admin/merge-gnulib (GNULIB_MODULES): Add malloc-gnu (which we
were already depending on indirectly) and realloc-posix.
* lib/gnulib.mk.in, m4/gnulib-comp.m4:
Regenerate by running admin/merge-gnulib.
2025-01-17 15:56:30 -08:00
Paul Eggert
9eefe7ccda Update from Gnulib by running admin/merge-gnulib 2025-01-17 15:56:30 -08:00
Paul Eggert
bc4c5818df Update from Gnulib by running admin/merge-gnulib 2025-01-16 23:22:34 -08:00
Paul Eggert
74dc2bd280 Update from Gnulib by running admin/merge-gnulib 2025-01-15 19:31:39 -08:00
Paul Eggert
3adf3f546e Update from Gnulib by running admin/merge-gnulib 2025-01-01 15:19:02 -08:00
Paul Eggert
4da38c6321 Update copyright year to 2025
Run "TZ=UTC0 admin/update-copyright".
2025-01-01 07:39:17 +00:00
Paul Eggert
cf5e58a14d Update from Gnulib by running admin/merge-gnulib 2024-12-26 16:29:02 -08:00
Paul Eggert
b1e5f6d6ef Update from Gnulib by running admin/merge-gnulib
* admin/merge-gnulib (AVOIDED_MODULES): Avoid gnulib-i18n.
* lib/stdlib.c, m4/selinux-selinux-h.m4:
New files, taken from Gnulib.
2024-12-17 14:13:54 -08:00
Pip Cet
b2bc337a5f Unexec removal: Remove HYBRID_MALLOC support
* src/gmalloc.c (gdefault_morecore): Remove HYBRID_MALLOC code.
(allocated_via_gmalloc, hybrid_malloc, hybrid_calloc, hybrid_free_1)
(hybrid_free, hybrid_aligned_alloc, hybrid_realloc): Remove functions.

* msdos/sed1v2.inp:
* msdos/sedlibmk.inp:
* src/alloc.c (GC_MALLOC_CHECK, USE_ALIGNED_ALLOC)
(refill_memory_reserve, aligned_alloc):
* src/emacs.c (main):
* src/lastfile.c (my_edata):
* src/lisp.h:
* src/ralloc.c:
* src/sysdep.c (get_current_dir_name_or_unreachable):
* src/xdisp.c (decode_mode_spec): Remove HYBRID_MALLOC conditions.

* configure.ac (hybrid_malloc, HYBRID_MALLOC): Remove variables and
dependent code.
* src/conf_post.h (hybrid_malloc, hybrid_calloc, hybrid_free)
(hybrid_aligned_alloc, hybrid_realloc): Remove conditional prototypes.
* src/Makefile.in (HYBRID_MALLOC): Remove variable.
(base_obj): Remove sheap.o
(LIBEGNU_ARCHIVE):
* lib/Makefile.in (libgnu_a_OBJECTS): Remove libegnu.a support.
2024-12-12 22:48:11 +01:00
Paul Eggert
73427887d6 Update from Gnulib by running admin/merge-gnulib 2024-09-17 00:35:03 -07:00
Eli Zaretskii
266e321d96 Revert "Fix MinGW build broken by recent update from Gnulib"
This reverts commit b737c6125d.
It is no longer needed with the introduction of nt/inc/signal.h.
2024-09-06 09:24:56 +03:00
Eli Zaretskii
e218d09087 Revert "; Fix last change in lib/sig2str.h."
This reverts commit 91e7b47d6c.
It is no longer needed with the introduction of nt/inc/signal.h.
2024-09-06 09:24:30 +03:00
Eli Zaretskii
42da79c075 Revert "; Another fix for str2sig.h"
This reverts commit df57e44a08.
It is no longer needed with introduction of nt/inc/signal.h.
2024-09-06 09:23:55 +03:00
Eli Zaretskii
df57e44a08 ; Another fix for str2sig.h 2024-09-05 08:38:16 +03:00
Eli Zaretskii
91e7b47d6c ; Fix last change in lib/sig2str.h. 2024-09-05 08:26:00 +03:00
Eli Zaretskii
b737c6125d Fix MinGW build broken by recent update from Gnulib
Gnulib moved the prototypes of 'sig2str' and 'str2sig' from
sig2str.h to signal.h, but MinGW does not use the Gnulib
signal.h header, and doesn't have these functions in its
own signal.h.
* lib/sig2str.h (SIG2STR_MAX, sig2str, str2sig): Define and
prototype if not already defined.
2024-09-05 08:20:59 +03:00
Po Lu
1a13c5e63e ; Update from Gnulib
* configure.ac:

* src/conf_post.h: Remove workarounds now rendered redundant by
Gnulib.
2024-09-05 08:45:18 +08:00
Eli Zaretskii
d1f896b5f8 Merge from origin/emacs-30
4b60267d83 Make Python skeletons available in 'python-ts-mode' as well
62dcbfb776 Merge branch 'emacs-30' of git.savannah.gnu.org:/srv/git/...
1baa62b2ac ; * etc/NEWS: Fix typos.
dfcfaa0ef5 More accurate documentation of 'equal' in ELisp Reference
baaf97ce1a ; Fix some ungrammatical uses of "allows to"

# Conflicts:
#	etc/NEWS
2024-08-31 08:14:13 -04:00
Sean Whitton
baaf97ce1a ; Fix some ungrammatical uses of "allows to"
* doc/emacs/anti.texi (Antinews):
* etc/NEWS:
* etc/NEWS.29:
* lib/cdefs.h:
* lisp/tab-bar.el (tab-bar-select-restore-windows):
* lisp/vc/vc-git.el (vc-git-print-log-follow):
* m4/gnulib-common.m4 (gl_CHECK_FUNCS_SET_RESULTS):
(gl_CHECK_FUNCS_ANDROID): Fix ungrammatical uses of "allows to".
2024-08-30 11:47:35 +01:00
Paul Eggert
f5dbdedcc5 Update from Gnulib by running admin/merge-gnulib 2024-07-16 15:37:18 -07:00
Paul Eggert
831539542f * lib/timespec-sub.c: Copy manually from Gnulib. 2024-07-10 18:18:07 +02:00
Paul Eggert
7f89fe8a34 Update from gnulib 2024-06-30 11:31:55 +01:00
Paul Eggert
4a8c8021cc Update from Gnulib by running admin/merge-gnulib
* m4/wchar_t.m4: Remove; no longer needed.
2024-06-30 01:03:16 +01:00
Po Lu
4124b98509 Enable compiling Emacs with implicit Make rules suppressed
* lib/Makefile.in (.SUFFIXES):

* lwlib/Makefile.in (.SUFFIXES):

* oldXMenu/Makefile.in (.SUFFIXES):

* src/Makefile.in (.SUFFIXES): Register .c as a default suffix,
for this list is emptied when `-r' is provided to Make.
2024-06-14 10:44:31 +08:00
Paul Eggert
24b7bf2746 More-permanent fix for build with Android NDK r10b
* configure.ac (gl_cv_header_working_endian_h):
Remove temporary workaround for Android.
* lib/endian.in.h: Copy latest version from Gnulib.
2024-06-05 09:26:53 +08:00
Eli Zaretskii
43c354a000 Fix the build with mingw.org's MinGW
The change in boot-time.c imported from Gnulib broke the
MinGW build using mingw.org's MinGW.  It is wrong to include
sysinfoapi.h, MS documentation says to include <windows.h>.
* lib/boot-time.c: Don't include sysinfoapi.h.
2024-06-04 19:12:38 +03:00
Paul Eggert
799f78a92c Update from Gnulib by running admin/merge-gnulib
* lib/endian.c, lib/endian.in.h, m4/endian_h.m4, m4/sys_cdefs_h.m4:
New files, copied from Gnulib.
2024-06-03 22:34:34 -07:00
Paul Eggert
c07160b8df Update from Gnulib by running admin/merge-gnulib 2024-05-19 08:58:14 -07:00