1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-10 01:34:36 -08:00
Commit graph

140527 commits

Author SHA1 Message Date
Tino Calancha
3c4edfd85e Prevent from frozen frame after `C-z' in Lucid builds
Some WMs (e.g. mutter in Gnome Shell) don't unmap iconized windows,
thus we won't get a MapNotify when deconifying them.
Check if we are deconifying a window elsewhere (Bug#42655).

- src/xterm.c (handle_one_xevent):
Check for window deconify when receiving a FocusIn signal.
2020-08-15 16:18:03 +02:00
Eli Zaretskii
98e8241992 Document the 'flex' completion style
* doc/emacs/mini.texi (Completion Styles): Document the 'flex'
completion style.  (Bug#42763)
2020-08-15 12:32:32 +03:00
Lars Ingebrigtsen
19fa8b7ca3 Note that Emacs needs systemd support if systemd is used to stop/start
* etc/NEWS: Note that Emacs needs to be built with systemd support
systemd is used to stop/start Emacs (bug#42242).  Change suggested by
Bhavin Gandhi <bhavin7392@gmail.com>
2020-08-14 18:56:36 +02:00
Mattias Engdegård
8ff5e346fe Regexps cannot infloop; fix manual
* doc/lispref/searching.texi (Regexp Special): Edit erroneous
statements about infinite looping in regexps.

(cherry picked from commit 63268253d2)
2020-08-14 14:52:13 +02:00
Paul Eggert
cf0ee6f49b ; spelling fixes 2020-08-13 16:48:16 -07:00
Paul Eggert
16f4f26632 Fix startup working dir bug on NeXTSTEP
* src/emacs.c (main) [NS_IMPL_COCOA]: Update emacs_wd
after a NS GUI chdirs successfully (Bug#42836).
2020-08-13 15:44:00 -07:00
Eli Zaretskii
69568674b3 Improve documentation of function argument lists
* doc/lispref/functions.texi (Lambda Components)
(Defining Functions): Add a cross-reference to "Argument List".
(Argument List): Improve the section name.  (Bug#42750)
2020-08-13 17:08:37 +03:00
Eli Zaretskii
1c0bc1ccd8 Improve documentation of special events
* doc/lispref/commands.texi (Misc Events): Explain how to bind
special events to commands.
2020-08-13 16:53:14 +03:00
Eli Zaretskii
c9a739408d Fix face merging at EOL when inherited face specifies :extend
* src/xfaces.c (merge_face_ref): Handle correctly faces that
inherit from another, and in addition specify :extend.
(Bug#42552)

(cherry picked from commit 39c90f8dfa)
2020-08-13 16:39:12 +03:00
Eli Zaretskii
f946e48bf5 Fix face extension past EOL in overlay strings
* src/xdisp.c (face_at_pos): Pass ATTR_FILTER to
face_for_overlay_string.
* src/xfaces.c (face_for_overlay_string): Accept an additional
argument ATTR_INDEX and pass it to merge_face_ref for merging the
face at POS.  This ensures a face from buffer text will not be
merged unless it specifies the :extend attribute.  (Bug#42552)
* src/dispextern.h (face_for_overlay_string): Adjust prototype.

(cherry picked from commit 35564bea4d)
2020-08-13 16:38:44 +03:00
Phil Sainty
63f614d76c Fix comint-redirect-results-list regexp usage (Bug#42662)
* lisp/comint.el (comint-redirect-results-list-from-process):
Don't treat the literal string argument COMMAND as a regexp.
2020-08-13 01:30:54 +12:00
Eli Zaretskii
6dada01015 ; Bump Emacs version to 27.1.50
* configure.ac:
* README:
* nt/README.W32:
* msdos/sed2v2.inp:
* etc/NEWS: Bump Emacs version to 27.1.50.
2020-08-11 21:24:16 +03:00
Nicolas Petton
86d8d76aa3
; lisp/ldefs-boot.el: Update. 2020-08-04 22:05:24 +02:00
Nicolas Petton
a6634197da
* etc/HISTORY: Update the Emacs 27.1 release date. 2020-08-04 21:41:07 +02:00
Nicolas Petton
a68b3f761a
; Update ChangeLog.3 2020-08-04 21:32:27 +02:00
Nicolas Petton
7cc85e7b51
; Update etc/AUTHORS 2020-08-04 21:32:04 +02:00
Robert Pluim
1ca4da054b ; * etc/NEWS: fix some quoting 2020-08-04 16:34:59 +02:00
Phil Sainty
5578febcd4 ; * lisp/so-long.el: Documentation 2020-08-04 05:00:23 +12:00
Phil Sainty
fa20e443c8 lisp/so-long.el: Improve support for major mode hooks
* lisp/so-long.el (so-long-remember-all, so-long-disable-minor-modes)
(so-long-override-variables): Store and use the `so-long-minor-modes'
and `so-long-variable-overrides' values seen by the original major
mode, so that buffer-local changes made in the major mode hook will be
respected.

Add documentation of this and other major mode hook usage.
2020-08-04 05:00:20 +12:00
Phil Sainty
8576297b2a ; lisp/so-long.el: Prevent potential error if comment-use-syntax is nil
* lisp/so-long.el (so-long-detected-long-line-p): Ensure that
`comment-start-skip' and `comment-end-skip' are both set if
`comment-use-syntax' is nil, as `comment-forward' requires them
to be bound in this scenario.
2020-08-04 01:44:53 +12:00
Phil Sainty
986c12b20f ; * lisp/so-long.el: Byte-compilation bug fix
As this `require' is not at the top-level (it is only conditionally
evaluated, when loading the library over the top of an earlier
version), we need `eval-and-compile' to ensure that both macros and
functions from advice.el are accounted for.
2020-08-04 01:44:53 +12:00
Phil Sainty
19f8f36f11 ; * lisp/so-long.el (so-long-variable-overrides): Improve doc 2020-08-04 01:44:52 +12:00
Phil Sainty
83bc4ad369 ; * so-long.el: Documentation and spelling
Reverting certain changes from commits b0f20651e3 and d1a791f8ed.

