]> git.eshelyaron.com Git - emacs.git/log
emacs.git
2 years agoMark a few more map tests as unstable on Emacs 28 (Bug#46722).
Philipp Stephani [Sat, 15 Jan 2022 11:40:09 +0000 (12:40 +0100)]
Mark a few more map tests as unstable on Emacs 28 (Bug#46722).

At least for me, these tests still occasionally fail.

Do not merge to master.

* test/lisp/emacs-lisp/map-tests.el (test-map-into-hash-test)
(test-map-merge, test-map-merge-with, test-map-merge-empty): Mark as
unstable.

2 years ago* lisp/indent.el (tab-first-completion): Fix incorrect choices.
Philipp Stephani [Fri, 14 Jan 2022 19:49:35 +0000 (20:49 +0100)]
* lisp/indent.el (tab-first-completion): Fix incorrect choices.

2 years ago* lisp/simple.el (undo-no-redo): Fix customization group
Philipp Stephani [Fri, 14 Jan 2022 18:35:03 +0000 (19:35 +0100)]
* lisp/simple.el (undo-no-redo): Fix customization group

2 years ago* lisp/progmodes/xref.el (xref-file-name-display): Fix docstring.
Philipp Stephani [Fri, 14 Jan 2022 21:01:06 +0000 (22:01 +0100)]
* lisp/progmodes/xref.el (xref-file-name-display): Fix docstring.

2 years agoAvoid another segfault in 'face_at_buffer_position'
Eli Zaretskii [Fri, 14 Jan 2022 14:11:34 +0000 (16:11 +0200)]
Avoid another segfault in 'face_at_buffer_position'

* src/xfaces.c (face_at_buffer_position): Make really sure the
default face is usable.  (Bug#53254)

2 years agoMark test-map-into as unstable
Lars Ingebrigtsen [Fri, 14 Jan 2022 07:39:48 +0000 (08:39 +0100)]
Mark test-map-into as unstable

* test/lisp/emacs-lisp/map-tests.el (test-map-into): Mark as
unstable (bug#46722).

Do not merge to master.

2 years agoFix Edebug specification for inline functions (Bug#53068).
Philipp Stephani [Thu, 13 Jan 2022 11:55:06 +0000 (12:55 +0100)]
Fix Edebug specification for inline functions (Bug#53068).

* lisp/emacs-lisp/inline.el (inline-quote): Fix Edebug specification.

* test/lisp/emacs-lisp/edebug-tests.el (edebug-tests-inline): New unit
test.

2 years agoRemove mention of removed `gnus-treat-play-sounds' variable from manual
N. Jackson [Thu, 13 Jan 2022 07:10:47 +0000 (08:10 +0100)]
Remove mention of removed `gnus-treat-play-sounds' variable from manual

* info/gnus.info: Remove `gnus-treat-play-sounds' from
manual. According to lisp/gnus/ChangeLog.3 this variable was
removed in 2010 (bug#53192).

2 years agoRevert "Fix closure-conversion of shadowed captured lambda-lifted vars"
Mattias Engdegård [Wed, 12 Jan 2022 18:47:39 +0000 (19:47 +0100)]
Revert "Fix closure-conversion of shadowed captured lambda-lifted vars"

This reverts commit 3ec8c8b3ae2359ceb8135b672e86526969c16b7e.

It was committed to a stable branch without prior discussion;
see bug#53071.

2 years ago* doc/lispref/windows.texi (Textual Scrolling): Remove obsolete text.
Juri Linkov [Wed, 12 Jan 2022 18:59:21 +0000 (20:59 +0200)]
* doc/lispref/windows.texi (Textual Scrolling): Remove obsolete text.

Remove text about scrolling the minibuffer from the buffer,
obsolete since Emacs 27 (bug#51210).

2 years ago* lisp/files.el (lock-file-name-transforms): Doc tweaks.
Glenn Morris [Wed, 12 Jan 2022 18:36:05 +0000 (10:36 -0800)]
* lisp/files.el (lock-file-name-transforms): Doc tweaks.

2 years ago; Fix typo loose/lose
Glenn Morris [Wed, 12 Jan 2022 18:23:31 +0000 (10:23 -0800)]
; Fix typo loose/lose

2 years agoFix closure-conversion of shadowed captured lambda-lifted vars
Mattias Engdegård [Mon, 22 Nov 2021 15:56:38 +0000 (16:56 +0100)]
Fix closure-conversion of shadowed captured lambda-lifted vars

Lambda-lifted variables (ones passed explicitly to lambda-lifted
functions) that are also captured in an outer closure and shadowed
were renamed incorrectly (bug#51982).

Reported by Paul Pogonyshev.

* lisp/emacs-lisp/cconv.el (cconv--lifted-arg): New.
(cconv-convert): Provide correct definiens for the closed-over
variable.
* test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-tests--test-cases):
* test/lisp/emacs-lisp/cconv-tests.el (cconv-tests--intern-all)
(cconv-closure-convert-remap-var): Add tests.

(cherry picked from commit 45252ad8f932c98a373ef0ab7f3363a3e27ccbe4)

2 years ago; * doc/lispref/modes.texi (Auto Major Mode): Clarification. (Bug#53199)
Eli Zaretskii [Wed, 12 Jan 2022 12:36:56 +0000 (14:36 +0200)]
; * doc/lispref/modes.texi (Auto Major Mode): Clarification.  (Bug#53199)

2 years agoFix test lisp/cedet/semantic/bovine/gcc-tests on macOS (Bug#52431)
Philipp Stephani [Tue, 28 Dec 2021 20:05:23 +0000 (21:05 +0100)]
Fix test lisp/cedet/semantic/bovine/gcc-tests on macOS (Bug#52431)

* test/lisp/cedet/semantic/bovine/gcc-tests.el
(semantic-gcc-test-output-parser-this-machine): Also detect Apple
clang on macOS Monterey.

(cherry picked from commit 6e52becfbe2a33c025b8c4838b3c8f06ba5a6fb8)

2 years agoDon't fail flymake-tests if `gcc` actually is Clang
Mattias Engdegård [Sun, 2 Jan 2022 12:00:13 +0000 (13:00 +0100)]
Don't fail flymake-tests if `gcc` actually is Clang

* test/lisp/progmodes/flymake-tests.el (flymake-tests--gcc-is-clang)
(different-diagnostic-types, included-c-header-files): Skip tests that
depend on the `gcc` command really being GCC and not Clang.

(cherry picked from commit b2167d98432a78442522b7564e22f47d75a98b6f)

2 years ago; Fix tabulated-list-mode tests after revert
Stefan Kangas [Tue, 11 Jan 2022 05:14:12 +0000 (06:14 +0100)]
; Fix tabulated-list-mode tests after revert

* test/lisp/emacs-lisp/tabulated-list-tests.el
(tabulated-list-print, tabulated-list-sort): Fix tests.

2 years agoRevert "Remove the filename argument from the command line after an ELC+ELN build"
Eli Zaretskii [Mon, 10 Jan 2022 18:02:39 +0000 (20:02 +0200)]
Revert "Remove the filename argument from the command line after an ELC+ELN build"

This reverts commit ffc047c896413b6e00032518fc934f08768671fa.

Please don't install anything non-trivial on the release branch
without asking first.

2 years agoRemove the filename argument from the command line after an ELC+ELN build
Alan Mackenzie [Mon, 10 Jan 2022 17:05:41 +0000 (17:05 +0000)]
Remove the filename argument from the command line after an ELC+ELN build

This fixes bug #53164.  Without this fix, bootstrap-emacs loads the source
file uselessly into a buffer after completing the compilation.

2 years ago(save-some-buffers): Simplify the fix for bug#46374
Stefan Monnier [Mon, 10 Jan 2022 02:02:31 +0000 (21:02 -0500)]
(save-some-buffers): Simplify the fix for bug#46374

* lisp/files.el (save-some-buffers): Only check the
`save-some-buffers-function` property on functions from
`save-some-buffers-default-predicate` since callers which provide
a `pred` argument can arrange to compute `pred` themselves if needed.

* test/lisp/files-tests.el (files-tests-buffer-offer-save): Don't test
with `pred` set to `save-some-buffers-root` since it's not an
appropriate function for that any more.

2 years agoImprove docstring of edit-abbrevs
Stefan Kangas [Sun, 9 Jan 2022 23:59:59 +0000 (00:59 +0100)]
Improve docstring of edit-abbrevs

* lisp/abbrev.el (edit-abbrevs): Doc fix; don't use obsolete name.
Improve docstring formatting.

2 years ago; * src/fns.c (Frequire): Fix wording of doc string.
Eli Zaretskii [Sun, 9 Jan 2022 17:02:17 +0000 (19:02 +0200)]
; * src/fns.c (Frequire): Fix wording of doc string.

2 years agoRevert "Fix alignment on font size change in tabulated-list-mode"
Eli Zaretskii [Sun, 9 Jan 2022 10:38:26 +0000 (12:38 +0200)]
Revert "Fix alignment on font size change in tabulated-list-mode"

This reverts commit 2767c89db729a6106146d0aeff76678c64d4fc53.

That change caused a regression in a much more important use
case, see bug#53133.

2 years ago; * lisp/emacs-lisp/package.el (package-native-compile): Fix doc wording.
Eli Zaretskii [Sun, 9 Jan 2022 08:25:36 +0000 (10:25 +0200)]
; * lisp/emacs-lisp/package.el (package-native-compile): Fix doc wording.

2 years agoClarify docstring of package-native-compile
Stefan Kangas [Sun, 9 Jan 2022 02:15:34 +0000 (03:15 +0100)]
Clarify docstring of package-native-compile

* lisp/emacs-lisp/package.el (package-native-compile): Clarify
docstring.

2 years agoFix Subject "simplification" in Rmail
Eli Zaretskii [Sat, 8 Jan 2022 14:32:01 +0000 (16:32 +0200)]
Fix Subject "simplification" in Rmail

* lisp/mail/rmail.el (rmail-simplified-subject): Match against
"[external]" _after_ decoding the Subject by RFC-2047.

2 years agoBump Emacs version to 28.0.91 emacs-28.0.91
Stefan Kangas [Sat, 8 Jan 2022 10:50:25 +0000 (11:50 +0100)]
Bump Emacs version to 28.0.91

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

2 years ago; Update files for 28.0.91 pretest
Stefan Kangas [Sat, 8 Jan 2022 10:39:45 +0000 (11:39 +0100)]
; Update files for 28.0.91 pretest

* ChangeLog.3:
* etc/AUTHORS:
* lisp/ldefs-boot.el: Update.

2 years agoFix vc-git with old Git over Tramp and cygwin-mount.el
Dmitry Gutov [Wed, 5 Jan 2022 02:08:10 +0000 (04:08 +0200)]
Fix vc-git with old Git over Tramp and cygwin-mount.el

* lisp/vc/vc-git.el (vc-git-use-literal-pathspecs): New variable.
(vc-git-command, vc-git--call): Use it to determine whether to set
GIT_LITERAL_PATHSPECS=1 (bug#51497).
(vc-git--literal-pathspec, vc-git--literal-pathspecs): Remove.
Update all callers.  This reverts the previous solution for bug#39452.

* lisp/progmodes/project.el (project--vc-list-files):
Use the new variable.

2 years ago* lisp/emacs-lisp/checkdoc.el (bytecomp): Add missing require
Philipp Stephani [Wed, 5 Jan 2022 00:41:46 +0000 (01:41 +0100)]
* lisp/emacs-lisp/checkdoc.el (bytecomp): Add missing require

2 years agoAvoid inflooping when 'tab-bar-format' includes embedded newlines
Eli Zaretskii [Sun, 2 Jan 2022 19:36:13 +0000 (21:36 +0200)]
Avoid inflooping when 'tab-bar-format' includes embedded newlines

* src/xdisp.c (tab_bar_height, redisplay_tab_bar): Support
'tab-bar-format' with embedded newlines.  (Bug#52947)

2 years ago* lisp/tab-line.el: Revert part of the fix in a6adfe21e4 (bug#52881)
Juri Linkov [Sun, 2 Jan 2022 18:00:40 +0000 (20:00 +0200)]
* lisp/tab-line.el: Revert part of the fix in a6adfe21e4 (bug#52881)

(tab-line--get-tab-property, tab-line-auto-hscroll): Use get-pos-property
instead of get-text-property that fails after previous-single-property-change.

2 years agoClarify %g and %G time format specs
Eli Zaretskii [Sun, 2 Jan 2022 07:30:15 +0000 (09:30 +0200)]
Clarify %g and %G time format specs

* src/timefns.c (Fformat_time_string):
* doc/lispref/os.texi (Time Parsing): Clarify %g/%G.  (Bug#52934)

2 years ago(define-char-code-property): Workaround for bug#52945
Stefan Monnier [Sun, 2 Jan 2022 07:25:55 +0000 (02:25 -0500)]
(define-char-code-property): Workaround for bug#52945

* lisp/international/mule-cmds.el (define-char-code-property): Ignore
requests to re-setup lazy loading after the char-table is already loaded.

2 years ago; * admin/notes/years: More known problems.
Eli Zaretskii [Sat, 1 Jan 2022 20:21:46 +0000 (22:21 +0200)]
; * admin/notes/years: More known problems.

2 years ago; Copyright year fixes
Glenn Morris [Sat, 1 Jan 2022 18:02:17 +0000 (10:02 -0800)]
; Copyright year fixes

2 years ago; Run set-copyright from admin.el
Glenn Morris [Sat, 1 Jan 2022 17:52:06 +0000 (09:52 -0800)]
; Run set-copyright from admin.el

2 years ago; * admin/notes/years: Mention known problems with 'update-copyright'.
Eli Zaretskii [Sat, 1 Jan 2022 15:11:32 +0000 (17:11 +0200)]
; * admin/notes/years: Mention known problems with 'update-copyright'.

2 years agoUpdate more copyright years
Eli Zaretskii [Sat, 1 Jan 2022 12:20:37 +0000 (14:20 +0200)]
Update more copyright years

* etc/tutorials/TUTORIAL.he (זכויות שימוש):
* config.bat: Update Copyright years.

2 years ago; * etc/refcards/ru-refcard.tex: Update Copyright year.
Eli Zaretskii [Sat, 1 Jan 2022 11:43:00 +0000 (13:43 +0200)]
; * etc/refcards/ru-refcard.tex: Update Copyright year.

2 years ago* lisp/net/tramp-sh.el: Adapt copyright year
Michael Albinus [Sat, 1 Jan 2022 11:22:15 +0000 (12:22 +0100)]
* lisp/net/tramp-sh.el: Adapt copyright year

2 years ago; Minor fixes related to copyright years
Eli Zaretskii [Sat, 1 Jan 2022 11:01:44 +0000 (13:01 +0200)]
; Minor fixes related to copyright years

* admin/notes/years: Advise redirecting output of update-copyright
to a file.

* etc/refcards/gnus-refcard.tex (Copyright): Update years.

2 years ago; * test/manual/etags/ETAGS.good_N: Adjust to copyright years change.
Eli Zaretskii [Sat, 1 Jan 2022 10:19:17 +0000 (05:19 -0500)]
; * test/manual/etags/ETAGS.good_N: Adjust to copyright years change.

2 years ago* src/xfaces.c (face_for_font): Make 'hash' be uintptr_t.
Zhehao Lin [Sat, 1 Jan 2022 08:19:49 +0000 (16:19 +0800)]
* src/xfaces.c (face_for_font): Make 'hash' be uintptr_t.

Copyright-paperwork-exempt: yes

2 years ago; Add 2022 to copyright years.
Eli Zaretskii [Sat, 1 Jan 2022 07:45:51 +0000 (02:45 -0500)]
; Add 2022 to copyright years.

2 years ago; Auto-commit of loaddefs files.
Stefan Kangas [Sat, 1 Jan 2022 06:14:35 +0000 (07:14 +0100)]
; Auto-commit of loaddefs files.

2 years agoImprove doc strings of fringe indicator variables
Eli Zaretskii [Fri, 31 Dec 2021 19:58:42 +0000 (21:58 +0200)]
Improve doc strings of fringe indicator variables

* src/buffer.c (syms_of_buffer): Fix doc strings of
'indicate-empty-lines' and 'indicate-buffer-boundaries'.

2 years ago* lisp/tab-line.el (tab-line--get-tab-property): New function (bug#52881).
Juri Linkov [Fri, 31 Dec 2021 09:20:51 +0000 (11:20 +0200)]
* lisp/tab-line.el (tab-line--get-tab-property): New function (bug#52881).

(tab-line-auto-hscroll): Use ‘tab-line--get-tab-property’ instead of
‘get-pos-property 1’, and ‘get-text-property’ instead of
‘get-pos-property’.
(tab-line-select-tab, tab-line-close-tab): Use tab-line--get-tab-property.

2 years agoAvoid assertion violations with variable-weight fonts
Eli Zaretskii [Thu, 30 Dec 2021 18:28:58 +0000 (20:28 +0200)]
Avoid assertion violations with variable-weight fonts

* src/font.c (font_score, font_delete_unmatched): Don't assume
weight, slant, and width properties of the font must be fixnums:
some variable-weight fonts violate that assumption.  Reported
by Sean Whitton <spwhitton@spwhitton.name>.  Do not merge to
master.  (Bug#52888)

2 years agoMinor improvement in user documentation of completion style
Eli Zaretskii [Thu, 30 Dec 2021 18:07:29 +0000 (20:07 +0200)]
Minor improvement in user documentation of completion style

* doc/emacs/mini.texi (Completion Styles): Add reference to
"Completion Variables" in the ELisp manual.  (Bug#52901)

2 years agoFix bug where bookmark-jump used (point), not (point-at-bol)
Campbell Barton [Thu, 30 Dec 2021 06:20:45 +0000 (17:20 +1100)]
Fix bug where bookmark-jump used (point), not (point-at-bol)

This matches changes from e852822f3db469c985bf022651f184d6ff2c518a,
regression in 7fe88446c30279285e3171091189b3d1af697c05.
* lisp/bookmark.el (bookmark--jump-via): Look at overlays at BOL.
Otherwise the fringe bookmark indication is not deleted with the
bookmark.

Copyright-paperwork-exempt: yes

2 years agoCC Mode: c-update-brace-stack: After struct foo *, do not expect a brace.
Alan Mackenzie [Wed, 29 Dec 2021 19:05:11 +0000 (19:05 +0000)]
CC Mode: c-update-brace-stack: After struct foo *, do not expect a brace.

This fixes bug #52796.

* lisp/progmodes/cc-engine.el (c-update-brace-stack): Handle a "*" like a
semicolon, cancelling the expectation of a brace.

* lisp/progmodes/cc-langs.el (c-brace-stack-thing-key): Add a "*" into the
sets of significant characters.

2 years agoImprove documentation of 'M-X' and related features
Eli Zaretskii [Wed, 29 Dec 2021 14:39:20 +0000 (16:39 +0200)]
Improve documentation of 'M-X' and related features

* doc/emacs/m-x.texi (M-x): Index 'M-X'.
* doc/lispref/commands.texi (Interactive Call, Command Modes):
Mention 'M-X' and 'execute-extended-command-for-buffer'.

* etc/NEWS: Clarify that the '(declare (completion ...' and
'(declare (modes ...' forms have no effect by default.  Likewise
for '(interactive "..." MODE)' specs.  (Bug#52839)

2 years agoImprove rectangle-mark-mode documentation regarding mark activation
Sean Whitton [Mon, 27 Dec 2021 19:58:25 +0000 (12:58 -0700)]
Improve rectangle-mark-mode documentation regarding mark activation

* doc/emacs/killing.texi: Describe how rectangle-mark-mode works when
Transient Mark mode is off.  Qualify discussion of
rectangle-exchange-point-and-mark to say that it cycles the four
corners only when the region is active.
* lisp/rect.el (rectangle-mark-mode): State that rectangle-mark-mode
does not activate the mark when Transient Mark mode is off.  Reword
sentence about how long the mode lasts to account for when Transient
Mark mode is off.  (Bug#42663)

2 years agoFix typos in in 'reset-language-environment'
Eli Zaretskii [Mon, 27 Dec 2021 17:00:33 +0000 (19:00 +0200)]
Fix typos in in 'reset-language-environment'

* lisp/international/mule-cmds.el (reset-language-environment):
Fix a typo in 'windows-nt'.  (Bug#52816)

2 years agoeshell-complete-parse-arguments: don't use string-match on a list
Óscar Fuentes [Mon, 27 Dec 2021 15:01:09 +0000 (16:01 +0100)]
eshell-complete-parse-arguments: don't use string-match on a list

When there is more than one candidate for completion, `val' is a list.

Fixes bug#52794.

* lisp/eshell/em-cmpl.el (eshell-complete-parse-arguments): protect
use of string-match with stringp.

3 years agoUpdate to Org 9.5.2-3-geb9f34
Kyle Meyer [Sun, 26 Dec 2021 21:37:26 +0000 (16:37 -0500)]
Update to Org 9.5.2-3-geb9f34

3 years agoImprove documentation of read-multiple-choice
Stefan Kangas [Sun, 26 Dec 2021 00:08:33 +0000 (01:08 +0100)]
Improve documentation of read-multiple-choice

* doc/lispref/commands.texi (Reading One Event): Document optional
third argument help-string of read-multiple-choice.

3 years agoExplain why we remove stuff from 'user-full-name'
Eli Zaretskii [Sat, 25 Dec 2021 07:38:39 +0000 (09:38 +0200)]
Explain why we remove stuff from 'user-full-name'

* src/editfns.c (Fuser_full_name): Document why we chop everything
starting from the first comma.  (Bug#52785)

3 years agoFix the bug with duplicate entries in xref output
Dmitry Gutov [Fri, 24 Dec 2021 13:27:00 +0000 (15:27 +0200)]
Fix the bug with duplicate entries in xref output

* lisp/progmodes/etags.el (xref-backend-definitions): Make sure to
save the changed intermediate value of the list (bug#52734).

3 years agoImprove Xref documentation
Dmitry Gutov [Fri, 24 Dec 2021 01:24:52 +0000 (03:24 +0200)]
Improve Xref documentation

* lisp/progmodes/xref.el (xref-item): Add docstring for 'summary'.
Fix typo in the header Commentary.

3 years ago* lisp/net/shr.el (shr-expand-url): Also strip trailing
Andreas Schwab [Thu, 23 Dec 2021 18:06:13 +0000 (19:06 +0100)]
* lisp/net/shr.el (shr-expand-url): Also strip trailing
whitespace.

3 years agoRevert field-related thingatpt changes
Lars Ingebrigtsen [Wed, 22 Dec 2021 12:56:47 +0000 (13:56 +0100)]
Revert field-related thingatpt changes

This reverts 7db376e560448e61485ba054def8c82b21f33d6a, which led to
severe performance regressions when being run in large buffers with no
fields (bug#52593)

3 years ago* lisp/window.el (quit-restore-window): Select previously selected window.
Juri Linkov [Tue, 21 Dec 2021 19:11:30 +0000 (21:11 +0200)]
* lisp/window.el (quit-restore-window): Select previously selected window.

After deleting the dedicated window, such as a window with *Completions*
buffer, select the previously selected window, like most of other 'cond'
branches do in this function (bug#52491).

3 years agoRevert "Remove Motif support"
Robert Pluim [Tue, 21 Dec 2021 17:39:39 +0000 (18:39 +0100)]
Revert "Remove Motif support"

This reverts commit db237850abc240e2c3e765e9cc7e15ee5681dcaf.

3 years ago; * doc/lispref/frames.texi (Child Frames): Improve wording.
Eli Zaretskii [Sun, 19 Dec 2021 17:27:41 +0000 (19:27 +0200)]
; * doc/lispref/frames.texi (Child Frames): Improve wording.

3 years agoClarify description of two mouse dragging parameters (Bug#52537)
Martin Rudalics [Sun, 19 Dec 2021 16:59:15 +0000 (17:59 +0100)]
Clarify description of two mouse dragging parameters (Bug#52537)

* doc/lispref/frames.texi (Child Frames): Clarify description of
'top-visible' and 'bottom-visible' parameters (Bug#52537).

3 years agoUpdate to Org 9.5.1-31-ga18849
Kyle Meyer [Sat, 18 Dec 2021 18:50:40 +0000 (13:50 -0500)]
Update to Org 9.5.1-31-ga18849

3 years agoFix control buffer window height in 'ediff-setup-control-buffer' (Bug#49277)
Martin Rudalics [Wed, 15 Dec 2021 17:53:49 +0000 (18:53 +0100)]
Fix control buffer window height in 'ediff-setup-control-buffer' (Bug#49277)

* lisp/vc/ediff-util.el (ediff-setup-control-buffer): Emulate
original 'shrink-window-if-larger-than-buffer' call by calling
'fit-window-to-buffer' with an appropriate maximum height
argument (Bug#49277).

3 years agoFix crash when dumping charset_table with portable dumper (Bug#52461)
YAMAMOTO Mitsuharu [Wed, 15 Dec 2021 04:12:02 +0000 (13:12 +0900)]
Fix crash when dumping charset_table with portable dumper (Bug#52461)

* src/charset.h:
* src/charset.c (charset_table_used): Now extern.
* src/pdumper.c (dump_charset): Don't dump code_space_mask for unused
slots of charset_table.

3 years ago; etc/NEWS: Move the note about Xref EIEIO change to the proper section
Dmitry Gutov [Wed, 15 Dec 2021 01:05:11 +0000 (04:05 +0300)]
; etc/NEWS: Move the note about Xref EIEIO change to the proper section

3 years agoRemove maintainer comment from Emacs 28 module snippet.
Philipp Stephani [Tue, 14 Dec 2021 10:17:37 +0000 (11:17 +0100)]
Remove maintainer comment from Emacs 28 module snippet.

This is the same as 44c13eefe8d30841000a96d82f467fb8d222e365 on
master.  We should also remove this comment on the release branch,
otherwise it ends up in the emacs-module.h shipped to users.

* src/module-env-28.h: Remove maintainer comment.

3 years agoSet calc-make-windows-dedicated to nil by default
Stefan Kangas [Tue, 14 Dec 2021 02:38:11 +0000 (03:38 +0100)]
Set calc-make-windows-dedicated to nil by default

* lisp/calc/calc.el (calc-make-windows-dedicated):
Default to nil.  (Bug#52016)

3 years ago* make-dist: Don't run "make --question info". (Bug#52322)
Stefan Kangas [Tue, 14 Dec 2021 02:08:37 +0000 (03:08 +0100)]
* make-dist: Don't run "make --question info".  (Bug#52322)

3 years ago; * src/xdisp.c (move_it_vertically_backward): Clarify commentary.
Eli Zaretskii [Mon, 13 Dec 2021 19:02:38 +0000 (21:02 +0200)]
; * src/xdisp.c (move_it_vertically_backward): Clarify commentary.

3 years agoFix regression in help-mode prompt
Eli Zaretskii [Mon, 13 Dec 2021 13:51:38 +0000 (15:51 +0200)]
Fix regression in help-mode prompt

* lisp/help-macro.el (make-help-screen): Restore SPC and DEL in
prompt.  Reported by Colin Baxter <m43cap@yandex.com>.

3 years agoMake `M-x run-python' select the window again
Kévin Le Gouguec [Mon, 13 Dec 2021 04:17:00 +0000 (05:17 +0100)]
Make `M-x run-python' select the window again

Interactively, we want M-x run-python to focus the interpreter buffer.
The previous code failed in two ways:

- the call to 'display-buffer' was not reached if an interpreter
  was already running,

- set-buffer is ineffectual if the interpreter's window is not
  selected: once Emacs returns to the command loop, the current buffer
  will revert back to what the selected window contains.

* lisp/progmodes/python.el (python-shell-make-comint): Handle the SHOW
argument regardless of whether an interpreter buffer exists, and use
pop-to-buffer to select the window.
(run-python): Delegate buffer management to
'python-shell-make-comint'.

* test/lisp/progmodes/python-tests.el
(python-tests--run-python-selects-window): Rename from
'python-tests--bug31398', and adjust assertions (bug#52380).

3 years ago* lisp/tab-bar.el (tab-bar-switch-to-last-tab): Add 'abs' for precautions.
Juri Linkov [Sun, 12 Dec 2021 18:25:54 +0000 (20:25 +0200)]
* lisp/tab-bar.el (tab-bar-switch-to-last-tab): Add 'abs' for precautions.

https://lists.gnu.org/archive/html/emacs-devel/2021-11/msg01149.html

3 years ago* make-dist (manifest): Filter out msdos/autogen/* files.
Eli Zaretskii [Sun, 12 Dec 2021 18:20:51 +0000 (20:20 +0200)]
* make-dist (manifest): Filter out msdos/autogen/* files.

3 years agoRewrite the "Quitting Windows" section of Emacs Lisp Reference
Richard Stallman [Wed, 8 Dec 2021 04:35:31 +0000 (23:35 -0500)]
Rewrite the "Quitting Windows" section of Emacs Lisp Reference

* doc/lispref/windows.texi (Quitting Windows): Rewrite for
clarity.  (Bug#52328)

3 years agoFix eshell for systems that do not have subprocesses
Po Lu [Sun, 12 Dec 2021 07:50:28 +0000 (15:50 +0800)]
Fix eshell for systems that do not have subprocesses

* lisp/eshell/esh-cmd.el (eshell-eval-command): Use
`eshell-processp' instead of `processp'.

3 years agoAvoid undefined behavior in 'send-process-region' (Bug#52369).
Philipp Stephani [Sat, 11 Dec 2021 12:51:34 +0000 (13:51 +0100)]
Avoid undefined behavior in 'send-process-region' (Bug#52369).

* src/process.c (send_process): Signal an error if the file descriptor
has already been closed.

3 years agoUpdate to Org 9.5.1-25-g9ca3bc
Kyle Meyer [Sat, 11 Dec 2021 17:31:13 +0000 (12:31 -0500)]
Update to Org 9.5.1-25-g9ca3bc

3 years agoFix the DJGPP port
Po Lu [Fri, 10 Dec 2021 13:36:59 +0000 (21:36 +0800)]
Fix the DJGPP port

* config.bat:
* msdos/sed1v2.inp:
* msdos/sed2v2.inp:
* msdos/sed3v2.inp:
* msdos/sedlibmk.inp: Update for Emacs 28.
* msdos/langinfo.h: New file.

* lisp/loadup.el: Use correct path to temacs when dumping on
MS-DOS.
* src/callproc.c (environ) [MSDOS]: New declaration.
(child_setup, emacs_spawn): Update MS-DOS parts for Emacs 28.
* src/fileio.c (Fcopy_file): Don't use copy_file_range on
MS-DOS.
* src/msdos.c (initialize_msdos_display): Add
`defined_color_hook'.
(openat, fchmodat, futimens, utimensat): New functions.

* src/msdos.h (FRAME_X_DISPLAY): New macro.
* src/process.c: Make some more things conditional on
subprocess support.
(PIPECONN_P, PIPECONN1_P) [!subprocesses]: New placeholder
macros.
(Fnum_processors): Return 1 on MSDOS.
(open_channel_for_module): Avoid subprocess specific code
on MSDOS.

3 years agoRevert "Make `M-x run-python' select the window again"
Lars Ingebrigtsen [Fri, 10 Dec 2021 12:07:24 +0000 (13:07 +0100)]
Revert "Make `M-x run-python' select the window again"

This reverts commit aa2872a12770282ede3548ed3fcab00c5a5b9f18.

This led to a test failure.

3 years agoMake `M-x run-python' select the window again
Kévin Le Gouguec [Fri, 10 Dec 2021 12:05:49 +0000 (13:05 +0100)]
Make `M-x run-python' select the window again

* lisp/progmodes/python.el (python-shell-make-comint): Make `M-x
run-python' select the window again like in 27.2 (bug#52380).

3 years agoDon't bug out on certain empty elements with ids
Lars Ingebrigtsen [Fri, 10 Dec 2021 11:46:55 +0000 (12:46 +0100)]
Don't bug out on certain empty elements with ids

* lisp/net/shr.el (shr-descend): Fix empty-element #id targetting
(bug#52391).

3 years ago; * lisp/image-dired.el: Fix typo.
Stefan Kangas [Fri, 10 Dec 2021 01:33:48 +0000 (02:33 +0100)]
; * lisp/image-dired.el: Fix typo.

3 years agoemacsclient takes more care about XDG_RUNTIME_DIR
Paul Eggert [Thu, 9 Dec 2021 17:03:10 +0000 (09:03 -0800)]
emacsclient takes more care about XDG_RUNTIME_DIR

* lib-src/emacsclient.c (set_local_socket): Revert to the Emacs 27
behavior of not trying TMPDIR if XDG_RUNTIME_DIR is set.
This is one of the suggestions made by Jim Porter and
independently by Ulrich Mueller in Bug#51327.

3 years ago; Prefer HTTPS in more URLs
Stefan Kangas [Thu, 9 Dec 2021 15:22:17 +0000 (16:22 +0100)]
; Prefer HTTPS in more URLs

3 years ago; * lisp/progmodes/flymake.el: Update the minimum Emacs version.
Eli Zaretskii [Thu, 9 Dec 2021 15:01:57 +0000 (17:01 +0200)]
; * lisp/progmodes/flymake.el: Update the minimum Emacs version.

3 years agoAdd missing K key documentation for Cangjie input methods
Cameron Desautels [Thu, 9 Dec 2021 08:08:14 +0000 (00:08 -0800)]
Add missing K key documentation for Cangjie input methods

* lisp/international/titdic-cnv.el (tsang-quick-converter): Add the
missing K key in input method documentation. (Bug#52264)

3 years agoFix manual entry of 'quit-restore-window' (Bug#52328)
Martin Rudalics [Thu, 9 Dec 2021 09:00:51 +0000 (10:00 +0100)]
Fix manual entry of 'quit-restore-window' (Bug#52328)

* doc/lispref/windows.texi (Quitting Windows): Fix bug in
description of 'quit-restore-window' (Bug#52328).

3 years agoClarify a comment in xdisp.c
Eli Zaretskii [Thu, 9 Dec 2021 07:18:04 +0000 (09:18 +0200)]
Clarify a comment in xdisp.c

* src/xdisp.c (compute_window_start_on_continuation_line): Clarify
a comment.  (Bug#52378)

3 years agoRevert "Grep alias `all' shall not match parent directory"
Óscar Fuentes [Wed, 8 Dec 2021 22:49:26 +0000 (23:49 +0100)]
Revert "Grep alias `all' shall not match parent directory"

This reverts commit 856cd948d1a5a016ad36721246a049d33451902f.

Emacs got better at quoting shell arguments and the original value
works correctly for vc-git-grep. At the same time, the value
introduced on that commit caused a regression on lgrep.

* lisp/progmodes/grep.el (grep-files-aliases): Use previous value for
`all'. Fixes bug#52367

3 years ago; * etc/NEWS: Non-nil repeat-keep-prefix is not the default anymore.
Juri Linkov [Wed, 8 Dec 2021 20:20:41 +0000 (22:20 +0200)]
; * etc/NEWS: Non-nil repeat-keep-prefix is not the default anymore.

3 years agoFix mode-line display in Calendar mode
Eli Zaretskii [Wed, 8 Dec 2021 14:22:10 +0000 (16:22 +0200)]
Fix mode-line display in Calendar mode

* lisp/help.el (substitute-command-keys): New optional argument
NO-FACE, to avoid putting the 'help-key-binding' face on the key
bindings.
* lisp/calendar/calendar.el (calendar-mode-line-entry): Call
'substitute-command-keys' with the new optional argument non-nil.
(Bug#52366)

* doc/lispref/help.texi (Keys in Documentation): Document the new
optional argument of 'substitute-command-keys'.

* etc/NEWS: Announce the addition of a new argument to
'substitute-command-keys'.

3 years ago* etc/tutorials/TUTORIAL.it (CONCLUSIONI): Reword paragraph.
Lele Gaifax [Wed, 8 Dec 2021 08:00:19 +0000 (09:00 +0100)]
* etc/tutorials/TUTORIAL.it (CONCLUSIONI): Reword paragraph.

Don't merge to master.

3 years agoBackport: Make a more robust check in Tramp using scripts
Michael Albinus [Tue, 7 Dec 2021 15:20:13 +0000 (16:20 +0100)]
Backport: Make a more robust check in Tramp using scripts

* lisp/net/tramp-sh.el (tramp-find-inline-encoding):
Check, whether scripts in `tramp-remote-coding-commands' are
expandable.

(cherry picked from commit 1d0a60113fd155c77ef5ea4ea44fcba3504adcbf)

3 years agoDocument native-comp-async-report-warning-errors more
Robert Pluim [Tue, 7 Dec 2021 17:43:01 +0000 (18:43 +0100)]
Document native-comp-async-report-warning-errors more

The docstring has a description of how fix problems in lisp code
detected by native compilation, but not the Emacs Lisp manual, so
document it there as well.

* doc/lispref/compile.texi (Native-Compilation Functions): Refer to
'native-comp-async-report-warning-errors'
(Native-Compilation Variables): Explain potential cause of warnings
from native compilation.