]> git.eshelyaron.com Git - emacs.git/log
emacs.git
4 years ago; lisp/ldefs-boot.el: Update. emacs-27.1 emacs-27.1-rc2
Nicolas Petton [Tue, 4 Aug 2020 20:05:24 +0000 (22:05 +0200)]
; lisp/ldefs-boot.el: Update.

4 years ago* etc/HISTORY: Update the Emacs 27.1 release date.
Nicolas Petton [Tue, 4 Aug 2020 19:41:07 +0000 (21:41 +0200)]
* etc/HISTORY: Update the Emacs 27.1 release date.

4 years ago; Update ChangeLog.3
Nicolas Petton [Tue, 4 Aug 2020 19:32:27 +0000 (21:32 +0200)]
; Update ChangeLog.3

4 years ago; Update etc/AUTHORS
Nicolas Petton [Tue, 4 Aug 2020 19:32:04 +0000 (21:32 +0200)]
; Update etc/AUTHORS

4 years ago; * etc/NEWS: fix some quoting
Robert Pluim [Tue, 4 Aug 2020 14:34:38 +0000 (16:34 +0200)]
; * etc/NEWS: fix some quoting

4 years ago; * lisp/so-long.el: Documentation
Phil Sainty [Mon, 3 Aug 2020 16:29:56 +0000 (04:29 +1200)]
; * lisp/so-long.el: Documentation

4 years agolisp/so-long.el: Improve support for major mode hooks
Phil Sainty [Sun, 8 Dec 2019 10:28:06 +0000 (23:28 +1300)]
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.

4 years ago; lisp/so-long.el: Prevent potential error if comment-use-syntax is nil
Phil Sainty [Sat, 11 Jul 2020 07:40:27 +0000 (19:40 +1200)]
; 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.

4 years ago; * lisp/so-long.el: Byte-compilation bug fix
Phil Sainty [Fri, 3 Jul 2020 13:43:08 +0000 (01:43 +1200)]
; * 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.

4 years ago; * lisp/so-long.el (so-long-variable-overrides): Improve doc
Phil Sainty [Sun, 8 Dec 2019 10:35:48 +0000 (23:35 +1300)]
; * lisp/so-long.el (so-long-variable-overrides): Improve doc

4 years ago; * so-long.el: Documentation and spelling
Phil Sainty [Sat, 14 Dec 2019 13:00:05 +0000 (02:00 +1300)]
; * 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.

4 years agoAvoid segfaults if XIM is set but not xim_styles
Grégory Mounié [Sun, 2 Aug 2020 13:56:33 +0000 (15:56 +0200)]
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

4 years ago; * test/lisp/emacs-lisp/generator-tests.el: Style fixes.
Philipp Stephani [Fri, 31 Jul 2020 21:50:04 +0000 (23:50 +0200)]
; * test/lisp/emacs-lisp/generator-tests.el: Style fixes.

4 years agoBackport: Make checking for liveness of global values more precise.
Philipp Stephani [Sat, 25 Jul 2020 21:23:19 +0000 (23:23 +0200)]
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 9f01ce6327af886f26399924a9aadf16cdd4fd9f)

4 years agoBackport: Fix subtle bug when checking liveness of module values.
Philipp Stephani [Sat, 25 Jul 2020 21:04:05 +0000 (23:04 +0200)]
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 6355a3ec62f43c9b99d483982ff851d32dd78891)

4 years agoBackport: Fix memory leak for global module objects (Bug#42482).
Philipp Stephani [Thu, 23 Jul 2020 11:48:43 +0000 (13:48 +0200)]
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 5c5eb9790898e4ab10bcbbdb6871947ed3018569)

4 years ago; ChangeLog.3 and etc/AUTHORS fixes
Nicolas Petton [Wed, 29 Jul 2020 20:50:01 +0000 (22:50 +0200)]
; ChangeLog.3 and etc/AUTHORS fixes

4 years ago* admin/authors.el (authors-aliases): Remove a faulty regexp.
Nicolas Petton [Wed, 29 Jul 2020 20:48:14 +0000 (22:48 +0200)]
* admin/authors.el (authors-aliases): Remove a faulty regexp.

4 years ago* doc/lispref/symbols.texi (Definitions): Fix typo.
Stefan Kangas [Wed, 29 Jul 2020 10:34:31 +0000 (12:34 +0200)]
* doc/lispref/symbols.texi (Definitions): Fix typo.

4 years ago; lisp/ldefs-boot.el: Update.
Nicolas Petton [Tue, 28 Jul 2020 21:04:11 +0000 (23:04 +0200)]
; lisp/ldefs-boot.el: Update.

