aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| | * Improve doc-strings of 'quit-window' and 'quit-restore-window' (Bug#38819)Martin Rudalics2020-01-051-8/+8
| | | | | | | | | | | | | | | | | | * lisp/window.el (quit-restore-window, quit-window): Make doc-strings more consistent; add references to corresponding section of the Elisp manual (Bug#38819).
| | * Fix MH-E bug #470: Show buffer discards text propertiesStephen Gildea2020-01-041-8/+6
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/mh-e/mh-show.el (mh-display-msg): reset font lock and set major mode *before* formatting message content. This changes lets fonts work when the Show buffer is reused for a new message. (mh-show-mode): no longer set buffer-read-only; that is better done by mh-display-msg after setting all content.
| | * Fix some broken conditional formsPaul Eggert2020-01-0412-47/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem reported by Mattias Engdegård in: https://lists.gnu.org/r/emacs-devel/2020-01/msg00088.html * lisp/cedet/ede/cpp-root.el (ede-create-lots-of-projects-under-dir): Remove this quick hack, which didn’t do anything anyway. * lisp/cedet/ede/pconf.el (ede-proj-configure-test-required-file): * lisp/emacs-lisp/tabulated-list.el (tabulated-list-print-col): * lisp/net/nsm.el (nsm-check-tls-connection): Use ‘when’ rather than bypassing it. This doesn’t affect behavior and is better style. * lisp/cedet/srecode/semantic.el (srecode-semantic-handle-:tag): Fix typo that suppressed an error. * lisp/filesets.el (filesets-run-cmd): Fix typo that mishandled spacing. * lisp/gnus/gnus-cloud.el (gnus-cloud-update-newsrc-data): Fix typo that caused “GROUP has older different info in the cloud as of DATE, update it here?” prompt result to always be treated as “yes”. * lisp/gnus/mml-smime.el (mml-smime-openssl-encrypt): Simplify, since smime-encrypt-buffer signals error on failure. * lisp/international/titdic-cnv.el (tsang-quick-converter): Simplify. The conversion of this file to utf-8-emacs in 2019-01-08T02:18:40Z!monnier@iro.umontreal.ca removed the distinction between Big5 and CNS fulltitles in the generated docstring. * lisp/org/org-agenda.el (org-agenda-show-and-scroll-up): * lisp/textmodes/table.el (table--generate-source-cell-contents): Simplify by removing useless code. * lisp/org/ox-odt.el (org-odt--format-timestamp): Fix typo that always output time-of-day even when the timestamp lacked it.
| | * Fix a scoping error in tramp-sudoedit.elMichael Albinus2020-01-041-15/+15
| | | | | | | | | | | | | | | * lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-file-system-info): Fix a scoping error.
| | * * lisp/autorevert.el (auto-revert-notify-handler): Fix bracketing.Mattias Engdegård2020-01-041-2/+2
| | |
| | * Fix typo in 'window_box_height'Martin Rudalics2020-01-041-10/+11
| | | | | | | | | | | | * src/xdisp.c (window_box_height): Add missing 'else'.
| * | ; Merge from origin/emacs-27Paul Eggert2020-01-050-0/+0
| |\ \ | | |/ | | | | | | | | | | | | The following commit was skipped: e1b3fd3beb Install g++ for CEDET tests
| | * Install g++ for CEDET testsMattias Engdegård2020-01-031-1/+1
| | | | | | | | | | | | | | | * .gitlab-ci.yml (before_script): Add g++. Backport from master.
| * | Merge from origin/emacs-27Paul Eggert2020-01-051-5/+5
| |\ \ | | |/ | | | | | | 05c5bf4d38 * lisp/net/tramp.el: Fix typos.
| | * * lisp/net/tramp.el: Fix typos.Michael Albinus2020-01-031-5/+5
| | |
| * | Shorten pointer printing code using a small helper function.Philipp Stephani2020-01-051-22/+20
| | | | | | | | | | | | | | | * src/print.c (print_pointer): New helper function. (print_vectorlike): Use it.
| * | Also print function data when printing module functions.Philipp Stephani2020-01-055-5/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is especially useful in cases where modules only use a single entry point and use the data to dispatch to the actual function. Such a design is common for languages such as Go and C++. * src/emacs-module.c (module_function_data): New function. * src/print.c (print_vectorlike): Use it to print module function data if not NULL. (print_object): Adapt size of buffer. * test/data/emacs-module/mod-test.c (emacs_module_init): Pass some non-NULL data to ‘mod-test-sum’. (Fmod_test_sum): Check that correct data is passed through. * test/src/emacs-module-tests.el (mod-test-sum-test) (module-function-object): Adapt unit tests.
| * | ; * lisp/x-dnd.el (x-dnd-get-motif-value): Fix typo.Mattias Engdegård2020-01-051-1/+1
| | |
| * | Remove generation of old bytecodes for catch/unwindMattias Engdegård2020-01-053-123/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
| * | * lisp/emacs-lisp/bindat.el: Remove obsolete comment.Paul Eggert2020-01-041-3/+0
| | |
| * | ; Some that->than fixes.Paul Eggert2020-01-043-3/+3
| | |
| * | * lisp/arc-mode.el (archive-zip-summarize): Remove unused local.Paul Eggert2020-01-041-2/+1
| | |
| * | Simplify x-dnd.el due to bignumsPaul Eggert2020-01-041-34/+19
| | | | | | | | | | | | | | | | | | | | | | | | * 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.
| * | * lisp/gnus/gnus-start.el (gnus-group-change-level): SimplifyStefan Monnier2020-01-042-14/+14
| | | | | | | | | | | | * lisp/gnus/gnus-group.el (gnus-group-unsubscribe-group): Simplify.
| * | Fix bug in recent allocate_string_data patchPaul Eggert2020-01-041-17/+18
| | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | Improve 'noexcept' support in C++17.Philipp Stephani2020-01-041-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | Generate fewer useless conditionals in cl-loopMattias Engdegård2020-01-041-1/+4
| | | | | | | | | | | | | | | | | | * 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.
| * | Make module function finalizer test less brittle.Philipp Stephani2020-01-041-5/+17
| | | | | | | | | | | | | | | | | | * test/src/emacs-module-tests.el (module/function-finalizer): Create 100 leaked functions to increase the probability that at least one gets garbage-collected.
| * | emacs-module.h: Don't generate invalid C++11 code.Philipp Stephani2020-01-041-2/+2
| | | | | | | | | | | | | | | | | | * 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.
| * | Let the OS clear new large strings of NULPaul Eggert2020-01-033-31/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | * src/alloc.c (cleanup_vector): Fix --without-modules builds.Glenn Morris2020-01-031-0/+2
| | |
| * | Implement finalizers for module functions (Bug#30373)Philipp Stephani2020-01-039-9/+163
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
| * | Fix the MS-Windows build broken by "Let the OS clear large new objects"Eli Zaretskii2020-01-032-0/+13
| | | | | | | | | | | | | | | | | | | | | * 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.
| * | Merge from origin/emacs-27Glenn Morris2020-01-0310-30/+84
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | | | | | | | 06364316e0 (origin/emacs-27) * lisp/net/tramp.el (tramp-file-local-na... d3884f50e0 Adapt commentary in Tramp persistency file 2d82f5a44e Change Tramp version to 2.4.3.27.1 09b65707cc ; * src/dispnew.c (adjust_glyph_matrix): Fix last change. 37f9182b68 Fix redisplay when mode-line-format changes mode-line's he... 1420906b81 * src/fileio.c (Fwrite_region): Improve the doc string. 01dfcb7c87 Fix removal of frame decorations on Windows (Bug#38705)
| | * * lisp/net/tramp.el (tramp-file-local-name): New defun. (Bug#34343)Michael Albinus2020-01-031-0/+19
| | |
| | * Adapt commentary in Tramp persistency fileMichael Albinus2020-01-031-1/+1
| | | | | | | | | | | | | | | * lisp/net/tramp-cache.el (tramp-dump-connection-properties): Adapt commentary in `tramp-persistency-file-name'.
| | * Change Tramp version to 2.4.3.27.1Michael Albinus2020-01-032-4/+5
| | | | | | | | | | | | | | | | | | | | | * 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.
| | * ; * src/dispnew.c (adjust_glyph_matrix): Fix last change.Eli Zaretskii2020-01-031-0/+1
| | |
| | * Fix redisplay when mode-line-format changes mode-line's heightEli Zaretskii2020-01-033-25/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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)
| | * * src/fileio.c (Fwrite_region): Improve the doc string.Eli Zaretskii2020-01-021-0/+1
| | |
| | * Fix removal of frame decorations on Windows (Bug#38705)Martin Rudalics2020-01-022-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | * 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.
| * | ; Merge from origin/emacs-27Glenn Morris2020-01-030-0/+0
| |\ \ | | |/ | | | | | | | | | | | | The following commit was skipped: 338154240e Fix compilation with GTK versions older than 3
| | * Fix compilation with GTK versions older than 3Eli Zaretskii2020-01-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | * 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 d36adb544d984b91c70f6194da01344e4b2b6fc9)
| * | Merge from origin/emacs-27Glenn Morris2020-01-033-5/+14
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | 071483b6f5 Fix reverting customizations 43203d5068 * lisp/loadup.el: Set max-specpdl-size to 1800 when loadin... fab3674b36 Revert "Raise default max-specpdl-size value" 42f66aa502 ; Fix NEWS.24 bb9402e6e9 Raise default max-specpdl-size value
| | * Fix reverting customizationsEli Zaretskii2020-01-011-1/+4
| | | | | | | | | | | | | | | | | | * 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)
| | * * lisp/loadup.el: Set max-specpdl-size to 1800 when loading cl-generic.el.Mattias Engdegård2020-01-011-1/+3
| | |
| | * Revert "Raise default max-specpdl-size value"Mattias Engdegård2020-01-012-2/+2
| | | | | | | | | | | | This reverts commit bb9402e6e9c12938aee31b81e25511eb1f6335d2.
| | * ; Fix NEWS.24Eli Zaretskii2020-01-011-3/+7
| | | | | | | | | | | | | | | * etc/NEWS.24: Minor retroactive wording changes and additions to fix the version shown by Help commands. (Bug#38844)
| | * Raise default max-specpdl-size valueMattias Engdegård2020-01-012-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | ; Merge from origin/emacs-27Glenn Morris2020-01-030-0/+0
| |\ \ | | |/ | | | | | | | | | | | | The following commit was skipped: 4011b179ff (emacs-27) ; Auto-commit of loaddefs files.
| | * ; Auto-commit of loaddefs files.Glenn Morris2020-01-011-209/+465
| | |
| * | Merge from origin/emacs-27Glenn Morris2020-01-032-288/+77
| |\ \ | | |/ | | | | | | 138e9051c7 Update distribution documentation
| | * Update distribution documentationPhillip Lord2020-01-012-288/+77
| | | | | | | | | | | | | | | | | | * admin/nt/README-ftp-server: Remove as obsolete * admin/nt/dist-build/README-windows-binaries: Add information about installer
| * | * .gitlab-ci.yml (before_script): Install g++ for CEDET tests.Mattias Engdegård2020-01-031-1/+1
| | |
| * | Let the OS clear large new objectsPaul Eggert2020-01-022-33/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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,...).