- 05 Jan, 2020 6 commits
-
-
Mattias Engdegård authored
-
Mattias Engdegård authored
* lisp/emacs-lisp/bytecomp.el (byte-compile--use-old-handlers) (byte-compile-condition-case, byte-compile-condition-case--old): Remove. (byte-compile-condition-case--new): Rename to byte-compile-condition-case. (byte-compile-catch, byte-compile-unwind-protect): * lisp/emacs-lisp/cconv.el (cconv-convert, cconv-analyze-form): * lisp/emacs-lisp/byte-opt.el (byte-optimize-form-code-walker): Simplify.
-
Paul Eggert authored
-
Paul Eggert authored
-
Paul Eggert authored
-
Paul Eggert authored
* lisp/x-dnd.el (x-dnd-get-drop-x-y, x-dnd-version-from-flags) (x-dnd-more-than-3-from-flags, x-dnd-get-motif-value) (x-dnd-motif-value-to-list): Do not worry about pairs of 16-bit numbers, as the C code no longer generates them; it generates bignums now, when needed on 32-bit platforms.
-
- 04 Jan, 2020 7 commits
-
-
Stefan Monnier authored
* lisp/gnus/gnus-group.el (gnus-group-unsubscribe-group): Simplify.
-
Paul Eggert authored
Reported by Glenn Morris in: https://lists.gnu.org/r/emacs-devel/2020-01/msg00098.html * src/alloc.c (allocate_string_data): If the string is small and there is not enough room in the current block, clear the string if CLEARIT.
-
Philipp Stephani authored
In C++17, 'noexcept' is part of a function type and may be used in typedef declarations, see https://en.cppreference.com/w/cpp/language/noexcept_spec. * src/emacs-module.h.in: Mark function pointer type aliases as 'noexcept' in C++17.
-
Mattias Engdegård authored
* lisp/emacs-lisp/cl-macs.el (cl--parse-loop-clause): Don't generate a condition if both branches are the same, which is the common case.
-
Philipp Stephani authored
* test/src/emacs-module-tests.el (module/function-finalizer): Create 100 leaked functions to increase the probability that at least one gets garbage-collected.
-
Philipp Stephani authored
* src/emacs-module.h.in: Remove 'noexcept' from function pointer type aliases. It is illegal there in C++11, see https://en.cppreference.com/w/cpp/language/noexcept_spec.
-
Paul Eggert authored
On my platform, this sped up (make-string 4000000000 0) from 2.5 to 0.015 seconds (not that people should want to do this much :-). * src/alloc.c (allocate_string_data): New arg CLEARIT. Callers changed. (Fmake_string): Prefer calloc to malloc+memset when allocating a large string of NUL bytes. (make_clear_string): New function. (make_uninit_string): Use it. (make_clear_multibyte_string): New function. (make_uninit_multibyte_string): Use it.
-
- 03 Jan, 2020 15 commits
-
-
Glenn Morris authored
-
Philipp Stephani authored
* src/module-env-28.h: Add new module environment functions to module environment for Emacs 28. * src/emacs-module.h.in: Document that 'emacs_finalizer' also works for function finalizers. * src/emacs-module.c (CHECK_MODULE_FUNCTION): New function. (struct Lisp_Module_Function): Add finalizer data member. (module_make_function): Initialize finalizer. (module_get_function_finalizer) (module_set_function_finalizer): New module environment functions. (module_finalize_function): New function. (initialize_environment): Initialize new environment functions. * src/alloc.c (cleanup_vector): Call potential module function finalizer during garbage collection. * test/data/emacs-module/mod-test.c (signal_error): New helper function. (memory_full): Use it. (finalizer): New example function finalizer. (Fmod_test_make_function_with_finalizer) (Fmod_test_function_finalizer_calls): New test module functions. (emacs_module_init): Define them. * test/src/emacs-module-tests.el (module/function-finalizer): New unit test. * doc/lispref/internals.texi (Module Functions): Document new functionality. (Module Misc): Move description of 'emacs_finalizer' type to 'Module Functions' node, and add a reference to it. * etc/NEWS: Mention new functionality.
-
Eli Zaretskii authored
* src/w32heap.c (sys_calloc): New function, implements calloc in terms of our private implementations of malloc. * nt/inc/ms-w32.h (calloc): Redirect to sys_calloc.
-
Glenn Morris authored
06364316 (origin/emacs-27) * lisp/net/tramp.el (tramp-file-local-na... d3884f50 Adapt commentary in Tramp persistency file 2d82f5a4 Change Tramp version to 2.4.3.27.1 09b65707 ; * src/dispnew.c (adjust_glyph_matrix): Fix last change. 37f9182b Fix redisplay when mode-line-format changes mode-line's he... 1420906b * src/fileio.c (Fwrite_region): Improve the doc string. 01dfcb7c Fix removal of frame decorations on Windows (Bug#38705)
-
Glenn Morris authored
The following commit was skipped: 33815424 Fix compilation with GTK versions older than 3
-
Glenn Morris authored
The following commit was skipped: 4011b179 (emacs-27) ; Auto-commit of loaddefs files.
-
Glenn Morris authored
138e9051 Update distribution documentation
-
Mattias Engdegård authored
-
Michael Albinus authored
-
Michael Albinus authored
* lisp/net/tramp-cache.el (tramp-dump-connection-properties): Adapt commentary in `tramp-persistency-file-name'.
-
Michael Albinus authored
* doc/misc/trampver.texi: * lisp/net/trampver.el: Change version to "2.4.3.27.1". (customize-package-emacs-version-alist): Add Tramp version integrated in Emacs 27.1.
-
Eli Zaretskii authored
-
Eli Zaretskii authored
* lisp/frame.el (top-level): Add mode-line-format, tab-line-format, and header-line-format to the list of variables that should trigger an immediate redisplay of the buffer's window. This fixes redisplay of windows when the mode line changes its height. * src/xdisp.c (window_box_height): Use the window's mode_line_height, tab_line_height, and header_line_height fields in preference to CURRENT_MODE_LINE_HEIGHT, CURRENT_TAB_LINE_HEIGHT, and CURRENT_HEADER_LINE_HEIGHT, respectively. This fixes display of vertical scroll bar when the height of the window's mode line changes. * src/dispnew.c (adjust_glyph_matrix): When resizing a window's matrix, reset the mode_line_p flag of the previous mode-line row, so that the window_box_height, CURRENT_MODE_LINE_HEIGHT, and their ilk won't use stale info. (Bug#38828)
-
Paul Eggert authored
Prefer calloc to malloc+memset when allocating large zeroed objects. This avoids page thrashing when (make-vector 1000000000 nil) allocates a large nil vector, as Emacs need not touch the vector’s pages. This wins on platforms like GNU/Linux where calloc can fiddle with page tables to create a block of memory that is lazily zeroed. * src/alloc.c (lisp_malloc, lmalloc, allocate_vectorlike): New arg CLEARIT to tell callee whether to use malloc or calloc. All callers changed. (allocate_clear_vector, allocate_nil_vector): New functions. * src/alloc.c (xzalloc, make_vector): * src/lisp.h (make_nil_vector): Prefer calloc to malloc + memset(...,0,...).
-
- 02 Jan, 2020 2 commits
-
-
Eli Zaretskii authored
-
Martin Rudalics authored
* src/w32fns.c (w32_set_undecorated): Actualize f->output_data.w32->dwStyle for subsequent calls of AdjustWindowRect (Bug#38705). * src/w32term.h (struct w32_output): Add comment for dwstyle slot.
-
- 01 Jan, 2020 10 commits
-
-
Eli Zaretskii authored
* src/xfns.c (x_get_net_workarea): Change a recently moved #ifndef so that GTK builds which need this function will compile it. Reported by John <jpff@codemist.co.uk>. (cherry picked from commit d36adb54)
-
Eli Zaretskii authored
* src/xfns.c (x_get_net_workarea): Change a recently moved #ifndef so that GTK builds which need this function will compile it. Reported by John <jpff@codemist.co.uk>.
-
Eli Zaretskii authored
* lisp/custom.el (custom-push-theme): Don't use setcar to modify the recorded value of PROP; instead, cons a new property list by deleting the old value and adding the new one. (Bug#38812)
-
Mattias Engdegård authored
-
Mattias Engdegård authored
This reverts commit bb9402e6.
-
Eli Zaretskii authored
* etc/NEWS.24: Minor retroactive wording changes and additions to fix the version shown by Help commands. (Bug#38844)
-
Mattias Engdegård authored
Occasionally, loading cl-generic.el from source requires max_specpdl_size > 1600 when bootstrapping, and thus fails. In any case we are very close to the limit. * src/eval.c (init_eval_once): Raise max_specpdl_size to 1800. * doc/lispref/variables.texi (Local Variables): Update docs.
-
Glenn Morris authored
-
Glenn Morris authored
-
Phillip Lord authored
* admin/nt/README-ftp-server: Remove as obsolete * admin/nt/dist-build/README-windows-binaries: Add information about installer
-