]> git.eshelyaron.com Git - emacs.git/log
emacs.git
3 years ago; Update loaddefs files. emacs-28.0.90
Stefan Kangas [Wed, 1 Dec 2021 20:11:38 +0000 (21:11 +0100)]
; Update loaddefs files.

3 years ago; make change-history-commit
Stefan Kangas [Wed, 1 Dec 2021 19:15:20 +0000 (20:15 +0100)]
; make change-history-commit

3 years ago* lisp/repeat.el: Use same logic for repeat-check-key and repeat-exit-timeout.
Juri Linkov [Wed, 1 Dec 2021 17:41:37 +0000 (19:41 +0200)]
* lisp/repeat.el: Use same logic for repeat-check-key and repeat-exit-timeout.

* lisp/repeat.el (repeat-check-key): Use for repeat-check-key the same logic
as is used for repeat-exit-timeout in repeat-post-hook (bug#51390).
(repeat-post-hook): Check for repeat-exit-timeout symbol property.

3 years ago* lisp/help.el (help--analyze-key): Prefer posn-set-point over mouse-set-point
Juri Linkov [Wed, 1 Dec 2021 17:36:00 +0000 (19:36 +0200)]
* lisp/help.el (help--analyze-key): Prefer posn-set-point over mouse-set-point

* lisp/help.el (help--analyze-key): Use posn-set-point instead of
mouse-set-point that runs the hook mouse-leave-buffer-hook via
mouse-minibuffer-check.  Using posn-set-point also unnecessitates
extra conditions added in bug#51421.

* lisp/isearch.el (isearch-describe-key, isearch-describe-mode):
Add precautions to not call isearch-update when the executed
command exited isearch-mode (bug#51173).

3 years agoBump Emacs version to 28.0.90
Stefan Kangas [Wed, 1 Dec 2021 16:42:52 +0000 (17:42 +0100)]
Bump Emacs version to 28.0.90

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

3 years ago; * etc/AUTHORS: Update.
Stefan Kangas [Wed, 1 Dec 2021 16:38:49 +0000 (17:38 +0100)]
; * etc/AUTHORS: Update.

3 years ago; * admin/authors.el (authors-aliases): More fixes.
Stefan Kangas [Wed, 1 Dec 2021 16:14:04 +0000 (17:14 +0100)]
; * admin/authors.el (authors-aliases): More fixes.

3 years ago; * ChangeLog.3: Update.
Stefan Kangas [Wed, 1 Dec 2021 16:05:48 +0000 (17:05 +0100)]
; * ChangeLog.3: Update.

3 years ago; * ChangeLog.3: Minor fixes.
Stefan Kangas [Wed, 1 Dec 2021 15:01:23 +0000 (16:01 +0100)]
; * ChangeLog.3: Minor fixes.

3 years ago; * admin/authors.el (authors-aliases): Further updates.
Stefan Kangas [Wed, 1 Dec 2021 15:56:59 +0000 (16:56 +0100)]
; * admin/authors.el (authors-aliases): Further updates.

3 years ago; * lisp/org/ob-julia.el: Fix Author header for authors.el.
Stefan Kangas [Wed, 1 Dec 2021 15:21:34 +0000 (16:21 +0100)]
; * lisp/org/ob-julia.el: Fix Author header for authors.el.

3 years agoCC Mode: Recognise "struct foo {" as introducing a type declaration
Alan Mackenzie [Wed, 1 Dec 2021 15:41:09 +0000 (15:41 +0000)]
CC Mode: Recognise "struct foo {" as introducing a type declaration

This fixes bug #52157.

* lisp/progmodes/cc-engine.el (c-forward-decl-or-cast-1): If such a construct
is parsed, set the flag at-type-decl which is part of the function's return
value.

3 years ago; Auto-commit of loaddefs files.
Stefan Kangas [Wed, 1 Dec 2021 01:15:10 +0000 (02:15 +0100)]
; Auto-commit of loaddefs files.

3 years agoUpdate authors.el for Emacs 28
Stefan Kangas [Tue, 30 Nov 2021 23:20:24 +0000 (00:20 +0100)]
Update authors.el for Emacs 28

* admin/authors.el (authors-aliases, authors-ignored-files)
(authors-renamed-files-alist): Update for Emacs 28.

3 years ago; * ChangeLog.3: Some additional fixes.
Stefan Kangas [Tue, 30 Nov 2021 22:46:45 +0000 (23:46 +0100)]
; * ChangeLog.3: Some additional fixes.

3 years ago; * ChangeLog.3: Filename fixes.
Stefan Kangas [Tue, 30 Nov 2021 19:15:19 +0000 (20:15 +0100)]
; * ChangeLog.3: Filename fixes.

3 years ago* lisp/repeat.el: Fix long-standing problem when a random key activates map
Juri Linkov [Tue, 30 Nov 2021 19:05:05 +0000 (21:05 +0200)]
* lisp/repeat.el: Fix long-standing problem when a random key activates map

* lisp/repeat.el (repeat-check-key): New defcustom (bug#51390).
(repeat--command-property): New internal function.
(repeat-check-key): New function.
(repeat-post-hook): Use repeat--command-property and repeat-check-key.

* test/lisp/repeat-tests.el (repeat-tests-check-key): New test.

3 years ago* lisp/repeat.el (repeat-keep-prefix): Change default to nil.
Juri Linkov [Tue, 30 Nov 2021 18:55:19 +0000 (20:55 +0200)]
* lisp/repeat.el (repeat-keep-prefix): Change default to nil.

'repeat-keep-prefix' doesn't yet have sufficient support
that covers all cases in bug#51281, so it's disabled now.

3 years ago* test/lisp/repeat-tests.el (repeat-tests-call-b): Test for commit 588caf0b27.
Juri Linkov [Tue, 30 Nov 2021 18:52:47 +0000 (20:52 +0200)]
* test/lisp/repeat-tests.el (repeat-tests-call-b): Test for commit 588caf0b27.

This tests for 'repeat-map' as a variable instead of a symbol.

3 years ago; * src/comp.c (syms_of_comp) <comp-no-native-file-h>: Doc fix.
Eli Zaretskii [Tue, 30 Nov 2021 18:23:47 +0000 (20:23 +0200)]
; * src/comp.c (syms_of_comp) <comp-no-native-file-h>: Doc fix.

3 years ago* src/callint.c (Fcall_interactively): Fix inhibit_mouse_event_check.
Juri Linkov [Tue, 30 Nov 2021 18:12:06 +0000 (20:12 +0200)]
* src/callint.c (Fcall_interactively): Fix inhibit_mouse_event_check.

Don't search for the next mouse event with parameters
when inhibit-mouse-event-check is non-nil (bug#50067).

3 years agoFix regression in gdb-frame-handler
Lars Ingebrigtsen [Tue, 30 Nov 2021 13:09:19 +0000 (14:09 +0100)]
Fix regression in gdb-frame-handler

* lisp/progmodes/gdb-mi.el (gdb-frame-handler): Protect against
nil fullnames (bug#52196).

3 years agoFormat and index concept 'predicate' in ELisp Intro
YugaEgo [Tue, 30 Nov 2021 13:03:32 +0000 (14:03 +0100)]
Format and index concept 'predicate' in ELisp Intro

* doc/lispintro/emacs-lisp-intro.texi (Wrong Type of Argument):
Add index and format definition (bug#52197).

Copyright-paperwork-exempt: yes

3 years ago; * ChangeLog.3: Fix typos.
Stefan Kangas [Tue, 30 Nov 2021 09:25:59 +0000 (10:25 +0100)]
; * ChangeLog.3: Fix typos.

3 years ago; * ChangeLog.3: Formatting fixes.
Stefan Kangas [Tue, 30 Nov 2021 08:46:20 +0000 (09:46 +0100)]
; * ChangeLog.3: Formatting fixes.

3 years ago; make change-history-commit
Stefan Kangas [Tue, 30 Nov 2021 08:36:54 +0000 (09:36 +0100)]
; make change-history-commit

3 years agoMerge branch 'emacs-28' of git.savannah.gnu.org:/srv/git/emacs into emacs-28
Eli Zaretskii [Mon, 29 Nov 2021 20:30:37 +0000 (22:30 +0200)]
Merge branch 'emacs-28' of git.savannah.gnu.org:/srv/git/emacs into emacs-28

3 years agoRemove problematic characters from modus-themes.org (bug#52126)
Protesilaos Stavrou [Mon, 29 Nov 2021 19:13:55 +0000 (21:13 +0200)]
Remove problematic characters from modus-themes.org (bug#52126)

* doc/misc/modus-themes.org
(Enable and load, Font configurations for Org and others)
(Note on highlight-parentheses.el, Note on god-mode.el): Update links to
headings so that they no longer include the removed portions of text.

(Option for color-coding success state, Option for line highlighting)
(Option for line numbers, Option for parenthesis matching)
(Advanced customization, Per-theme customization settings)
(Case-by-case face specs using the themes' palette)
(Face specs at scale using the themes' palette)
(Remap face with local value, Cycle through arbitrary colors)
(Override colors, Override color saturation)
(Font configurations for Org and others, Configure bold and italic faces)
(Custom Org user faces, Update Org block delimiter fontification)
(Measure color contrast, Load theme depending on time of day)
(Backdrop for pdf-tools)
(A theme-agnostic hook for theme loading, Note on EWW and Elfeed fonts)
(Frequently Asked Questions): Remove parentheses from headings as they
can cause problems in the .texi version of the file.

3 years agoAvoid undefined behaviour when copying part of structure
Andreas Schwab [Mon, 29 Nov 2021 09:29:40 +0000 (10:29 +0100)]
Avoid undefined behaviour when copying part of structure

* src/dispnew.c (copy_row_except_pointers): Don't use address of
subobject as starting point.

(cherry picked from commit 6943786b5c1fe76ea05a3a810512bd6777883710)

3 years ago* Makefile.in (PREFERRED_BRANCH): Now emacs-28.
Stefan Kangas [Mon, 29 Nov 2021 04:57:13 +0000 (05:57 +0100)]
* Makefile.in (PREFERRED_BRANCH): Now emacs-28.

3 years ago; Remove an obsolete comment
Karl Fogel [Sun, 28 Nov 2021 19:34:57 +0000 (13:34 -0600)]
; Remove an obsolete comment

* src/editfns.c (Ftranspose_regions): Remove an obsolete comment about
  memmove, following up to commit 72af86bd8cf of 8 Jul 2010 by Andreas
  Schwab and commit 354f9f0fc6cc of 23 Feb 2016 by Fredrik Bergroth,
  both of which added calls to memmove.

3 years ago* src/coding.c (Fdecode_coding_region, Fencode_coding_region): Doc fix.
Eli Zaretskii [Sun, 28 Nov 2021 18:18:16 +0000 (20:18 +0200)]
* src/coding.c (Fdecode_coding_region, Fencode_coding_region): Doc fix.

3 years ago; * lisp/org/org.el: Fix version header.
Stefan Kangas [Sun, 28 Nov 2021 13:54:24 +0000 (14:54 +0100)]
; * lisp/org/org.el: Fix version header.

3 years agoFix Subject when forwarding message with 2-line From
Mike Kupfer [Fri, 26 Nov 2021 21:59:14 +0000 (13:59 -0800)]
Fix Subject when forwarding message with 2-line From

* lisp/mh-e/mh-comp.el (mh-forwarded-letter-subject): Collapse
two-line From headers into a single line (SF#266).  Based on a
suggestion from Lester Buck (many thanks!).

3 years agoUpdate to Org 9.5.1-11-g96d91b
Kyle Meyer [Sat, 27 Nov 2021 21:24:31 +0000 (16:24 -0500)]
Update to Org 9.5.1-11-g96d91b

3 years ago* doc/lispref/commands.texi (Click Events): Fix wording (bug#52142).
Eli Zaretskii [Sat, 27 Nov 2021 13:01:46 +0000 (15:01 +0200)]
* doc/lispref/commands.texi (Click Events): Fix wording (bug#52142).

3 years ago; * src/emacs.c (main): Add commentary about command-line processing.
Eli Zaretskii [Thu, 25 Nov 2021 20:31:47 +0000 (22:31 +0200)]
; * src/emacs.c (main): Add commentary about command-line processing.

3 years agoFix pdf generation with Texinfo 6.7
Robert Pluim [Thu, 25 Nov 2021 14:29:00 +0000 (15:29 +0100)]
Fix pdf generation with Texinfo 6.7

* doc/lispref/display.texi (Size of Displayed Text): Put @group inside
@example (bug#52102).

3 years agoFix 'posn-at-point' near some overlays
Eli Zaretskii [Thu, 25 Nov 2021 13:06:08 +0000 (15:06 +0200)]
Fix 'posn-at-point' near some overlays

* src/xdisp.c (pos_visible_p): Fix 'posn-at-point' for positions
just after a display property that draws a fringe bitmap.
(Bug#52097)

3 years ago; * CONTRIBUTE: No cleanups on release branches, even in docs.
Eli Zaretskii [Thu, 25 Nov 2021 08:43:35 +0000 (10:43 +0200)]
; * CONTRIBUTE: No cleanups on release branches, even in docs.

3 years ago* lisp/repeat.el (repeat-post-hook): Add check symbolp rep-map.
Narendra Joshi [Thu, 25 Nov 2021 07:58:53 +0000 (09:58 +0200)]
* lisp/repeat.el (repeat-post-hook): Add check symbolp rep-map.

Copyright-paperwork-exempt: yes

3 years agoRevert "Use @pxref when necessary"
Eli Zaretskii [Wed, 24 Nov 2021 19:27:15 +0000 (21:27 +0200)]
Revert "Use @pxref when necessary"

This reverts commit b4f47d2ee2203a9f22bebeb3d09e0fb3fce2f65e.
Cleanups should not be done on the release branch: that's
unnecessary risk.

3 years agoUse @pxref when necessary
Robert Pluim [Wed, 24 Nov 2021 16:28:45 +0000 (17:28 +0100)]
Use @pxref when necessary

* doc/lispref/customize.texi (Composite Types):
* doc/lispref/edebug.texi (Specification List):
* doc/lispref/variables.texi (Local Variables):
* doc/misc/efaq.texi (Basic keys):
(Informational files for Emacs):
* doc/misc/flymake.texi (Locating a master file):
* doc/misc/gnus.texi (Don't Panic):
(Oort Gnus):
* doc/misc/htmlfontify.texi (Non-interactive):
* doc/misc/mh-e.texi (More About MH-E):
* doc/misc/pcl-cvs.texi (Entering PCL-CVS):
* doc/misc/tramp.texi (Remote processes):
* doc/misc/vhdl-mode.texi (Indentation Calculation):
(Custom Indentation Functions): Use @pxref when inside parens.

3 years agoBackport Tramp fixes, don't merge
Michael Albinus [Wed, 24 Nov 2021 15:54:59 +0000 (16:54 +0100)]
Backport Tramp fixes, don't merge

* lisp/net/tramp-sshfs.el (tramp-sshfs-file-name-handler-alist):
Use `tramp-handle-file-readable-p'.

* test/lisp/net/tramp-archive-tests.el
(tramp-archive-test02-file-name-dissect): Use `make-tramp-file-name'.

3 years agoFix typos in documentation
Takesi Ayanokoji [Tue, 23 Nov 2021 14:30:23 +0000 (23:30 +0900)]
Fix typos in documentation

* doc/lispref/anti.texi:
* doc/misc/efaq.texi: Fix typos.

Copyright-paperwork-exempt: yes

3 years ago; * etc/DEBUG: Fix last change.
Eli Zaretskii [Tue, 23 Nov 2021 14:25:48 +0000 (16:25 +0200)]
; * etc/DEBUG: Fix last change.

3 years ago; * etc/DEBUG: Adjust instructions for libgccjit reproducer.
Eli Zaretskii [Tue, 23 Nov 2021 12:44:45 +0000 (14:44 +0200)]
; * etc/DEBUG: Adjust instructions for libgccjit reproducer.

3 years ago; * src/xdisp.c (produce_stretch_glyph): Avoid compilation warning.
Eli Zaretskii [Tue, 23 Nov 2021 12:37:53 +0000 (14:37 +0200)]
; * src/xdisp.c (produce_stretch_glyph): Avoid compilation warning.

3 years agoFix '(space :relative-width N)' display spec w/non-ASCII chars
Eli Zaretskii [Mon, 22 Nov 2021 18:00:48 +0000 (20:00 +0200)]
Fix '(space :relative-width N)' display spec w/non-ASCII chars

* src/xdisp.c (produce_stretch_glyph): Use the correct face for
non-ASCII characters.  Support :relative-width display spec on
Lisp strings, not just on buffer text.

3 years ago* lisp/proced.el (proced-sort-header): Fix event positions (bug#1779).
Juri Linkov [Mon, 22 Nov 2021 17:39:28 +0000 (19:39 +0200)]
* lisp/proced.el (proced-sort-header): Fix event positions (bug#1779).

The logic was copied from 'tabulated-list-col-sort'.

3 years agoUpdate to Org 9.5-72-gc5d6656
Kyle Meyer [Sat, 20 Nov 2021 18:12:18 +0000 (13:12 -0500)]
Update to Org 9.5-72-gc5d6656

3 years agoFix mouse handling with several TTY frames on MS-Windows
Eli Zaretskii [Sat, 20 Nov 2021 18:08:06 +0000 (20:08 +0200)]
Fix mouse handling with several TTY frames on MS-Windows

* src/w32inevt.c (do_mouse_event): Reset the 'mouse_moved' flag of
the selected frame.  Without that, this flag might remain set on a
TTY frame that is not displayed.

3 years agoFix temacs invocation from outside of the 'src' directory
Eli Zaretskii [Sat, 20 Nov 2021 16:17:59 +0000 (18:17 +0200)]
Fix temacs invocation from outside of the 'src' directory

* src/emacs.c (main) [HAVE_NATIVE_COMP]: Recompute the value of
native-comp-eln-load-path if about to load loadup in uninitialized
Emacs.  (Bug#51999)

3 years ago; Avoid byte-compilation warnings in edmacro.el
Eli Zaretskii [Sat, 20 Nov 2021 11:00:42 +0000 (13:00 +0200)]
; Avoid byte-compilation warnings in edmacro.el

* lisp/edmacro.el (mouse-wheel-down-event, mouse-wheel-up-event)
(mouse-wheel-right-event, mouse-wheel-left-event): Defvar them, to
avoid compilation warnings in --without-x builds.

3 years agoFix mouse events on tab bar or tool bar when 'track-mouse' is t
martin rudalics [Sat, 20 Nov 2021 09:56:13 +0000 (10:56 +0100)]
Fix mouse events on tab bar or tool bar when 'track-mouse' is t

* lisp/mouse.el (mouse-drag-track):
* lisp/mouse-drag.el (mouse-drag-drag): Set 'track-mouse' to some
value neither t nor nil.
* src/keyboard.c (make_lispy_position): If track_mouse is Qt,
report event on tool or tab bar (Bug#51794).

3 years agoFix `browse-url-interactive-arg' for certain kinds of events
Po Lu [Sat, 20 Nov 2021 07:56:08 +0000 (15:56 +0800)]
Fix `browse-url-interactive-arg' for certain kinds of events

* lisp/net/browse-url.el (browse-url-interactive-arg): Don't
call `mouse-set-point' unless event is actually a mouse event.

3 years ago* test/lisp/net/tramp-tests.el (tramp-get-remote-gid): Remove declaration.
Michael Albinus [Fri, 19 Nov 2021 17:58:01 +0000 (18:58 +0100)]
* test/lisp/net/tramp-tests.el (tramp-get-remote-gid): Remove declaration.

3 years agoAdd upward compatibility entry in Tramp (don't merge)
Michael Albinus [Fri, 19 Nov 2021 17:57:47 +0000 (18:57 +0100)]
Add upward compatibility entry in Tramp (don't merge)

* lisp/net/tramp.el (tramp-file-name-for-operation):
Add `abbreviate-file-name'.

3 years agoFix sorting of menus in `context-menu-local' (bug#50067).
Juri Linkov [Thu, 18 Nov 2021 18:36:55 +0000 (20:36 +0200)]
Fix sorting of menus in `context-menu-local' (bug#50067).

* lisp/menu-bar.el (menu-bar-keymap): Don't use `lookup-key'
on the `keymap' arg.

* lisp/mouse.el (context-menu-global): Use `lookup-key global-map'
for the `keymap' arg of `menu-bar-keymap'.
(context-menu-local): Use `menu-bar-keymap' to sort `keymap'.

3 years agoFix flyspell-correct-word selected from context menu opened with the keyboard
Juri Linkov [Thu, 18 Nov 2021 18:23:58 +0000 (20:23 +0200)]
Fix flyspell-correct-word selected from context menu opened with the keyboard

* lisp/mouse.el (context-menu-open): Call interactively a command
returned by `context-menu-map' such as `flyspell-correct-word' (bug#50067).

* lisp/textmodes/flyspell.el (flyspell-correct-word): Handle the
case when it's called by a key bound to `context-menu-open'.
Then it should work the same way as `C-c $' typed on misspelled word
where the arg `event' of `flyspell-correct-word-before-point' is nil.

3 years ago* lisp/repeat.el (describe-repeat-maps): Print all bound keys (bug#49265).
Robert Pluim [Thu, 18 Nov 2021 17:42:44 +0000 (19:42 +0200)]
* lisp/repeat.el (describe-repeat-maps): Print all bound keys (bug#49265).

3 years ago* lisp/tab-bar.el: Use 'mouse-1' for history buttons like for 'add-tab' button
Juri Linkov [Thu, 18 Nov 2021 17:36:42 +0000 (19:36 +0200)]
* lisp/tab-bar.el: Use 'mouse-1' for history buttons like for 'add-tab' button

* lisp/tab-bar.el (tab-bar-mouse-down-1, tab-bar-mouse-1):
Handle clicks for 'history-back' and 'history-forward' the same way
as 'add-tab' clicks.

3 years agoImprove documentation of window hooks
Eli Zaretskii [Thu, 18 Nov 2021 08:25:58 +0000 (10:25 +0200)]
Improve documentation of window hooks

* doc/lispref/windows.texi (Window Hooks): Clarify "buffer-local
functions".  (Bug#51930)

3 years agoImprove doc string of 'highlight-nonselected-windows'
Eli Zaretskii [Thu, 18 Nov 2021 06:46:17 +0000 (08:46 +0200)]
Improve doc string of 'highlight-nonselected-windows'

* src/xdisp.c (syms_of_xdisp) <highlight-nonselected-windows>:
Clarify the doc string.  (Bug#51927)

3 years ago* admin/authors.el (authors-ignored-files): Ignore some NEWS files.
Stefan Kangas [Wed, 17 Nov 2021 03:44:38 +0000 (04:44 +0100)]
* admin/authors.el (authors-ignored-files): Ignore some NEWS files.

3 years ago* lisp/tab-bar.el (tab-bar-select-tab): Add check for wc-frame (bug#51883).
Juri Linkov [Tue, 16 Nov 2021 20:45:33 +0000 (22:45 +0200)]
* lisp/tab-bar.el (tab-bar-select-tab): Add check for wc-frame (bug#51883).

3 years ago* lisp/tab-bar.el: Doc fixes for commands bound to modifier keys.
Juri Linkov [Tue, 16 Nov 2021 20:40:45 +0000 (22:40 +0200)]
* lisp/tab-bar.el: Doc fixes for commands bound to modifier keys.

(tab-bar-select-tab-modifiers)
(tab-bar-select-tab, tab-bar-switch-to-last-tab): Doc fixes.

3 years agoFix removal of fringe marks of deleted bookmarks
Eli Zaretskii [Mon, 15 Nov 2021 18:20:30 +0000 (20:20 +0200)]
Fix removal of fringe marks of deleted bookmarks

* lisp/bookmark.el (bookmark--remove-fringe-mark): The fringe
overlay is at BOL, not at POS.  (Bug#51233)

3 years ago* lisp/repeat.el (repeat-echo-message): Bind message-log-max to nil.
Juri Linkov [Mon, 15 Nov 2021 17:53:29 +0000 (19:53 +0200)]
* lisp/repeat.el (repeat-echo-message): Bind message-log-max to nil.

Don't insert messages about repeatable keys in the *Messages* buffer.

3 years ago* lisp/repeat.el (describe-repeat-maps): Use help-fns--analyze-function.
Robert Pluim [Mon, 15 Nov 2021 17:50:30 +0000 (19:50 +0200)]
* lisp/repeat.el (describe-repeat-maps): Use help-fns--analyze-function.

Print keys bound to commands in every keymap (bug#49265)

3 years ago* lisp/repeat.el: Detect changes in the minibuffer state (bug#47566)
Juri Linkov [Mon, 15 Nov 2021 17:39:37 +0000 (19:39 +0200)]
* lisp/repeat.el: Detect changes in the minibuffer state (bug#47566)

(repeat--prev-mb): New internal variable.
(repeat-post-hook): Check the property 'repeat-map' on the symbol
from 'this-command' in addition to 'real-this-command'.  Don't allow
repeatable maps in the activated minibuffer or in the minibuffer
from another command.  Set 'repeat--prev-mb' at the end.

3 years agoAvoid segfaults due to freed face cache
Eli Zaretskii [Mon, 15 Nov 2021 13:35:31 +0000 (15:35 +0200)]
Avoid segfaults due to freed face cache

* src/xfaces.c (face_at_buffer_position): Make sure DEFAULT_FACE
is usable.  (Bug#51864)

3 years agoDoc fix; change recommended file name of custom-file
Stefan Kangas [Mon, 15 Nov 2021 09:58:53 +0000 (10:58 +0100)]
Doc fix; change recommended file name of custom-file

* lisp/cus-edit.el (custom-file): Change file name recommendation to
match Info node '(emacs) Saving Customizations'.

3 years ago* rcirc.el (rcirc-define-command): Fix interactive-spec generation
Philip Kaludercic [Sun, 14 Nov 2021 18:41:31 +0000 (19:41 +0100)]
* rcirc.el (rcirc-define-command): Fix interactive-spec generation

* rcirc.el (rcirc-define-command):  Wrap interactive spec in a list call.

3 years agoFix `C-h k' in gnus-article-mode (don't merge)
Lars Ingebrigtsen [Sun, 14 Nov 2021 01:46:38 +0000 (02:46 +0100)]
Fix `C-h k' in gnus-article-mode (don't merge)

* lisp/gnus/gnus-art.el (gnus-article-describe-key):
(gnus-article-describe-key-briefly): Fix `describe-key' calling
convention (bug#51796).

3 years agoFix semantic-symref-perform-search doc string
Daniel Martín [Sun, 14 Nov 2021 14:30:52 +0000 (15:30 +0100)]
Fix semantic-symref-perform-search doc string

* lisp/cedet/semantic/symref/cscope.el (semantic-symref-perform-search):
Fix the docstring to refer to the correct tool (bug#51846).

3 years agoAdd more files to be natively-compiled AOT
Eli Zaretskii [Sun, 14 Nov 2021 12:46:27 +0000 (14:46 +0200)]
Add more files to be natively-compiled AOT

* src/Makefile.in (elnlisp): Add emacs-lisp/gv.eln and other
missing dependencies of comp.el.

3 years agognus-summary-line-format doc string clarification
Lars Ingebrigtsen [Sun, 14 Nov 2021 03:54:40 +0000 (04:54 +0100)]
gnus-summary-line-format doc string clarification

* lisp/gnus/gnus.el (gnus-summary-line-format): Clarify the Date
part of the doc string (bug#51823).

3 years agoFix follow-scroll-down in a small buffer which starts slightly scrolled
Alan Mackenzie [Sat, 13 Nov 2021 18:33:17 +0000 (18:33 +0000)]
Fix follow-scroll-down in a small buffer which starts slightly scrolled

This fixes bug #51814.

* lisp/follow.el (follow-scroll-down): Do away with the optimization of doing
vertical-motion over only one window.  Instead move over all windows, to
checck for being close to point-min, and setting point accordingly.

3 years agoFix compilation on MS-Windows
Eli Zaretskii [Thu, 31 Dec 2020 18:28:30 +0000 (20:28 +0200)]
Fix compilation on MS-Windows

* src/callproc.c (emacs_spawn) <fork_done>: Define the label only
if USABLE_POSIX_SPAWN is defined, to avoid a compiler warning.

(cherry picked from commit a8fc08085110de00ebcbd67b5273a755a5cb8ea1)

3 years agoUse posix_spawn if possible.
Philipp Stephani [Wed, 30 Dec 2020 13:42:01 +0000 (14:42 +0100)]
Use posix_spawn if possible.

posix_spawn is less error-prone than vfork + execve, and can make
better use of system-specific enhancements like 'clone' on Linux.  Use
it if we don't need to configure a pseudoterminal.

Backported from commit a60053f8368e058229721f1bf1567c2b1676b239.
Unlike that commit, only define USABLE_POSIX_SPAWN on macOS, because
there posix_spawn is much faster than vfork.

Don't merge to master.

* configure.ac (HAVE_SPAWN_H, HAVE_POSIX_SPAWN)
(HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR)
(HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR_NP)
(HAVE_POSIX_SPAWNATTR_SETFLAGS, HAVE_DECL_POSIX_SPAWN_SETSID): New
configuration variables.
* src/callproc.c (USABLE_POSIX_SPAWN): New configuration macro.
(emacs_posix_spawn_init_actions)
(emacs_posix_spawn_init_attributes, emacs_posix_spawn_init): New
helper functions.
(emacs_spawn): Use posix_spawn if possible.

(cherry picked from commit a60053f8368e058229721f1bf1567c2b1676b239)

3 years agoImprove style and comments in font-related sources
Eli Zaretskii [Sat, 13 Nov 2021 14:37:39 +0000 (16:37 +0200)]
Improve style and comments in font-related sources

* src/w32font.c (fill_in_logfont): Stylistic changes.
* src/font.h (font_property_index, font_select_entity):
Add/improve comments.

3 years ago; Fix typos
Stefan Kangas [Fri, 12 Nov 2021 12:50:55 +0000 (13:50 +0100)]
; Fix typos

3 years agoImprove documentation of 'decode-coding-region'
Eli Zaretskii [Fri, 12 Nov 2021 08:53:52 +0000 (10:53 +0200)]
Improve documentation of 'decode-coding-region'

* src/coding.c (Fdecode_coding_region): Doc fix.

* doc/lispref/nonascii.texi (Coding System Basics)
(Explicit Encoding): Explain the significance of using 'undecided'
in 'decode-coding-*' functions.

3 years agoFix problem with temp buffer killing in package-install-file
Lars Ingebrigtsen [Fri, 12 Nov 2021 03:44:09 +0000 (04:44 +0100)]
Fix problem with temp buffer killing in package-install-file

* lisp/emacs-lisp/package.el (package-install-file): Allow killing
the temporary buffer without querying (bug#51769).

3 years agoFix Lisp Intro markup error
Lars Ingebrigtsen [Fri, 12 Nov 2021 03:39:02 +0000 (04:39 +0100)]
Fix Lisp Intro markup error

* doc/lispintro/emacs-lisp-intro.texi (Insert let): Fix @code
markup error (bug#51777).

3 years agoFix ACL errors with WebDAV volumes on MS-Windows
Eli Zaretskii [Thu, 11 Nov 2021 19:41:10 +0000 (21:41 +0200)]
Fix ACL errors with WebDAV volumes on MS-Windows

* src/w32.c (acl_get_file): Handle ERROR_INVALID_FUNCTION from
WebDAV.  Patch from Ioannis Kappas <ioannis.kappas@gmail.com>.
(Bug#51773)

3 years agoFix tramp-compat-file-name-concat (Bug#51754)
Aleksandr Vityazev [Thu, 11 Nov 2021 10:53:41 +0000 (11:53 +0100)]
Fix tramp-compat-file-name-concat (Bug#51754)

* lisp/net/tramp-compat.el: Make `tramp-compat-file-name-concat'
work like file-name-concat.  (Bug#51754)

3 years ago* lisp/vc/vc-git.el (vc-git-mergebase): More meaningful error message.
Juri Linkov [Wed, 10 Nov 2021 18:41:19 +0000 (20:41 +0200)]
* lisp/vc/vc-git.el (vc-git-mergebase): More meaningful error message.

Display a readable error message instead of signaling an error on nil value.

3 years ago; Fix heading in etc/NEWS
Michael Albinus [Wed, 10 Nov 2021 12:40:44 +0000 (13:40 +0100)]
; Fix heading in etc/NEWS

3 years ago; * etc/NEWS: Move a bookmark related item further down.
Stefan Kangas [Wed, 10 Nov 2021 12:17:14 +0000 (13:17 +0100)]
; * etc/NEWS: Move a bookmark related item further down.

3 years agotime-stamp: %F is "file name" not "pathname" + other doc
Stephen Gildea [Wed, 10 Nov 2021 04:09:22 +0000 (20:09 -0800)]
time-stamp: %F is "file name" not "pathname" + other doc

* lisp/time-stamp.el (time-stamp-format): doc 'file' instead of 'path'.
* test/lisp/time-stamp-tests.el (formatz, format-time-offset):
Clarify the difference and similarity between these two test helpers.

3 years ago; Fix typos in CONTRIBUTE, ELisp manual, ediff
Tom Levy [Tue, 9 Nov 2021 12:51:48 +0000 (12:51 +0000)]
; Fix typos in CONTRIBUTE, ELisp manual, ediff

* CONTRIBUTE: Remove stray '. after git command.
* doc/lispref/functions.texi (Function Cells): Fix typo.
* lisp/vc/ediff.el (ediff-regions-wordwise): Fix typo in prompts
("Region's A buffer" => "Region A's buffer") (bug#51718).

Copyright-paperwork-exempt: yes

3 years ago* doc/misc/eww.texi (Advanced): Fix missed variable name eww-retrieve-command.
Juri Linkov [Tue, 9 Nov 2021 20:45:17 +0000 (22:45 +0200)]
* doc/misc/eww.texi (Advanced): Fix missed variable name eww-retrieve-command.

3 years ago* doc/emacs/windows.texi (Window Convenience): Use @code for windmove.
Juri Linkov [Tue, 9 Nov 2021 20:43:54 +0000 (22:43 +0200)]
* doc/emacs/windows.texi (Window Convenience): Use @code for windmove.

This refers to both a command and a user option.

* etc/NEWS: Add some ---.

3 years ago* doc/emacs/maintaining.texi (Basic VC Editing): Mention Dired buffer.
Juri Linkov [Tue, 9 Nov 2021 20:40:15 +0000 (22:40 +0200)]
* doc/emacs/maintaining.texi (Basic VC Editing): Mention Dired buffer.

* doc/emacs/text.texi (Outline Mode): Replace S-TAB with with S-<TAB>.

* etc/NEWS: Add some missing +++/--- and move some related items closer.

3 years ago; * doc/emacs/building.texi (Lisp Libraries): Fix a typo. (Bug#51717)
Eli Zaretskii [Tue, 9 Nov 2021 13:51:24 +0000 (15:51 +0200)]
; * doc/emacs/building.texi (Lisp Libraries): Fix a typo.  (Bug#51717)

3 years ago* lisp/progmodes/prog-mode.el (prog-context-menu): Use "Go Back" (bug#38797)
Juri Linkov [Tue, 9 Nov 2021 08:29:37 +0000 (10:29 +0200)]
* lisp/progmodes/prog-mode.el (prog-context-menu): Use "Go Back" (bug#38797)

; Do not merge to master.

3 years agoRevert "Fix localized display of date and time in the NS port"
Stefan Kangas [Tue, 9 Nov 2021 07:49:34 +0000 (08:49 +0100)]
Revert "Fix localized display of date and time in the NS port"

This reverts commit 5e05be566b0e13ce0b4e75da663fb051039f0751.

This was discussed in
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=51321#93

3 years ago* lisp/mouse.el (mouse-buffer-menu-mode-groups): Tighten "Version Control".
Juri Linkov [Mon, 8 Nov 2021 19:23:44 +0000 (21:23 +0200)]
* lisp/mouse.el (mouse-buffer-menu-mode-groups): Tighten "Version Control".

Use word boundaries in the "Version Control" regexp to match mode names
"Log-Edit", "Log-View", "Git-Log-View", "Change Log", "VC dir",
but not "Verilog", "Prolog", "Rlogin" (bug#51337).