1. 09 Jul, 2020 2 commits
    • Paul Eggert's avatar
      Use Gnulib libgmp module · c8b6006d
      Paul Eggert authored
      Instead of doing GMP by hand, use the Gnulib libgmp module.
      * .gitignore: Add lib/gmp.h.
      * admin/merge-gnulib (GNULIB_MODULES): Add libgmp.
      * configure.ac (GMP_LIB, GMP_OBJ): Remove.  Gnulib uses the name
      LIB_GMP, so all uses changed.  All uses of GMP_OBJ removed.
      (HAVE_GMP): Set this from Gnulib’s variables.
      * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
      * lib/mini-gmp-gnulib.c, lib/mini-gmp.c, lib/mini-gmp.h, m4/libgmp.m4:
      New files, copied from Gnulib.
      * src/bignum.h, test/data/emacs-module/mod-test.c:
      Include gmp.h unconditionally.
      * src/mini-gmp-emacs.c, src/mini-gmp.c, src/mini-gmp.h:
      Remove.  This moves these files from src to lib, and
      updates them to the current GMP version.
      * test/Makefile.in (GMP_H): New macro.
      ($(test_module)): Use it to decide whether to compile
      mini-gmp-gnulib.c too.
    • Paul Eggert's avatar
      Speed up GCC 10.1 compilation in default Git builds · 50130655
      Paul Eggert authored
      * configure.ac (nw): GCC 10.1 introduced warnings enabled by -fanalyzer
      that slow down compilation considerably.  Generate these warnings only
      if --enable-gcc-warnings is explicitly given.  Also, do not bother to
      eliminate warnings that Gnulib’s revised manywarnings module no longer
  2. 01 Jul, 2020 1 commit
    • YASUOKA Masahiko's avatar
      Support pty's on OpenBSD · af313f5b
      YASUOKA Masahiko authored
      * configure.ac (PTY_TTY_NAME_SPRINTF): OpenBSD has posix_openpt
      nowadays.  (Bug#42059)
      Copyright-paperwork-exempt: yes
  3. 28 Jun, 2020 1 commit
    • Timo Myyrä's avatar
      Add thread-naming support for OpenBSD · e4028d15
      Timo Myyrä authored
      OpenBSD has pthread_set_name_np; FreeBSD appears to have both
      this call and pthread_setname_np (the latter call is used in preference).
      * configure.ac: Detect pthread_set_name_np.
      * sys/systhread.c:
      Include <pthread_np.h> and call pthread_set_name_np if available.
  4. 27 May, 2020 1 commit
    • Paul Eggert's avatar
      --with-wide-int is a no-op on 64-bit hosts · 9d11f127
      Paul Eggert authored
      * configure.ac: Clarify wording for --with-wide-int help.
      * src/pdumper.c (dump_vectorlike_generic):
      Do the eassert even if --with-wide-int was specified unnecessarily.
  5. 16 Apr, 2020 2 commits
    • Alan Third's avatar
      Use native image API for NS · e105d01c
      Alan Third authored
      * configure.ac (NATIVE_IMAGE_API): Move above NS definitions.
      (HAVE_NATIVE_IMAGE_API): Set for NS.
      (HAVE_PNG, HAVE_JPEG, HAVE_GIF, HAVE_TIFF): Enable on NS builds.
      * src/image.c (HAVE_NS): Fix a number of #if's so they no longer rely
      on HAVE_NS.
      (PIX_MASK_DRAW): Add for HAVE_NS so libpng support will compile.
      (native_image_load): Add NS support.
      (gif_load): Remove NS specific definitions.
      * src/nsimage.m (ns_can_use_native_image_api): New function.
      * src/nsterm.h: (ns_can_use_native_image_api): New function.
    • NicolasPetton's avatar
      Bump Emacs version to 27.0.91 · 399c20d2
      NicolasPetton authored
      * README:
      * configure.ac:
      * msdos/sed2v2.inp:
      * nt/README.W32: Bump Emacs version.
  6. 15 Apr, 2020 1 commit
  7. 14 Apr, 2020 2 commits
    • Eli Zaretskii's avatar
      Make use of MS-Windows native image API be selectable at run time · e94206aa
      Eli Zaretskii authored
      * configure.ac: Minor cleanup in how w32image.o is added to the
      build when native image APIs are requested.
      * src/w32gui.h (w32_load_image, w32_can_use_native_image_api)
      (w32_gdiplus_shutdown): Move prototypes from w32term.h here, since
      w32.c doesn't include w32term.h.
      * src/image.c (struct image_type): No need to pass TYPE to the
      'valid_p' method.  All callers changed.
      (initialize_image_type) [HAVE_NATIVE_IMAGE_API]: Call
      'image_can_use_native_api' before trying image-specific methods.
      (image_can_use_native_api): New function.
      (image_types): Remove the native_image_type parts.
      (syms_of_image): New symbol 'native-image'.
      (parse_image_spec): Accept native-image "type" for any image type.
      * src/w32term.c (syms_of_w32term): New variable
      * src/w32image.c: (w32_can_use_native_image_api): New function.
      (gdiplus_init): Rename from w32_gdiplus_startup. Simplify code.
      Move the call to GdiplusStartup to a separate function.  Use
      ordinal number for SHCreateMemStream if cannot load it by name.
      (w32_load_image): Ignore Win32Error status from
      Move DEFSYMs from here...
      * src/image.c (syms_of_image) [HAVE_NATIVE_IMAGE_API]: ...to here.
      * etc/NEWS: Update the entry about native image API use.
    • Juan José García-Ripoll's avatar
      Initial version of native image API support for MS-Windows · df254a74
      Juan José García-Ripoll authored
      * src/w32image.c: New file.
      * src/w32term.h: Add prototypes of 'w32_load_image',
      'w32_gdiplus_startup', 'w32_gdiplus_shutdown', and
      * src/w32term.c (w32_query_frame_background_color): No longer
      * src/w32.c (term_ntproc) [HAVE_GDIPLUS]: Call
      * src/image.c (struct image_type) <valid_p>: Accept an additional
      argument, the image type.  All implementations changed.
      (init_native_image_functions, native_image_p, native_image_load)
      [HAVE_NATIVE_IMAGE_API]: New methods for "native image type".
      (initialize_image_type) [HAVE_NATIVE_IMAGE_API]: Call
      (image_types) [HAVE_NATIVE_IMAGE_API]: Add settings for native
      image API.
      (lookup_image_type) [HAVE_NATIVE_IMAGE_API]: Initialize native
      functions if needed.
      * lisp/term/w32-win.el (dynamic-library-alist): Add gdiplus and
      * etc/NEWS: Announce the new feature.
      * configure.ac (native-image-api): New option, OFF by default.
      (HAVE_NATIVE_IMAGE_API): If native-image-api is selected, add
      w32image.o to W32_OBJ.
  8. 05 Apr, 2020 1 commit
  9. 04 Apr, 2020 1 commit
  10. 29 Mar, 2020 1 commit
  11. 27 Feb, 2020 1 commit
  12. 03 Feb, 2020 1 commit
    • Robert Pluim's avatar
      Cater for 3-argument version of pthread_setname_np · 83150842
      Robert Pluim authored
      Fixes Bug#39363.
      * configure.ac: Add check for 3-argument version of
      * src/systhread.c (sys_thread_set_name)
      [HAVE_PTHREAD_SETNAME_NP_3ARG]: Call pthread_setname_np with
      3 arguments.
  13. 31 Jan, 2020 1 commit
  14. 28 Jan, 2020 1 commit
    • Paul Eggert's avatar
      Revert the --with-install-srcdir patch · a02b1792
      Paul Eggert authored
      Also, update description of debuginfo and sources to match
      Debian and Red Hat more accurately, and move this sad tale
      from INSTALL to etc/PROBLEMS which is a better home for it.
      * Makefile.in (emacs_srcdir, install-c-src):
      * configure.ac (emacs_srcdir, --with-install-srcdir):
      * src/epaths.in (PATH_EMACS_SOURCE):
      * src/lread.c (emacs-source-directory):
      Remove.  All uses removed.
      * lisp/emacs-lisp/find-func.el (find-function-C-source):
      Do not worry about compressed C sources.
      * src/lread.c: Do not include <dosname.h>.
  15. 26 Jan, 2020 1 commit
  16. 25 Jan, 2020 1 commit
    • Paul Eggert's avatar
      Install C source code for C-h f etc. · f42d57c7
      Paul Eggert authored
      Without this change, on typical GNU/Linux distributions
      like Debian, the first button of ‘C-h f car RET’ does not work
      because the source code for ‘car’ is not installed (Bug#37527).
      Fix this by installing the (compressed) C source code alongside
      the (compressed) Lisp source code that is already installed.
      This adds about 3 MB (about 2%) to the size of the installed files
      on my platform.
      * Makefile.in (emacs_srcdir): New macro.
      (epaths-force): Substitute PATH_EMACS_SOURCE.
      (install-c-src): New rule, that installs a copy of the C source
      code if emacs_srcdir says to.
      (install-arch-indep): Depend on it.
      * configure.ac (emacs_srcdir): New var.
      Add support for --disable-install-srcdir.
      * lisp/emacs-lisp/find-func.el (find-function-C-source-directory):
      Look in emacs-source-directory first.
      (find-function-C-source): Also look for gzipped source files.
      * lisp/startup.el (normal-top-level):
      Also recode emacs-source-directory.
      * src/epaths.in (PATH_EMACS_SOURCE): New macro.
      * src/lread.c: Include dosname.h, for IS_ABSOLUTE_FILE_NAME.
      (syms_of_lread): New var emacs-source-directory.
  17. 24 Jan, 2020 2 commits
  18. 19 Jan, 2020 1 commit
    • Paul Eggert's avatar
      Remove Gnulib putenv code · 35a1a007
      Paul Eggert authored
      It’s not needed, since Emacs always uses the system putenv and all
      platforms have putenv.  This improves on the fix for Bug#19874.
      Suggested by Bruno Haible.
      * admin/merge-gnulib (GNULIB_MODULES): Remove putenv.
      * configure.ac: Remove workarounds for Gnulib putenv module.
      * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
      * lib/putenv.c, m4/putenv.m4: Remove.
  19. 18 Jan, 2020 1 commit
  20. 15 Jan, 2020 1 commit
    • Stefan Kangas's avatar
      Remove unused ftx font backend driver · 576dfc8a
      Stefan Kangas authored
      * src/ftxfont.c: Remove file.
      * admin/notes/font-backend:
      * configure.ac:
      * src/Makefile.in:
      * src/deps.mk (ftxfont.o):
      * src/font.c (syms_of_font):
      * src/font.h (top-level, font_property_index):
      * src/xfns.c (Fx_create_frame, x_create_tip_frame): Remove unused ftx
      font backend driver.  Thanks to Glenn Morris for pointing out that it
      can be removed.  (Bug#34663)
  21. 14 Jan, 2020 2 commits
    • Robert Pluim's avatar
      Default cairo to enabled · 88efc736
      Robert Pluim authored
      * configure.ac (USE_CAIRO): Default cairo to enabled.
      * etc/NEWS: Announce the change to use cairo if found.
    • Paul Eggert's avatar
      Port configure.ac to future Gnulib · 0abda558
      Paul Eggert authored
      Rewrite an ancient Alpha ELF check to port to a future Gnulib
      version that may require AC_CHECK_DECL to be set up properly as
      per the ‘Expanded Before Required’ section of the Autoconf manual
      Autoconf doesn’t guarantee that AC_CHECK_DECL will work properly
      if called conditionally (e.g., inside a shell ‘case’ statement)
      and the condition is false.  Problem reported by Bruno Haible in:
      * configure.ac (LD_SWITCH_MACHINE): Migrate ELF check later,
      when AC_CHECK_DECL is properly set up.
  22. 07 Jan, 2020 1 commit
    • Mattias Engdegård's avatar
      Fix BSD and macOS builds w.r.t. pthread_setname_np (bug#38632) · 73fd8a4b
      Mattias Engdegård authored
      pthread_setname_np takes only a single argument on BSD and macOS,
      and affects the current thread only.
      * configure.ac: Add check for single-argument pthread_setname_np
      * src/systhread.c (sys_thread_set_name): New (w32 and pthread versions).
      (sys_thread_create): Remove name argument and name-setting.
      (w32_beginthread_wrapper): Remove name-setting.
      * src/systhread.h (sys_thread_create, sys_thread_set_name):
      Update prototypes.
      * src/thread.c (run_thread): Call sys_thread_set_name.
      (Fmake_thread): Adapt call to sys_thread_create.
      * src/thread.h (struct thread_state): Adjust comment.
  23. 06 Jan, 2020 1 commit
    • Robert Pluim's avatar
      Use pthread_setname_np to set thread name · 9063124b
      Robert Pluim authored
      * configure.ac: Remove check for sys/prctl.h and prctl, check for
      pthread_setname_np instead.
      * systhread.c: Remove sys/prctl.h include.
      (sys_thread_create) [HAVE_PTHREAD_SETNAME_NP]: Use pthread_setname_np
      to set the name of the newly created thread (Bug#38632).
      * thread.c (Fmake_thread): Use ENCODE_SYSTEM instead of
      ENCODE_UTF_8 on the thread name.
  24. 01 Jan, 2020 2 commits
  25. 25 Dec, 2019 1 commit
    • Philipp Stephani's avatar
      Support .dylib suffix for modules on macOS (Bug#36226). · 28268e47
      Philipp Stephani authored
      On macOS, shared libraries typically have the suffix .dylib.  This
      commit switches the module suffix to .dylib on Darwin to account for
      that.  To also support the .so suffix, introduce the concept of a
      secondary module suffix.
      * configure.ac: Switch MODULES_SUFFIX to .dylib for Darwin, introduce
      * src/lread.c (Fload, syms_of_lread): Also use
      * test/src/emacs-module-tests.el (module-darwin-secondary-suffix): New
      unit test.
  26. 24 Dec, 2019 1 commit
  27. 23 Dec, 2019 2 commits
    • Eli Zaretskii's avatar
      Bump Emacs version to 28.0.50 · 64fe67be
      Eli Zaretskii authored
      * README:
      * configure.ac:
      * nt/README.W32:
      * msdos/sed2v2.inp:
      * src/msdos.c (internal_terminal_init):
      * etc/refcards/ru-refcard.tex: Bump Emacs version to 28.0.50.
      * lisp/cus-edit.el (customize-changed-options-previous-release):
      Bump up the value to 26.3.
      * etc/NEWS.27: Renamed from NEWS.
      * etc/NEWS: New file for Emacs 28.
    • Eli Zaretskii's avatar
      Cut the emacs-27 release branch · 9eb871c8
      Eli Zaretskii authored
      * lisp/cus-edit.el (customize-changed-options-previous-release):
      Change the value to 26.3.
      * README:
      * configure.ac:
      * nt/README.W32:
      * msdos/sed2v2.inp: Bump Emacs version to 27.0.60.
  28. 18 Nov, 2019 1 commit
  29. 17 Nov, 2019 1 commit
  30. 22 Oct, 2019 1 commit
    • Paul Eggert's avatar
      Portcheck only if --enable-gcc-warnings · 3716921c
      Paul Eggert authored
      Problem reported by Richard Copley (Bug#37852).
      This patch causes the problem to not occur if one uses plain
      ‘configure’.  The problem can still occur if with ‘configure
      --enable-gcc-warnings’, so a further fix may be needed.
      * configure.ac (GNULIB_PORTCHECK, _FORTIFY_SOURCE):
      Define these only with an explicit --enable-gcc-warnings.
  31. 14 Oct, 2019 1 commit
  32. 24 Sep, 2019 1 commit
  33. 04 Sep, 2019 1 commit