4 years ago* etc/HISTORY: Add Emacs 27.1 release date. emacs-27.1-rc1
Nicolas Petton [Tue, 28 Jul 2020 20:30:24 +0000 (22:30 +0200)]
* etc/HISTORY: Add Emacs 27.1 release date.

4 years agoBump Emacs version to 27.1
Nicolas Petton [Tue, 28 Jul 2020 20:27:07 +0000 (22:27 +0200)]
Bump Emacs version to 27.1

* README:
* configure.ac:
* msdos/sed2v2.inp:
* nt/README.W32: Bump Emacs version.

4 years ago; Update ChangeLog.3
Nicolas Petton [Tue, 28 Jul 2020 20:26:42 +0000 (22:26 +0200)]
; Update ChangeLog.3

4 years ago* etc/AUTHORS: Update.
Nicolas Petton [Tue, 28 Jul 2020 20:25:32 +0000 (22:25 +0200)]
* etc/AUTHORS: Update.

4 years agoUpdate authors.el
Nicolas Petton [Tue, 28 Jul 2020 20:22:53 +0000 (22:22 +0200)]
Update authors.el

* admin/authors.el (authors-aliases): Add author aliases.

4 years ago* etc/NEWS: Remove temporary markup.
Nicolas Petton [Tue, 28 Jul 2020 20:02:53 +0000 (22:02 +0200)]
* etc/NEWS: Remove temporary markup.

4 years agoAdd another test for global module references
Philipp Stephani [Sun, 26 Jul 2020 20:54:33 +0000 (22:54 +0200)]
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.

4 years agoBackport: add another test case for module assertions.
Philipp Stephani [Sat, 25 Jul 2020 21:23:19 +0000 (23:23 +0200)]
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.

4 years agoBackport: Add module test for edge case.
Philipp Stephani [Sat, 25 Jul 2020 21:04:05 +0000 (23:04 +0200)]
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.

4 years agoFix last change
Eli Zaretskii [Sat, 25 Jul 2020 16:25:02 +0000 (19:25 +0300)]
Fix last change

* src/composite.c (composition_reseat_it): Fix of the commentary,
and a minor change of the last fix.

4 years agoFix Arabic shaping when column-number-mode is in effect
Pip Cet [Fri, 5 Jun 2020 12:54:01 +0000 (12:54 +0000)]
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)

4 years agoFix description of kmacro-* commands in the user manual
Eli Zaretskii [Fri, 24 Jul 2020 14:47:59 +0000 (17:47 +0300)]
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)

4 years agoFix viewing of encrypted S/MIME messages
Lars Ingebrigtsen [Thu, 23 Jul 2020 15:12:33 +0000 (17:12 +0200)]
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).

4 years agoRevert "Rectify allout-widgets region undecoration so item at start is not missed."
Ken Manheimer [Tue, 21 Jul 2020 14:57:29 +0000 (10:57 -0400)]
Revert "Rectify allout-widgets region undecoration so item at start is not missed."

This reverts commit 33d85cb768b40794bffcd9ab22fbdec1211a74e5.

Backporting it to emacs-27 was not appropriate.

4 years agoRevert "Resolve missing button-region keymap bindings."
Ken Manheimer [Tue, 21 Jul 2020 14:56:55 +0000 (10:56 -0400)]
Revert "Resolve missing button-region keymap bindings."

This reverts commit dd7c191291c8eb1afeac0f1512745491c5c7a317.

Backporting it to emacs-27 was not appropriate.

4 years agoRevert "Provide missing let definition to prevent background void-variable error."
Ken Manheimer [Tue, 21 Jul 2020 14:55:35 +0000 (10:55 -0400)]
Revert "Provide missing let definition to prevent background void-variable error."

This reverts commit 3c410b6b4753e02269bb36914e7534eb124150dd.

Backporting it to emacs-27 was not appropriate.

4 years agoRevert "Don't let item decoration be disrupted by too-shallow items."
Ken Manheimer [Tue, 21 Jul 2020 14:55:08 +0000 (10:55 -0400)]
Revert "Don't let item decoration be disrupted by too-shallow items."

This reverts commit 8684216542889fa57daa32072104afc69785907f.

Backporting it to emacs-27 was not appropriate.

4 years agoRevert "Fix allout-widgets-mode handling of edits to item cue, fixing (bug#11312)"
Ken Manheimer [Tue, 21 Jul 2020 14:52:50 +0000 (10:52 -0400)]
Revert "Fix allout-widgets-mode handling of edits to item cue, fixing (bug#11312)"