Please refer to the comments on spelling at the end of the library.
M-x ispell-buffer should find no misspellings in the documentation.
See also test/lisp/so-long-tests/spelling-tests.el

(The current spelling will persist while so-long.el is maintained in
its own Savannah repository, to avoid unnecessary conflicts between
the two versions.  If in the future it is maintained solely in the
Emacs repository, changing the spelling would become an option.)

Note that "mitigations" (plural) is intentional -- this library
identifies a collection of different performance mitigations,
multiple of which will typically be in effect together.
2020-08-04 01:35:26 +12:00
Grégory Mounié
72c5f71cd4 Avoid segfaults if XIM is set but not xim_styles
Emacs segfaults at the X11 initialization if XIM is set
and xim_styles is NULL.  This patch avoids the crash.
* src/xfns.c: Check also if FRAME_X_XIM_STYLES(f) is NULL.
(Bug#42676)  (Bug#42673)  (Bug#42677)

Copyright-paperwork-exempt: yes
2020-08-02 20:19:16 +03:00
Philipp Stephani
f54ddb0198 ; * test/lisp/emacs-lisp/generator-tests.el: Style fixes. 2020-07-31 23:50:04 +02:00
Philipp Stephani
d767418b76 Backport: Make checking for liveness of global values more precise.
We can't just use a hash lookup because a global and a local reference
might refer to the same Lisp object.

* src/emacs-module.c (module_free_global_ref): More precise check for
global liveness.

(cherry picked from commit 9f01ce6327)
2020-07-31 18:18:43 +02:00
Philipp Stephani
8c94ca94dc Backport: Fix subtle bug when checking liveness of module values.
We can't simply look up the Lisp object in the global reference table
because an invalid local and a valid global reference might refer to
the same object.  Instead, we have to test the address of the global
reference against the stored references.

* src/emacs-module.c (module_global_reference_p): New helper function.
(value_to_lisp): Use it.

(cherry picked from commit 6355a3ec62)
2020-07-31 18:18:27 +02:00
Philipp Stephani
8ecca2f09f Backport: Fix memory leak for global module objects (Bug#42482).
Instead of storing the global values in a global 'emacs_value_storage'
object, store them as hash values alongside the reference counts.
That way the garbage collector takes care of cleaning them up.

* src/emacs-module.c (global_storage): Remove.
(struct module_global_reference): New pseudovector type.
(XMODULE_GLOBAL_REFERENCE): New helper function.
(module_make_global_ref, module_free_global_ref): Use
'module_global_reference' struct for global reference values.
(value_to_lisp, module_handle_nonlocal_exit): Adapt to deletion of
'global_storage'.

(cherry picked from commit 5c5eb97908)
2020-07-31 18:05:18 +02:00
Nicolas Petton
e12d1fbc15 ; ChangeLog.3 and etc/AUTHORS fixes 2020-07-30 09:35:42 -07:00
Nicolas Petton
748f0d4bc6 * admin/authors.el (authors-aliases): Remove a faulty regexp. 2020-07-30 09:35:19 -07:00
Stefan Kangas
d024fc141b * doc/lispref/symbols.texi (Definitions): Fix typo. 2020-07-29 12:35:19 +02:00
Nicolas Petton
d78e0f3cd5
; lisp/ldefs-boot.el: Update. 2020-07-28 23:04:11 +02:00
Nicolas Petton
27877e7bcf
* etc/HISTORY: Add Emacs 27.1 release date. 2020-07-28 22:30:24 +02:00
Nicolas Petton
44888c95b0
Bump Emacs version to 27.1
* README:
* configure.ac:
* msdos/sed2v2.inp:
* nt/README.W32: Bump Emacs version.
2020-07-28 22:27:07 +02:00
Nicolas Petton
1fc742b63e
; Update ChangeLog.3 2020-07-28 22:26:42 +02:00
Nicolas Petton
4c7f6217da
* etc/AUTHORS: Update. 2020-07-28 22:25:32 +02:00
Nicolas Petton
24391f517a
Update authors.el
* admin/authors.el (authors-aliases): Add author aliases.
2020-07-28 22:22:53 +02:00
Nicolas Petton
56f958807c
* etc/NEWS: Remove temporary markup. 2020-07-28 22:03:00 +02:00
Philipp Stephani
73a2f51043 Add another test for global module references
* test/src/emacs-module-tests.el (mod-test-globref-reordered): New
unit test.

* test/data/emacs-module/mod-test.c (Fmod_test_globref_reordered): New
test module function.
(emacs_module_init): Export it.
2020-07-26 22:54:33 +02:00
Philipp Stephani
3838aeb739 Backport: add another test case for module assertions.
This backports commit 9f01ce6327 from master.  Since the bug isn’t
present on emacs-27, just backport the new test case.

* test/data/emacs-module/mod-test.c (Fmod_test_globref_invalid_free):
New test module function.
(emacs_module_init): Export it.

* test/src/emacs-module-tests.el
(module--test-assertions--globref-invalid-free): New unit test.
2020-07-26 14:33:59 +02:00
Philipp Stephani
bde5f5f897 Backport: Add module test for edge case.
This backports commit 6355a3ec62 from master.  Since the bug isn’t
present in emacs-27, just backport the test case.

* test/data/emacs-module/mod-test.c
(Fmod_test_invalid_store_copy): New test module function.
(emacs_module_init): Export it.

* test/src/emacs-module-tests.el
(module--test-assertions--load-non-live-object-with-global-copy):
New unit test.
2020-07-26 14:31:49 +02:00
Eli Zaretskii
4b3085a7fe Fix last change
* src/composite.c (composition_reseat_it): Fix of the commentary,
and a minor change of the last fix.
2020-07-25 19:25:02 +03:00
Pip Cet
efdd4632c9 Fix Arabic shaping when column-number-mode is in effect
* src/indent.c (scan_for_column, compute_motion): Pass -1,
instead of NEUTRAL_DIR, to 'composition_reseat_it'.
* src/composite.c (composition_reseat_it): Interpret negative
value of BIDI_LEVEL to mean the caller doesn't know what is the
bidi direction of the text.  (Bug#41005)
2020-07-25 19:19:27 +03:00
Eli Zaretskii
d5acc50941 Fix description of kmacro-* commands in the user manual
* doc/emacs/kmacro.texi (Basic Keyboard Macro): Separate old-style
macro definition commands from the new style in the summary
table.  (Bug#42492)
2020-07-24 17:47:59 +03:00
Lars Ingebrigtsen
96a3b473fa Fix viewing of encrypted S/MIME messages
* lisp/gnus/mm-decode.el (mm-possibly-verify-or-decrypt): Don't
add a content-type header if there already is one (bug#41659).
2020-07-24 16:37:28 +02:00
Ken Manheimer
8bc8565721 Revert "Rectify allout-widgets region undecoration so item at start is not missed."
This reverts commit 33d85cb768.

Backporting it to emacs-27 was not appropriate.
2020-07-21 10:57:29 -04:00
Ken Manheimer
db479d6354 Revert "Resolve missing button-region keymap bindings."
This reverts commit dd7c191291.

Backporting it to emacs-27 was not appropriate.
2020-07-21 10:56:55 -04:00
Ken Manheimer
259dc75c23 Revert "Provide missing let definition to prevent background void-variable error."
This reverts commit 3c410b6b47.

Backporting it to emacs-27 was not appropriate.
2020-07-21 10:55:35 -04:00
Ken Manheimer
56422a6366 Revert "Don't let item decoration be disrupted by too-shallow items."
This reverts commit 8684216542.

Backporting it to emacs-27 was not appropriate.
2020-07-21 10:55:08 -04:00
Ken Manheimer
8e4eae0ce3 Revert "Fix allout-widgets-mode handling of edits to item cue, fixing (bug#11312)"
This reverts commit 8e13d33248.

Backporting it to emacs-27 was not appropriate.
2020-07-21 10:52:50 -04:00