This reverts commit 8e13d332481551e4c8c1c66dd0c69dd09256dffc.

Backporting it to emacs-27 was not appropriate.

4 years agoRun custom-magic-reset in the customize buffer
Robert Pluim [Tue, 21 Jul 2020 14:37:59 +0000 (16:37 +0200)]
Run custom-magic-reset in the customize buffer

If the user has navigated away from the customize buffer, then
clicking on a widget in the customize buffer applies changes in the
selected buffer rather than in the customize buffer.  Pass the
customize buffer to 'custom-magic-reset' to avoid this.

* lisp/cus-edit.el (custom-magic-reset): Add optional buffer argument,
apply changes in that buffer.
(custom-notify): Pass the buffer containing the widget to
'custom-magic-reset'.  (Bug#40788)

4 years ago; spelling fix
Robert Pluim [Tue, 21 Jul 2020 07:54:58 +0000 (09:54 +0200)]
; spelling fix

4 years agoBackport: Rectify allout-widgets region undecoration so item at start is not missed.
Ken Manheimer [Sun, 5 Jul 2020 20:38:13 +0000 (16:38 -0400)]
Backport: Rectify allout-widgets region undecoration so item at start is not missed.

* lisp/allout-widgets.el (allout-widgets-undecorate-region):
Reorganize the loop so an item at the start is not skipped.

(cherry picked from commit 33d85cb768b40794bffcd9ab22fbdec1211a74e5)

4 years agoBackport: Resolve missing button-region keymap bindings.
Ken Manheimer [Tue, 7 Jul 2020 14:32:03 +0000 (10:32 -0400)]
Backport: Resolve missing button-region keymap bindings.

* lisp/allout-widgets.el (allout-item-icon-keymap,
allout-item-body-keymap, allout-cue-span-keymap, allout-widgets-mode):
Inherit from both (current-local-map) and (current-global-map). This
provides for missing global bindings when inheriting from
just (current-local-map), eg Esc-<.

(cherry picked from commit dd7c191291c8eb1afeac0f1512745491c5c7a317)

4 years agoBackport: Provide missing let definition to prevent background void-variable error.
Ken Manheimer [Mon, 6 Jul 2020 17:19:11 +0000 (13:19 -0400)]
Backport: Provide missing let definition to prevent background void-variable error.

* lisp/allout-widgets.el (allout-widgets-exposure-change-processor)
Let-declare handled-conceal, for reference through `(symbol-value)'
within the let body. (Because the error happens in an
after-change-functions hook, so it is caught and reported as a message
by allout-widgets-hook-error-handler.)

(cherry picked from commit 3c410b6b4753e02269bb36914e7534eb124150dd)

4 years agoBackport: Don't let item decoration be disrupted by too-shallow items.
Ken Manheimer [Mon, 6 Jul 2020 18:18:57 +0000 (14:18 -0400)]
Backport: Don't let item decoration be disrupted by too-shallow items.

* lisp/allout-widgets.el (allout-decorate-item-and-context): Check for
parent-position having value before using it.

Also, shift local emacs vars topic deeper so it doesn't constitute
an instance of that particular aberrant case.

(cherry picked from commit 8684216542889fa57daa32072104afc69785907f)

4 years agoBackport: Fix allout-widgets-mode handling of edits to item cue, fixing (bug#11312)
Ken Manheimer [Sun, 5 Jul 2020 20:27:52 +0000 (16:27 -0400)]
Backport: Fix allout-widgets-mode handling of edits to item cue, fixing (bug#11312)

* lisp/allout-widgets.el (allout-decorate-item-cue): Properly decorate
item cue span.
(allout-setup-text-properties): use allout-graphics-modification-handler
as allout-cue-span-category modification hook.

(cherry picked from commit 8e13d332481551e4c8c1c66dd0c69dd09256dffc)

4 years agoMerge branch 'emacs-27' of git.savannah.gnu.org:/srv/git/emacs into emacs-27
Eli Zaretskii [Mon, 20 Jul 2020 14:31:50 +0000 (17:31 +0300)]
Merge branch 'emacs-27' of git.savannah.gnu.org:/srv/git/emacs into emacs-27

4 years agoDocument prefix arg effects for 'epa-mail-{sign,encrypt}'
Robert Pluim [Mon, 20 Jul 2020 12:47:43 +0000 (14:47 +0200)]
Document prefix arg effects for 'epa-mail-{sign,encrypt}'

* doc/misc/epa.texi (Mail-mode integration): Describe effect of
prefix arg to 'epa-mail-encrypt' and 'epa-mail-sign'.

* lisp/epa-mail.el (epa-mail-sign): Describe effect of prefix arg.

4 years ago* etc/NEWS: Correct description of :client-certificate change
Robert Pluim [Mon, 20 Jul 2020 12:39:25 +0000 (14:39 +0200)]
* etc/NEWS: Correct description of :client-certificate change

4 years agoRevert "Fix filename completion in shell mode buffers"
Eli Zaretskii [Sat, 18 Jul 2020 08:17:31 +0000 (11:17 +0300)]
Revert "Fix filename completion in shell mode buffers"

This reverts commit e4d17d8cb479ffeeb7dfb7320a1432722ac8df75.
Per bug#42383 discussions, the fix for bug#34330 probably
just works around the real issue, which is in pcomplete.el.

4 years agoImprove documentation of 'bookmark-bmenu-mode'
Eli Zaretskii [Sat, 18 Jul 2020 07:53:20 +0000 (10:53 +0300)]
Improve documentation of 'bookmark-bmenu-mode'

* lisp/bookmark.el (bookmark-bmenu-mode): Add
`bookmark-bmenu-search' to the doc string.  (Bug#42325)

4 years agoUpdate systems using GnuTLS certificate files
Eli Zaretskii [Sat, 18 Jul 2020 07:02:28 +0000 (10:02 +0300)]
Update systems using GnuTLS certificate files

* lisp/net/gnutls.el (gnutls-trustfiles): Update the names of the
systems in the comments.  Reported by Richard Stallman <rms@gnu.org>
in
https://lists.gnu.org/archive/html/emacs-devel/2020-07/msg00455.html.

4 years agoImprove documentation of 'kill-emacs'
Eli Zaretskii [Fri, 17 Jul 2020 14:54:00 +0000 (17:54 +0300)]
Improve documentation of 'kill-emacs'

* doc/lispref/os.texi (Killing Emacs):
* src/emacs.c (Fkill_emacs): Document what non-integer, non-string
argument to 'kill-emacs' means.  (Bug#42400)

4 years agoImprove documentation of 'display-raw-bytes-as-hex'
Eli Zaretskii [Fri, 17 Jul 2020 14:40:54 +0000 (17:40 +0300)]
Improve documentation of 'display-raw-bytes-as-hex'

* doc/emacs/display.texi (Text Display): Mention
'display-raw-bytes-as-hex'.  (Bug#42384)

4 years agoCorrect descriptions of init file
Robert Pluim [Fri, 17 Jul 2020 13:07:15 +0000 (15:07 +0200)]
Correct descriptions of init file

These still referred to XDG as being preferred.

* doc/emacs/custom.texi (Init File): Correct description of init
file preference order (Bug#42388).

* doc/emacs/custom.texi (Find Init): Correct description of
default init-file.

4 years agoFix interrupt-process on MS-Windows
Eli Zaretskii [Thu, 16 Jul 2020 16:51:19 +0000 (19:51 +0300)]
Fix interrupt-process on MS-Windows

* src/w32proc.c (sys_kill): Test the status of the left Ctrl key
for the purpose of restoring it after simulating Ctrl-C.  This
avoids leaving the left Ctrl key status in depressed state when
the user actually pressed the right Ctrl key.  (Bug#42350)

4 years agoRevert "* doc/misc/flymake.texi (An annotated example backend): Typo fix."
Andrea Corallo [Sat, 11 Jul 2020 17:42:17 +0000 (18:42 +0100)]
Revert "* doc/misc/flymake.texi (An annotated example backend): Typo fix."

This reverts commit b1ad0380d2372b8df35ff603b8918d22c27ad964.

4 years agoCorrect 'concat' manual entry (bug#42296)
Mattias Engdegård [Thu, 9 Jul 2020 15:32:13 +0000 (17:32 +0200)]
Correct 'concat' manual entry (bug#42296)

* doc/lispref/strings.texi (Creating Strings): 'concat' does not
necessarily return a newly allocated string.  This has been the case
at least since 1997 (Emacs 20.3).

4 years ago* doc/misc/flymake.texi (An annotated example backend): Typo fix.
Andrea Corallo [Sat, 11 Jul 2020 10:13:54 +0000 (11:13 +0100)]
* doc/misc/flymake.texi (An annotated example backend): Typo fix.

4 years agoAdd commentary in gtkutil.c
Eli Zaretskii [Sat, 11 Jul 2020 09:47:26 +0000 (12:47 +0300)]
Add commentary in gtkutil.c

* src/gtkutil.c: Add a comment regarding the incompatibilities
vis-a-vis GTK.  Suggested by Richard Stallman <rms@gnu.org>.

4 years agoConsistently stylize eldoc as ElDoc in prose
Basil L. Contovounesios [Fri, 10 Jul 2020 14:22:27 +0000 (15:22 +0100)]
Consistently stylize eldoc as ElDoc in prose

* doc/emacs/custom.texi (Specifying File Variables):
* doc/emacs/modes.texi (Major Modes):
* doc/emacs/programs.texi (Lisp Doc):
* etc/NEWS.22:
* etc/NEWS.23:
* lisp/progmodes/python.el:
(python-eldoc-function):
* test/lisp/progmodes/python-tests.el: Consistently capitalize eldoc
as ElDoc rather than Eldoc.

4 years agoImprove documentation of "C-u C-x ="
Eli Zaretskii [Thu, 9 Jul 2020 17:38:38 +0000 (20:38 +0300)]
Improve documentation of "C-u C-x ="

* doc/emacs/mule.texi (International Chars): Mention the
composition information displayed by "C-u C-x =".  (Bug#42256)

4 years agoMention floating rounding issues
Paul Eggert [Thu, 9 Jul 2020 15:40:17 +0000 (08:40 -0700)]
Mention floating rounding issues

* doc/lispref/numbers.texi (Float Basics): Mention floating-point
rounding issues uncovered by the discussion in Bug#42417.

4 years agoRepair global-auto-revert-ignore-modes (bug#42271)
Mattias Engdegård [Thu, 9 Jul 2020 07:28:12 +0000 (09:28 +0200)]
Repair global-auto-revert-ignore-modes (bug#42271)

Reported by Gustavo Tavares Cabral.

* lisp/autorevert.el (auto-revert--global-add-current-buffer): Fix typo.

4 years ago; * src/xdisp.c (decode_mode_spec): Fix commentary.
Eli Zaretskii [Wed, 8 Jul 2020 16:45:30 +0000 (19:45 +0300)]
; * src/xdisp.c (decode_mode_spec): Fix commentary.

4 years agoOne more improvement of left/right-fringe display spec docs
Eli Zaretskii [Wed, 8 Jul 2020 14:39:13 +0000 (17:39 +0300)]
One more improvement of left/right-fringe display spec docs

* doc/lispref/display.texi (Fringe Bitmaps): Yet another
clarification of how to use FACE in left/right-fringe display
spec.

4 years agoAnother clarification of left/right-fringe display spec
Eli Zaretskii [Tue, 7 Jul 2020 14:55:24 +0000 (17:55 +0300)]
Another clarification of left/right-fringe display spec

* doc/lispref/display.texi (Fringe Bitmaps): More accurate
description of what FACE means in the left/right-fringe display
spec.

4 years agoAvoid infloop in 'format-mode-line'
Eli Zaretskii [Tue, 7 Jul 2020 14:08:19 +0000 (17:08 +0300)]
Avoid infloop in 'format-mode-line'

* src/xdisp.c (decode_mode_spec): Don't use W->start if it is
outside of the buffer's accessible region.  (Bug#42220)

4 years agoClarify the documentation of 'left/right-fringe' display spec
Eli Zaretskii [Sun, 5 Jul 2020 15:30:21 +0000 (18:30 +0300)]
Clarify the documentation of 'left/right-fringe' display spec

* doc/lispref/display.texi (Other Display Specs, Fringe Bitmaps):
Clarify how the optional FACE parameter of the left-fringe and
right-fringe display spec is used.  Reported by Gregory Heytings
<ghe@sdf.org>.

4 years agoMinor improvement in ELisp manual
Eli Zaretskii [Sat, 4 Jul 2020 07:19:56 +0000 (10:19 +0300)]
Minor improvement in ELisp manual

* doc/lispref/frames.texi (Position Parameters): Clarify the
description of the 'above' frame parameter.  (Bug#42154)

4 years ago* doc/misc/tramp.texi (Customizing Methods): Fix typo.
Michael Albinus [Thu, 2 Jul 2020 11:06:25 +0000 (13:06 +0200)]
* doc/misc/tramp.texi (Customizing Methods): Fix typo.

4 years ago; Auto-commit of loaddefs files.
Glenn Morris [Wed, 1 Jul 2020 13:12:10 +0000 (06:12 -0700)]
; Auto-commit of loaddefs files.

4 years agoFix undefined behavior in json.c (Bug#42113)
Philipp Stephani [Mon, 29 Jun 2020 10:32:56 +0000 (12:32 +0200)]
Fix undefined behavior in json.c (Bug#42113)

* src/json.c (lisp_to_json_toplevel_1, Fjson_parse_string): Check
whether input strings are actually strings.

* test/src/json-tests.el (json-parse-string/wrong-type)
(json-serialize/wrong-hash-key-type): New regression tests.

4 years agoFix ACTION argument of 'display-buffer' call in gud.el
Richard Kim [Tue, 16 Jun 2020 06:20:57 +0000 (23:20 -0700)]
Fix ACTION argument of 'display-buffer' call in gud.el

* lisp/progmodes/gud.el (gud-common-init): The ACTION argument of
'display-buffer' should be a list of list of functions.  (Bug#41888)

4 years ago* src/keyboard.c (Fclear_this_command_keys): Doc fix.
Eli Zaretskii [Sat, 27 Jun 2020 08:35:34 +0000 (11:35 +0300)]
* src/keyboard.c (Fclear_this_command_keys): Doc fix.

4 years agoImprove do string of 'man'
Eli Zaretskii [Sat, 27 Jun 2020 07:48:02 +0000 (10:48 +0300)]
Improve do string of 'man'

* lisp/man.el (man): Mention the need to use C-q for quoting the
SPC character in the man-page input.  (Bug#41859)

4 years ago; * src/xdisp.c (pos_visible_p): Yet another minor fix for bug#42039.
Eli Zaretskii [Fri, 26 Jun 2020 19:33:44 +0000 (22:33 +0300)]
; * src/xdisp.c (pos_visible_p): Yet another minor fix for bug#42039.

4 years ago; * src/xdisp.c (pos_visible_p): Fix last change. (Bug#42039)
Eli Zaretskii [Fri, 26 Jun 2020 13:34:50 +0000 (16:34 +0300)]
; * src/xdisp.c (pos_visible_p): Fix last change.  (Bug#42039)

4 years agoFix posn-at-point at beginning of a display string
Eli Zaretskii [Fri, 26 Jun 2020 12:01:44 +0000 (15:01 +0300)]
Fix posn-at-point at beginning of a display string

* src/xdisp.c (pos_visible_p): Account for the line-number width
when the display string at CHARPOS ends in a newline.  (Bug#42039)

4 years agoImprove documentation of Info node movement commands
Eli Zaretskii [Fri, 26 Jun 2020 07:41:09 +0000 (10:41 +0300)]
Improve documentation of Info node movement commands

* lisp/info.el (Info-next, Info-prev, Info-forward-node)
(Info-backward-node): More detailed descriptions of what each
commands does with respect to child and parent nodes.  (Bug#42050)

4 years agoAdd Jansson dependency to Windows Build
Phillip Lord [Mon, 22 Jun 2020 17:14:48 +0000 (18:14 +0100)]
Add Jansson dependency to Windows Build

* admin/nt/dist-build/build-dep-zips.py: Add dependency

4 years agoUnbreak 'reverse-region'
Richard Copley [Thu, 18 Jun 2020 17:59:21 +0000 (18:59 +0100)]
Unbreak 'reverse-region'

* lisp/sort.el (reverse-region): Unbreak the function.  It was
broken by a fix for bug#39376.

Copyright-paperwork-exempt: yes

4 years agoFix typos and markup in fill column indicator docs
Basil L. Contovounesios [Mon, 22 Jun 2020 13:43:53 +0000 (14:43 +0100)]
Fix typos and markup in fill column indicator docs

* doc/emacs/display.texi (Displaying Boundaries): Fix typos and
Texinfo markup.

4 years ago; * CONTRIBUTE: Clarify the preferences for patch formatting.
Eli Zaretskii [Sat, 20 Jun 2020 08:42:41 +0000 (11:42 +0300)]
; * CONTRIBUTE: Clarify the preferences for patch formatting.

4 years agoAvoid crashes in 'defconst'
Stephen Berman [Thu, 11 Jun 2020 21:10:07 +0000 (23:10 +0200)]
Avoid crashes in 'defconst'

* src/eval.c (Fdefconst): Verify that SYMBOL is a known symbol.
(Bug#41817)

4 years agoFix text about Lisp archives in the Emacs FQ
Richard Stallman [Thu, 11 Jun 2020 03:41:39 +0000 (23:41 -0400)]
Fix text about Lisp archives in the Emacs FQ

* doc/misc/efaq.texi (Packages that do not come with Emacs): Warn
about using Lisp archives other than GNU ELPA.

4 years agoDon't use 'cl' functions in ELisp manual's examples
Eli Zaretskii [Sat, 20 Jun 2020 07:29:37 +0000 (10:29 +0300)]
Don't use 'cl' functions in ELisp manual's examples

* doc/lispref/control.texi (pcase Macro): Use 'cl-evenp' instead
of 'evenp'.  (Bug#41947)

4 years agoFix some Texinfo markup
Basil L. Contovounesios [Wed, 17 Jun 2020 11:53:40 +0000 (12:53 +0100)]
Fix some Texinfo markup

* doc/misc/gnus-faq.texi (FAQ 3-11):
* doc/emacs/frames.texi (Tab Bars): Consistently use @var with
lower-case metasyntactic variables and @minus instead of a dash.
(Text-Only Mouse):
* doc/emacs/files.texi (Auto Revert):
* doc/emacs/misc.texi (emacsclient Options)
(Embedded WebKit Widgets):
* doc/lispref/control.texi (pcase Macro):
* doc/lispref/debugging.texi (Backtraces):
* doc/lispref/files.texi (Truenames):
* doc/lispref/frames.texi (Management Parameters):
* doc/lispref/os.texi (Time Calculations):
* doc/lispref/text.texi (Parsing JSON):
* doc/misc/efaq-w32.texi (Other versions of Emacs, Debugging)
(Swap Caps NT, Printing, Bash, Developing with Emacs):
* doc/misc/efaq.texi (New in Emacs 25):
* doc/misc/emacs-gnutls.texi (Help For Users):
* doc/misc/message.texi (Using S/MIME, Passphrase caching):
* test/manual/etags/tex-src/gzip.texi (Overview): Use @. when a
sentence in the middle of a paragraph ends with an upper-case letter
as per "(texinfo) Ending a Sentence".

4 years agoFix recentf typo in Emacs manual
Basil L. Contovounesios [Wed, 17 Jun 2020 00:10:20 +0000 (01:10 +0100)]
Fix recentf typo in Emacs manual

* doc/emacs/files.texi (File Conveniences): Fix misspelling of
recentf-list.

4 years agoRename default function to next-error-buffer-unnavigated-current (bug#40919)
Juri Linkov [Tue, 16 Jun 2020 23:14:12 +0000 (02:14 +0300)]
Rename default function to next-error-buffer-unnavigated-current (bug#40919)

* lisp/simple.el (next-error-find-buffer-function): Rename default function
from next-error-no-navigation-try-current
to next-error-buffer-unnavigated-current.

4 years ago* lisp/image-mode.el (image-toggle-display-image): Fix fit of rotated images.
Juri Linkov [Tue, 16 Jun 2020 22:58:32 +0000 (01:58 +0300)]
* lisp/image-mode.el (image-toggle-display-image): Fix fit of rotated images.

When fitting rotated image to width and height, swap width and height
when changing orientation between portrait and landscape (bug#41886).

4 years ago* doc/misc/tramp.texi (Predefined connection information): Add "tmpdir".
Michael Albinus [Tue, 16 Jun 2020 10:34:00 +0000 (12:34 +0200)]
* doc/misc/tramp.texi (Predefined connection information): Add "tmpdir".

4 years agoDelete, don't kill, dir dir fragments in icomplete-fido-backward-updir
João Távora [Sat, 13 Jun 2020 17:45:40 +0000 (18:45 +0100)]
Delete, don't kill, dir dir fragments in icomplete-fido-backward-updir

Reported by: Andrew Schwartzmeyer <andrew@schwartzmeyer.com>

* lisp/icomplete.el (icomplete-fido-backward-updir): Don't save
dir fragments to kill ring.

4 years agoRevert markup change in with-coding-priority docs
Basil L. Contovounesios [Sat, 13 Jun 2020 16:53:59 +0000 (17:53 +0100)]
Revert markup change in with-coding-priority docs

This partially reverts commit fc759eb9b3
"Fix with-coding-priority markup in Elisp manual"
of 2019-10-13T15:36:02Z!contovob@tcd.ie.

For discussion, see the following thread:
https://lists.gnu.org/archive/html/emacs-devel/2019-10/msg00550.html
https://lists.gnu.org/archive/html/emacs-devel/2020-06/msg00473.html

* doc/lispref/nonascii.texi (Specifying Coding Systems): Use more
specific cross-reference to progn even if info.el displays it
suboptimally.

4 years ago* lisp/emulation/cua-rect.el (cua--rectangle-region-insert): New function.
Juri Linkov [Tue, 9 Jun 2020 23:03:06 +0000 (02:03 +0300)]
* lisp/emulation/cua-rect.el (cua--rectangle-region-insert): New function.

Add cua--insert-rectangle around region-insert-function (bug#41440).

4 years ago* lisp/simple.el (shell-command-on-region): Fix docstring.
Juri Linkov [Mon, 8 Jun 2020 23:28:53 +0000 (02:28 +0300)]
* lisp/simple.el (shell-command-on-region): Fix docstring.

* lisp/simple.el (shell-command-on-region): Mention REGION-NONCONTIGUOUS-P
in docstring (bug#41440)

* etc/NEWS: Better example for 'windmove-display-default-keybindings'.

4 years agoClean up D-Bus documentation (bug#41744)
Basil L. Contovounesios [Fri, 5 Jun 2020 23:58:37 +0000 (00:58 +0100)]
Clean up D-Bus documentation (bug#41744)

* doc/lispref/errors.texi (Standard Errors): The error symbol
dbus-error is defined even when Emacs is built without D-Bus.

* doc/misc/dbus.texi (Bus Names, Introspection)
(Nodes and Interfaces, Methods and Signal)
(Properties and Annotations, Arguments and Signatures)
(Synchronous Methods, Receiving Method Calls, Signals)
(Alternative Buses, Errors and Events): Clarify wording.  Fix
indentation of and simplify examples where possible.  Improve
Texinfo markup and cross-referencing where possible.
(Type Conversion): Ditto.  Remove mentions of Emacs' fixnum range
now that we have bignums.

* lisp/net/dbus.el (dbus-return-values-table)
(dbus-call-method-asynchronously, dbus-send-signal)
(dbus-register-signal, dbus-register-method)
(dbus-string-to-byte-array, dbus-byte-array-to-string)
(dbus-escape-as-identifier, dbus-check-event, dbus-event-bus-name)
(dbus-event-message-type, dbus-event-serial-number)
(dbus-event-service-name, dbus-event-path-name)
(dbus-event-interface-name, dbus-event-member-name)
(dbus-list-activatable-names, dbus-list-queued-owners, dbus-ping)
(dbus-introspect-get-interface-names, dbus-introspect-get-interface)
(dbus-introspect-get-method, dbus-introspect-get-signal)
(dbus-introspect-get-property, dbus-introspect-get-annotation-names)
(dbus-introspect-get-annotation, dbus-introspect-get-argument-names)
(dbus-introspect-get-argument, dbus-introspect-get-signature)
(dbus-set-property, dbus-register-property)
(dbus-get-all-managed-objects, dbus-init-bus): Clarify docstring and
improve formatting where possible.
(dbus-call-method): Ditto.  Remove mentions of Emacs' fixnum range
now that we have bignums.

4 years ago* lisp/image-mode.el (image-transform-original): New command (bug#41222).
Juri Linkov [Mon, 8 Jun 2020 00:30:27 +0000 (03:30 +0300)]
* lisp/image-mode.el (image-transform-original): New command (bug#41222).

(image-mode-map): Bind it to "so" and add to menu.

4 years agoMove tab-bar and tab-line faces to faces.el (part of bug#41200)
Juri Linkov [Mon, 8 Jun 2020 00:21:42 +0000 (03:21 +0300)]
Move tab-bar and tab-line faces to faces.el (part of bug#41200)

These are basic faces, so they need to be defined in
faces.el, otherwise (get 'tab-line 'face) returns 0.

* lisp/faces.el (tab-bar, tab-line): Move faces here
from tab-bar.el and tab-line.el.

* lisp/tab-bar.el (tab-bar): Move face to faces.el.
(tab-bar-faces): Add '((tab-bar custom-face))
to the second arg MEMBERS of 'defgroup'.

* lisp/tab-line.el (tab-line): Move face to faces.el.
(tab-line-faces): Add '((tab-line custom-face))
to the second arg MEMBERS of 'defgroup'.

4 years agoFix typo in "(elisp) Type Keywords"
Basil L. Contovounesios [Sun, 7 Jun 2020 15:46:12 +0000 (16:46 +0100)]
Fix typo in "(elisp) Type Keywords"

* doc/lispref/customize.texi (Type Keywords): Fix typo of 'choice'
composite type.  (Bug#41749)

4 years agoGnus nnir-summary-line-format has no effect
Tassilo Horn [Sun, 7 Jun 2020 08:01:41 +0000 (10:01 +0200)]
Gnus nnir-summary-line-format has no effect

* lisp/gnus/nnir.el (nnir-mode): Update summary format specs if
nnir-summary-line-format is set and different from
gnus-summary-line-format.
(nnir-open-server): Run nnir-mode in gnus-summary-generate-hook
instead of gnus-summary-prepared-hook.