]> git.eshelyaron.com Git - emacs.git/log
emacs.git
2 years agoWhen registering Gnus message ids, guard against no registry
Eric Abrahamsen [Mon, 6 Dec 2021 21:43:24 +0000 (13:43 -0800)]
When registering Gnus message ids, guard against no registry

* lisp/gnus/gnus-registry.el (gnus-registry-register-message-ids):
There are situations where this code is called without a full Gnus
startup (eg, debbugs). If the registry doesn't exist, just skip this
process.

2 years agoSilence byte-compiler in two tests
Stefan Kangas [Mon, 6 Dec 2021 21:05:57 +0000 (22:05 +0100)]
Silence byte-compiler in two tests

* test/lisp/emacs-lisp/eieio-tests/eieio-test-methodinvoke.el:
* test/lisp/mail/mail-utils-tests.el
(mail-utils-tests-mail-rfc822-time-zone): Silence byte-compiler.

2 years agoRemove spurious space in byte-compiler warning
Stefan Kangas [Mon, 6 Dec 2021 20:51:37 +0000 (21:51 +0100)]
Remove spurious space in byte-compiler warning

* lisp/emacs-lisp/bytecomp.el
(byte-compile-docstring-length-warn): Remove spurious space in
byte-compiler warning.
* test/lisp/emacs-lisp/bytecomp-tests.el
("warn-wide-docstring-defun.el"): Update test.

2 years agoAssume unfilled byte-compiler warnings in tests
Stefan Kangas [Mon, 6 Dec 2021 20:48:40 +0000 (21:48 +0100)]
Assume unfilled byte-compiler warnings in tests

* test/lisp/emacs-lisp/bytecomp-tests.el
(bytecomp--define-warning-file-test): Remove workaround for filled
byte-compilation warnings.  See Bug#52281.

2 years agoFix previous shr-parse-style change
Lars Ingebrigtsen [Mon, 6 Dec 2021 20:43:39 +0000 (21:43 +0100)]
Fix previous shr-parse-style change

* lisp/net/shr.el (shr-parse-style): Fix previous clean-up here
(which wasn't well thought through).

2 years agodired.texi: Document dired-create-destination-dirs-on-trailing-dirsep
Tassilo Horn [Mon, 6 Dec 2021 20:24:56 +0000 (21:24 +0100)]
dired.texi: Document dired-create-destination-dirs-on-trailing-dirsep

* doc/emacs/dired.texi (Operating on Files): Document new option
dired-create-destination-dirs-on-trailing-dirsep.

2 years agoMerge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Mon, 6 Dec 2021 18:49:43 +0000 (20:49 +0200)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs

2 years agoRevert "Avoid small parasitic button on mode line"
Eli Zaretskii [Mon, 6 Dec 2021 18:47:43 +0000 (20:47 +0200)]
Revert "Avoid small parasitic button on mode line"

This reverts commit c9e901f4a612646be4ce06e1619897edfb073bf0.

Turns out without that "ghost" button min-width doesn't work
on the mode line at all...

2 years agoTramp code cleanup
Michael Albinus [Mon, 6 Dec 2021 18:36:15 +0000 (19:36 +0100)]
Tramp code cleanup

* lisp/net/tramp.el (tramp-get-default-directory)
(tramp-get-buffer-string): New defsubsts.
(tramp-message, tramp-error-with-buffer)
(tramp-file-name-for-operation, tramp-command-completion-p)
(tramp-action-login, tramp-action-yesno, tramp-action-yn)
(tramp-action-terminal, tramp-action-confirm-message)
(tramp-wait-for-regexp, tramp-call-process)
(tramp-call-process-region, tramp-read-passwd):
* lisp/net/tramp-cmds.el (tramp-list-remote-buffers)
(tramp-reporter-dump-variable):
* lisp/net/tramp-gvfs.el (tramp-gvfs-monitor-process-filter):
* lisp/net/tramp-sh.el (tramp-sh-handle-insert-directory)
(tramp-sh-handle-process-file, tramp-sh-handle-write-region)
(tramp-sh-gio-monitor-process-filter):
* lisp/net/tramp-smb.el (tramp-smb-action-set-acl):
* lisp/net/tramp-sudoedit.el
(tramp-sudoedit-handle-file-name-all-completions):
* test/lisp/net/tramp-tests.el (tramp--test-instrument-test-case)
(tramp-test32-shell-command): Use them.

2 years agoFix mode-line display on TTY frames
Eli Zaretskii [Mon, 6 Dec 2021 17:36:07 +0000 (19:36 +0200)]
Fix mode-line display on TTY frames

* lisp/bindings.el (mode-line-frame-control): Remove the leading
'-' before '%F' on TTY frames.  It has no real purpose, and looks
ugly nowadays, since it's preceded by a blank, due to the new
min-width feature.

2 years agoAvoid small parasitic button on mode line
Eli Zaretskii [Mon, 6 Dec 2021 17:10:33 +0000 (19:10 +0200)]
Avoid small parasitic button on mode line

* lisp/bindings.el (mode-line-position): Remove stray space
character, which caused a "ghost" button on the mode line.
(Bug#52332)

2 years ago; * etc/tutorials/TUTORIAL.sv: Re-adjust to latest change in TUTORIAL.
Stefan Kangas [Mon, 6 Dec 2021 15:11:20 +0000 (16:11 +0100)]
; * etc/tutorials/TUTORIAL.sv: Re-adjust to latest change in TUTORIAL.

2 years ago; * etc/tutorials/TUTORIAL: Minor wording change in recent addition.
Eli Zaretskii [Mon, 6 Dec 2021 14:56:30 +0000 (16:56 +0200)]
; * etc/tutorials/TUTORIAL: Minor wording change in recent addition.

2 years agoMerge remote-tracking branch 'origin/emacs-28' into trunk
Stefan Monnier [Mon, 6 Dec 2021 14:44:18 +0000 (09:44 -0500)]
Merge remote-tracking branch 'origin/emacs-28' into trunk

2 years agolisp/minibuffer.el: Fix for bug#52169 regression
Stefan Monnier [Mon, 6 Dec 2021 14:43:13 +0000 (09:43 -0500)]
lisp/minibuffer.el: Fix for bug#52169 regression

* lisp/minibuffer.el (completion-table-subvert): Make sure we return
a boundary that's not outside of the limit of the string.

2 years ago* etc/tutorials/TUTORIAL.sv: Adjust to latest change in TUTORIAL.
Stefan Kangas [Mon, 6 Dec 2021 14:09:51 +0000 (15:09 +0100)]
* etc/tutorials/TUTORIAL.sv: Adjust to latest change in TUTORIAL.

2 years ago; * etc/tutorials/TUTORIAL: Fix typo in last commit.
Stefan Kangas [Mon, 6 Dec 2021 14:08:09 +0000 (15:08 +0100)]
; * etc/tutorials/TUTORIAL: Fix typo in last commit.

2 years agoAdd package management to tutorial and startup screen
Daniel Fleischer [Wed, 1 Dec 2021 17:15:27 +0000 (19:15 +0200)]
Add package management to tutorial and startup screen

* etc/tutorials/TUTORIAL: Add section about package installation.
* lisp/startup.el (fancy-startup-tail): Add button for
package-list-packages.

This was discussed in:
https://lists.gnu.org/r/emacs-devel/2021-12/msg00079.html

2 years agoimage.c: Remove some dead code
Stefan Kangas [Mon, 6 Dec 2021 11:06:35 +0000 (12:06 +0100)]
image.c: Remove some dead code

* src/image.c (gui_put_x_image): Remove dead code, commented out since
2004.

2 years agoUpdate org-compat doc string
Paul Eggert [Mon, 6 Dec 2021 07:13:06 +0000 (23:13 -0800)]
Update org-compat doc string

* lisp/org/org-compat.el (file-attribute-modification-time):
Update doc string to match that of builtin Emacs.

2 years agoFix minor clock skew issues
Paul Eggert [Mon, 6 Dec 2021 07:00:10 +0000 (23:00 -0800)]
Fix minor clock skew issues

* lisp/midnight.el (clean-buffer-list):
* lisp/progmodes/vhdl-mode.el (vhdl-template-replace-header-keywords):
* lisp/net/rcirc.el (rcirc-connect):
Don’t assume that getting the current time twice in rapid
succession will yield the same date and time.

2 years agoAvoid timestamp info loss in mh-alias-tstamp
Paul Eggert [Mon, 6 Dec 2021 06:56:49 +0000 (22:56 -0800)]
Avoid timestamp info loss in mh-alias-tstamp

* lisp/mh-e/mh-alias.el (mh-alias-tstamp):
Don’t lose subsecond info when setting mh-alias-tstamp.

2 years agoSimplify by using format-time-string
Paul Eggert [Mon, 6 Dec 2021 06:52:26 +0000 (22:52 -0800)]
Simplify by using format-time-string

* lisp/mail/sendmail.el (mail-do-fcc):
* lisp/net/tramp.el (tramp-debug-message):
Prefer format-time-string to doing time formatting by hand.

2 years agoSimplify RFC 5322 time zone generation
Paul Eggert [Mon, 6 Dec 2021 06:43:55 +0000 (22:43 -0800)]
Simplify RFC 5322 time zone generation

* lisp/mail/feedmail.el (feedmail-rfc822-time-zone)
(feedmail-rfc822-date, feedmail-default-message-id-generator):
* lisp/mail/mail-utils.el (mail-rfc822-time-zone, mail-rfc822-date):
* lisp/timezone.el (timezone-make-arpa-date):
Simplify by using format-time-string with %z.

* lisp/mail/feedmail.el (feedmail-rfc822-time-zone):
* lisp/mail/mail-utils.el (mail-rfc822-time-zone):
Mark these should-have-been-internal functions obsolete.

2 years agoFix image load timekeeping bug
Paul Eggert [Mon, 6 Dec 2021 03:30:27 +0000 (19:30 -0800)]
Fix image load timekeeping bug

* lisp/image.el (image-animate-timeout): Fix bug that caused the
local variable time-to-load-image to be practically zero, instead
of the time it actually took to load the image.  I think
this bug was introduced in 2013-02-16T03:29:30Z!rgm@gnu.org.

2 years agoUse time-convert in with-decoded-time-value
Paul Eggert [Mon, 6 Dec 2021 03:11:59 +0000 (19:11 -0800)]
Use time-convert in with-decoded-time-value

* lisp/calendar/time-date.el (with-decoded-time-value):
Prefer time-convert to current-time on the off chance that code
will use this obsolete macro even after current-time returns pairs.

2 years agoSimplify message-make-expires
Paul Eggert [Mon, 6 Dec 2021 02:39:28 +0000 (18:39 -0800)]
Simplify message-make-expires

* lisp/gnus/message.el (message-make-expires):
Use time-add instead of doing it by hand.  This also calculates the
expiration time more accurately than the old code did.

2 years agoSimplify message-unique-id etc.
Paul Eggert [Mon, 6 Dec 2021 02:35:27 +0000 (18:35 -0800)]
Simplify message-unique-id etc.

* lisp/gnus/message.el (message-unique-id):
* lisp/net/sasl.el (sasl-unique-id-function):
Avoid unnecessary consing and reliance on internal timestamp
format by using (time-convert nil 'integer) which typically does
no consing, instead of using (current-time) and then ignoring
the subsecond parts of the generated list.

2 years agoPrefer nil to (current-time) when either will do
Paul Eggert [Mon, 6 Dec 2021 02:25:46 +0000 (18:25 -0800)]
Prefer nil to (current-time) when either will do

* lisp/emacs-lisp/timer.el (timer-event-handler, run-at-time):
* lisp/gnus/gnus-score.el (gnus-score-date):
* lisp/gnus/gnus-search.el (gnus-search-query-parse-date)
(gnus-search-imap-handle-date):
* lisp/gnus/gnus-sum.el (gnus-user-date)
(gnus-summary-create-article):
* lisp/image-dired.el (image-dired-create-thumb-1):
* lisp/image/gravatar.el (gravatar-retrieve)
(gravatar--prune-cache):
* lisp/net/dbus.el (dbus-monitor-handler):
* lisp/net/tramp-gvfs.el (tramp-gvfs-handle-set-file-times):
* lisp/net/tramp-sh.el (tramp-sh-handle-set-file-times):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-set-file-times):
* test/lisp/autorevert-tests.el (auto-revert--wait-for-revert)
(auto-revert-tests--write-file, auto-revert-test--wait-for):
* test/lisp/net/tramp-tests.el (tramp--test-print-duration):
Prefer nil to (current-time) when either will do, as this avoids
some consing.  Similarly, prefer omitting (current-time) arg
when this is equivalent.

2 years agoSimplify cedet-utest-elapsed-time
Paul Eggert [Mon, 6 Dec 2021 01:58:11 +0000 (17:58 -0800)]
Simplify cedet-utest-elapsed-time

* test/manual/cedet/cedet-utests.el (cedet-utest-elapsed-time):
Copy newer (circa-2011) implementation from elp.el, so that the
code matches its documentation again.

2 years agoUse time-equal-p to compare timestamps in tests
Paul Eggert [Mon, 6 Dec 2021 01:44:02 +0000 (17:44 -0800)]
Use time-equal-p to compare timestamps in tests

* test/lisp/calendar/time-date-tests.el (test-days-to-time)
(test-time-since): Use time-equal-p to compare timestamps,
since the default form shouldn’t matter.

2 years agoAdd time-convert tests
Paul Eggert [Mon, 6 Dec 2021 01:38:58 +0000 (17:38 -0800)]
Add time-convert tests

* test/src/timefns-tests.el (time-convert-forms): New test.

2 years agoAdded dired-create-destination-dirs-on-trailing-dirsep
NightMachinary [Tue, 9 Nov 2021 12:49:45 +0000 (16:19 +0330)]
Added dired-create-destination-dirs-on-trailing-dirsep

* lisp/dired-aux.el
(dired-create-destination-dirs-on-trailing-dirsep): New customization
option.
(dired-do-create-files): Use it.
(dired-create-destination-dirs): Mention the new option in the
docstring.

2 years agoMerge from origin/emacs-28
Stefan Kangas [Mon, 6 Dec 2021 05:47:44 +0000 (06:47 +0100)]
Merge from origin/emacs-28

e3427faf55 Fix typos and improve consistency in ERC manual
0bf10d5082 * test/Makefile.in (check-declare): Add missing --batch.
34f5656137 Document the subtleties of the 'cursor' text property

2 years agoMake the Git stash commands available in vc-dir Git buffers
Lars Ingebrigtsen [Mon, 6 Dec 2021 05:41:25 +0000 (06:41 +0100)]
Make the Git stash commands available in vc-dir Git buffers

* lisp/vc/vc-dir.el (vc-dir): Call the backend-specific minor mode
if it exists.
* lisp/vc/vc-git.el (vc-dir-git-mode-map): New map.
(vc-dir-git-mode): New minor mode.

2 years agoMake gnus-check-backend-function mode `debug-on-signal' friendly
Lars Ingebrigtsen [Mon, 6 Dec 2021 03:29:43 +0000 (04:29 +0100)]
Make gnus-check-backend-function mode `debug-on-signal' friendly

* lisp/gnus/gnus.el (gnus-check-backend-function): Allow running
with `debug-on-signal'.

2 years ago; Small doc fix in recent eieio-opt.el change
Stefan Kangas [Mon, 6 Dec 2021 02:18:34 +0000 (03:18 +0100)]
; Small doc fix in recent eieio-opt.el change

* lisp/emacs-lisp/eieio-opt.el (eieio-help-constructor): Quote
functions to make links work in help-mode.

2 years agoEIEIO: Remove redundant type info in help
Stefan Monnier [Mon, 6 Dec 2021 02:07:58 +0000 (21:07 -0500)]
EIEIO: Remove redundant type info in help

`C-h o` returned redundant info when used on EIEIO classes, listing
the same thing both for the type name and for the constructor name.

* lisp/emacs-lisp/eieio.el (help-fns-describe-function-functions):
Remove special case for defclass constructors.
* lisp/emacs-lisp/eieio-opt.el (eieio-help-constructor): Declare it obsolete.

2 years agoimage-dired: Use string-match-p in one case
Stefan Kangas [Mon, 6 Dec 2021 01:53:31 +0000 (02:53 +0100)]
image-dired: Use string-match-p in one case

* lisp/image-dired.el (image-dired-get-thumbnail-image): Use
string-match-p.

2 years agoimage-dired: Don't disable mouse dragging
Stefan Kangas [Mon, 6 Dec 2021 01:48:55 +0000 (02:48 +0100)]
image-dired: Don't disable mouse dragging

* lisp/image-dired.el (image-dired-thumbnail-mode-map): Don't
disable mouse dragging.  (Bug#52201)

2 years agoFix jittering when precision scrolling over images
Po Lu [Mon, 6 Dec 2021 01:40:38 +0000 (09:40 +0800)]
Fix jittering when precision scrolling over images

* lisp/pixel-scroll.el
(pixel-scroll-precision-initial-velocity-factor): Default to
nil.
(pixel-scroll-precision-scroll-down-page): Always set window
start.

2 years agovc-git--program-version to support Git for macOS version string
Justin Schell [Mon, 6 Dec 2021 01:27:52 +0000 (02:27 +0100)]
vc-git--program-version to support Git for macOS version string

`git version` on macOS returns e.g., "git version 2.30.1 (Apple
Git-130)" and `vc-git--program-version` currently returns "0" instead
of "2.30.1".

* lisp/vc/vc-git.el (vc-git--program-version): Ignore text after
the version number when parsing git versions (bug#52172).

Copyright-paperwork-exempt: yes

2 years agoDon't fill byte-compilation warnings in batch mode
Lars Ingebrigtsen [Mon, 6 Dec 2021 01:23:02 +0000 (02:23 +0100)]
Don't fill byte-compilation warnings in batch mode

* lisp/emacs-lisp/warnings.el (display-warning): Don't break up
byte-compilation into several lines when in batch mode, because
that makes it difficult for some tools to parse them (bug#52281).

2 years agoAudit `string-match' usage in shr.el
Lars Ingebrigtsen [Mon, 6 Dec 2021 00:16:23 +0000 (01:16 +0100)]
Audit `string-match' usage in shr.el

* lisp/net/shr.el (shr-descend):
(shr-insert):
(shr-expand-url):
(shr-image-from-data):
(shr-dom-print):
(shr-parse-style):
(shr-tag-object):
(shr-tag-img):
(shr-render-td-1): Prefer string-match-p and string-search over
string-match where possible.

2 years agoFix typos and improve consistency in ERC manual
Christer Enfors [Sun, 5 Dec 2021 21:46:58 +0000 (22:46 +0100)]
Fix typos and improve consistency in ERC manual

* doc/misc/erc.texi (Sample Session, Special Features, History): Fix
typos and improve consistency.  (Bug52318)

2 years ago; * src/image.c (webp_load): Minor stylistic fix-up to previous change
Lars Ingebrigtsen [Sun, 5 Dec 2021 22:31:36 +0000 (23:31 +0100)]
; * src/image.c (webp_load): Minor stylistic fix-up to previous change

* src/image.c (webp_load): Minor stylistic fix-up to previous change.

2 years agoAdd workaround to compilation warning in gcc 10.x in image.c
dickmao [Sun, 5 Dec 2021 22:29:51 +0000 (23:29 +0100)]
Add workaround to compilation warning in gcc 10.x in image.c

* src/image.c (webp_load): Work around a (wrong) compiler warning
in gcc 10.x (bug#52276).

2 years ago; * etc/themes/manoj-dark-theme.el: Remove not defined face info-menu-5
YugaEgo [Sun, 5 Dec 2021 21:18:18 +0000 (22:18 +0100)]
; * etc/themes/manoj-dark-theme.el: Remove not defined face info-menu-5

* etc/themes/manoj-dark-theme.el (manoj-dark): Remove reference to
face removed in 2005 (bug#52303).

2 years agoUpdate comment about `declare-function'
Lars Ingebrigtsen [Sun, 5 Dec 2021 21:12:26 +0000 (22:12 +0100)]
Update comment about `declare-function'

* lisp/subr.el (declare-function): Fix comment --
`byte-compile-declare-function' doesn't exist.

2 years ago* lisp/info.el (info-menu-star): Improve documentation
YugaEgo [Sun, 5 Dec 2021 21:05:41 +0000 (22:05 +0100)]
* lisp/info.el (info-menu-star): Improve documentation

* lisp/info.el (info-menu-star): Improve the doc string (bug#52315).

2 years agoFix wording in eieio.texi (Generics)
Lars Ingebrigtsen [Sun, 5 Dec 2021 21:03:24 +0000 (22:03 +0100)]
Fix wording in eieio.texi (Generics)

* doc/misc/eieio.texi (Generics): Fix wording in paragraph
(bug#52317).

2 years agoFix regression introduced by previous context-menu-map change
Lars Ingebrigtsen [Sun, 5 Dec 2021 20:20:03 +0000 (21:20 +0100)]
Fix regression introduced by previous context-menu-map change

* lisp/mouse.el (context-menu-map): Make the context mode work
with flyspell again  (bug#52237).

2 years agoRevert "Clarify Creating Frames documentation"
Lars Ingebrigtsen [Sun, 5 Dec 2021 20:15:00 +0000 (21:15 +0100)]
Revert "Clarify Creating Frames documentation"

This reverts commit 5d7eb2979bc7eec01cff7e7908dbbd3edb38ea0c.

The new documentation was incorrect.

2 years agoRevert "Improve before-make-frame-hook and after-make-frame-functions docs"
Lars Ingebrigtsen [Sun, 5 Dec 2021 20:14:26 +0000 (21:14 +0100)]
Revert "Improve before-make-frame-hook and after-make-frame-functions docs"

This reverts commit 7842a606b76dfabd1540da1c130728064e8f02ed.

The new documentation was incorrect.

2 years agoFix fancy-about-screen point placement
Lars Ingebrigtsen [Sun, 5 Dec 2021 19:53:47 +0000 (20:53 +0100)]
Fix fancy-about-screen point placement

* lisp/startup.el (fancy-about-screen): Make point placement more
resilient (bug#43636).

2 years ago* test/Makefile.in (check-declare): Add missing --batch.
Glenn Morris [Sun, 5 Dec 2021 18:27:18 +0000 (10:27 -0800)]
* test/Makefile.in (check-declare): Add missing --batch.

2 years agoLight copy-edits to recent additions to ERC manual
Stefan Kangas [Sun, 5 Dec 2021 18:21:05 +0000 (19:21 +0100)]
Light copy-edits to recent additions to ERC manual

* doc/misc/erc.texi (Introduction, Getting Started): Light copy-edits.

2 years agoRemove no-op calls to decode-char with 'ucs' arg
Stefan Kangas [Sun, 5 Dec 2021 18:09:48 +0000 (19:09 +0100)]
Remove no-op calls to decode-char with 'ucs' arg

* lisp/gnus/mm-util.el (mm-ucs-to-char):
* lisp/language/hanja-util.el (hangul-to-hanja-char):
* lisp/leim/quail/hangul.el (hangul3-input-method-internal)
(hangul390-input-method-internal):
* lisp/nxml/rng-cmpct.el (rng-c-process-escapes):
* lisp/nxml/xsd-regexp.el (xsdre-compile-single-char)
(xsdre-range-list-to-char-alternative):
* lisp/xml.el (xml-parse-string, xml--entity-replacement-text)
(xml-substitute-special): Remove calls to decode-char where first
argument is 'ucs'; that is now a no-op.  Discussed in Bug#52263.

* lisp/nxml/xmltok.el (xmltok-unicode-to-char): Make into obsolete
function alias for 'identity'.  Update single caller.

2 years agoUse gnus-error to report mail-source failures
Eric Abrahamsen [Sat, 4 Dec 2021 20:37:14 +0000 (12:37 -0800)]
Use gnus-error to report mail-source failures

* lisp/gnus/mail-source.el (mail-source-fetch): Instead of querying
the user on mail sources errors -- in effect asking "do you want to
continue, or halt the process?" -- log the error with `gnus-error',
severity 5. The query didn't provide any meaningful control; error
reporting is all that's needed.
(mail-source-ignore-errors): Obsolete this option; users can see the
error or not by configuring `gnus-verbose'.
* doc/misc/gnus.texi (Mail Source Customization): Remove mention of
the above option from the manual.

2 years ago; Another protection from out-of-bounds access to it->stack[].
Eli Zaretskii [Sun, 5 Dec 2021 16:03:40 +0000 (18:03 +0200)]
; Another protection from out-of-bounds access to it->stack[].

2 years agoFix out-of-bounds access in xdisp.c
Eli Zaretskii [Sun, 5 Dec 2021 15:34:05 +0000 (17:34 +0200)]
Fix out-of-bounds access in xdisp.c

* src/xdisp.c (produce_stretch_glyph): Avoid indexing it->stack
with a negative index.  Reported by Po Lu <luangruo@yahoo.com>.

2 years agoDocument the subtleties of the 'cursor' text property
Eli Zaretskii [Sun, 5 Dec 2021 14:38:49 +0000 (16:38 +0200)]
Document the subtleties of the 'cursor' text property

* doc/lispref/text.texi (Special Properties): Update the
documentation of the 'cursor' property per bug#8627.

2 years agoInterpolate large pixel scrolls
Po Lu [Sun, 5 Dec 2021 13:34:54 +0000 (21:34 +0800)]
Interpolate large pixel scrolls

* lisp/pixel-scroll.el
(pixel-scroll-precision-large-scroll-height): New user option.
(pixel-scroll-precision-interpolate): New function.
(pixel-scroll-precision): Interpolate scrolls under some
circumstances.

2 years agoSilence byte-compiler in generator-tests.el
Stefan Kangas [Sun, 5 Dec 2021 11:54:53 +0000 (12:54 +0100)]
Silence byte-compiler in generator-tests.el

* test/lisp/emacs-lisp/generator-tests.el (cps-let*-shadow-empty)
(cps-let-shadow-empty, cps-let*-parallel): Silence byte-compiler.

2 years agoSilence warnings about testing obsolete functions and macros
Stefan Kangas [Sun, 5 Dec 2021 11:49:52 +0000 (12:49 +0100)]
Silence warnings about testing obsolete functions and macros

* test/lisp/emacs-lisp/cl-generic-tests.el:
* test/lisp/emacs-lisp/edebug-tests.el:
* test/lisp/emacs-lisp/eieio-tests/eieio-test-methodinvoke.el:
* test/lisp/emacs-lisp/eieio-tests/eieio-tests.el: Silence
byte-compiler warnings about testing obsolete functions and macros.

2 years agoRemove hacks for broken `with-suppressed-warnings'
Stefan Kangas [Sun, 5 Dec 2021 11:08:27 +0000 (12:08 +0100)]
Remove hacks for broken `with-suppressed-warnings'

* test/lisp/obsolete/cl-tests.el (labels-function-quoting):
* test/lisp/tar-mode-tests.el (tar-mode-test-tar-grind-file-mode):
Remove hack for broken `with-suppressed-warnings'.

2 years ago; * doc/misc/eshell.texi (Built-ins): Improve markup, fix typos.
Eli Zaretskii [Sun, 5 Dec 2021 10:12:00 +0000 (12:12 +0200)]
; * doc/misc/eshell.texi (Built-ins): Improve markup, fix typos.

2 years agoMerge from origin/emacs-28
Stefan Kangas [Sun, 5 Dec 2021 05:30:35 +0000 (06:30 +0100)]
Merge from origin/emacs-28

c086358574 Update to Org 9.5.1-15-gdb4805
fef3e60061 * lisp/emacs-lisp/edebug.el (edebug-eval-defun): Minor doc...
a1e30e4106 ; Fix most remaining AUTHORS warnings
f3e6a432c5 ; * doc/misc/efaq.texi (New in Emacs 28): Add more news.
00236cc802 Fix the enumeration values returned by 'try_scrolling'

2 years agoRemove hack from seq-tests.el for broken `with-suppressed-warnings'
Lars Ingebrigtsen [Sun, 5 Dec 2021 03:20:55 +0000 (04:20 +0100)]
Remove hack from seq-tests.el for broken `with-suppressed-warnings'

* test/lisp/emacs-lisp/seq-tests.el: `with-suppressed-warnings'
now works better in erf-deftests, so remove hack that works around
it (bug#36568).

2 years agoImprove before-make-frame-hook and after-make-frame-functions docs
Lars Ingebrigtsen [Sun, 5 Dec 2021 03:12:55 +0000 (04:12 +0100)]
Improve before-make-frame-hook and after-make-frame-functions docs

* lisp/frame.el (before-make-frame-hook):
(after-make-frame-functions): Note when the functions are run.

2 years agoClarify Creating Frames documentation
Lars Ingebrigtsen [Sun, 5 Dec 2021 03:09:33 +0000 (04:09 +0100)]
Clarify Creating Frames documentation

* doc/lispref/frames.texi (Creating Frames): Remove misleading
explanation -- even if the hooks are set, they won't be run
(bug#38143).

2 years agoUpdate to Org 9.5.1-15-gdb4805
Kyle Meyer [Sun, 5 Dec 2021 02:27:59 +0000 (21:27 -0500)]
Update to Org 9.5.1-15-gdb4805

2 years agoFix tty mouse wheel on window systems other than X
Po Lu [Sun, 5 Dec 2021 01:59:45 +0000 (09:59 +0800)]
Fix tty mouse wheel on window systems other than X

* lisp/mwheel.el (mouse-wheel-down-alternate-event)
(mouse-wheel-up-alternate-event)
(mouse-wheel-left-alternate-event)
(mouse-wheel-right-alternate-event): Set appropriately for
non-X systems.

2 years agoMake help--describe-command more robust
Lars Ingebrigtsen [Sun, 5 Dec 2021 01:57:43 +0000 (02:57 +0100)]
Make help--describe-command more robust

* lisp/help.el (help--describe-command): `help-function' buttons
are defined in help-mode.el, so it might not exist yet when
calling `documentation' directly (bug#52291).

2 years agoAdd IRC introduction to the ERC manual
Christer Enfors [Sun, 5 Dec 2021 01:44:35 +0000 (02:44 +0100)]
Add IRC introduction to the ERC manual

* doc/misc/erc.texi (Getting Started): Mention libera.char (bug#52287).
(Introduction): Explain what IRC is.

Copyright-paperwork-exempt: yes

2 years agoMake pixel scrolling through images less jumpy
Po Lu [Sun, 5 Dec 2021 01:44:06 +0000 (09:44 +0800)]
Make pixel scrolling through images less jumpy

* lisp/pixel-scroll.el
(pixel-scroll-precision-scroll-down-page): Improve detection of
situations where vscroll must directly be set.

2 years agoUpdate the Info documentation of Eshell's built-in commands
Earl Hyatt [Sun, 5 Dec 2021 01:41:39 +0000 (02:41 +0100)]
Update the Info documentation of Eshell's built-in commands

* doc/misc/eshell.texi (Built-in commands): Add the remaining
built-in Eshell commands to the list of built-ins.  Expand some of
the descriptions and mention user options affecting command
behavior.  Sort these commands in alphabetical order (bug#52289).

2 years agoMake package-dir-info more resilient
Lars Ingebrigtsen [Sun, 5 Dec 2021 01:13:00 +0000 (02:13 +0100)]
Make package-dir-info more resilient

* lisp/emacs-lisp/package.el (package-dir-info): Check that the
file exists before using it (bug#41489).

2 years agoTweak fancy-about-text
Lars Ingebrigtsen [Sun, 5 Dec 2021 00:53:31 +0000 (01:53 +0100)]
Tweak fancy-about-text

* lisp/startup.el (fancy-about-text): Mention that Emacs is an
editor, because people don't know that (bug#43636).

2 years agoFill Emacs version on about screen
Lars Ingebrigtsen [Sun, 5 Dec 2021 00:51:12 +0000 (01:51 +0100)]
Fill Emacs version on about screen

* lisp/startup.el (fancy-about-text): Fill the Emacs version,
since it's too long these days.

2 years agoFurther gnus-inews-insert-gcc fixes
Lars Ingebrigtsen [Sat, 4 Dec 2021 22:47:17 +0000 (23:47 +0100)]
Further gnus-inews-insert-gcc fixes

* lisp/gnus/gnus-msg.el (gnus-inews-insert-gcc): Use a single
comma to separate groups, since that's what the splitter expects
(bug#52274).

2 years agoAvoid having gud bug out if `C-x C-a' has been bound
Lars Ingebrigtsen [Sat, 4 Dec 2021 20:44:58 +0000 (21:44 +0100)]
Avoid having gud bug out if `C-x C-a' has been bound

* lisp/progmodes/gdb-mi.el (gud-global-map): Use gud-global-map.
* lisp/progmodes/gud.el (gud-global-map): Define a map instead of
assuming that `C-x C-a' is undefined (bug#6035).
(gud-def): Use the map.

2 years agoDon't swallow gnus-search errors when creating nnselect groups
Eric Abrahamsen [Sat, 4 Dec 2021 21:41:23 +0000 (13:41 -0800)]
Don't swallow gnus-search errors when creating nnselect groups

* lisp/gnus/gnus-search.el (gnus-search-run-query): Modify
condition-case to re-signal any gnus-search related errors; the user
should see them.
(gnus-search-error): Define a new parent error for all gnus-search
errors.

2 years ago* lisp/isearch.el (isearch-delete-char): Reopen hidden overlays (bug#52248).
Juri Linkov [Sat, 4 Dec 2021 20:04:37 +0000 (22:04 +0200)]
* lisp/isearch.el (isearch-delete-char): Reopen hidden overlays (bug#52248).

(isearch-filter-visible): Move text-property-not-all higher
to not call isearch-range-invisible on inhibit-isearch text.
Remove min/max since arguments are always in the right order.

2 years agoFix pixel-fill--fill-line infloop for certain unbreakable lines
Lars Ingebrigtsen [Sat, 4 Dec 2021 19:38:22 +0000 (20:38 +0100)]
Fix pixel-fill--fill-line infloop for certain unbreakable lines

* lisp/textmodes/pixel-fill.el (pixel-fill--fill-line): Fix
infloops for certain line widths (bug#52271).

2 years agoAdd a comma between groups in gnus-inews-insert-gcc
Lars Ingebrigtsen [Sat, 4 Dec 2021 19:22:44 +0000 (20:22 +0100)]
Add a comma between groups in gnus-inews-insert-gcc

* lisp/gnus/gnus-msg.el (gnus-inews-insert-gcc): Insert a comma
between group names to get more mail-like syntax (bug#52274).

2 years agoImprove bookmark-maybe-historicize-string doc string
Lars Ingebrigtsen [Sat, 4 Dec 2021 04:56:32 +0000 (05:56 +0100)]
Improve bookmark-maybe-historicize-string doc string

* lisp/bookmark.el (bookmark-maybe-historicize-string): Clarify
that this isn't about menus (but calls from bmenu) (bug#12504).

2 years agoAdd ".crate" to Tramp archive file suffixes.
Michael Albinus [Sat, 4 Dec 2021 19:02:07 +0000 (20:02 +0100)]
Add ".crate" to Tramp archive file suffixes.

* doc/misc/tramp.texi (Archive file names):
* lisp/net/tramp-archive.el (tramp-archive-suffixes): Add ".crate".

2 years agoeieio-core.el: Allow assignment to cl-structs through `slot-value`
Stefan Monnier [Sat, 4 Dec 2021 18:47:19 +0000 (13:47 -0500)]
eieio-core.el: Allow assignment to cl-structs through `slot-value`

* lisp/emacs-lisp/eieio-core.el (eieio--validate-slot-value):
Obey the `:read-only` property of the slot.
(eieio-oset): Allow use on cl-structs as well.
(eieio-read-only): New error.

* test/lisp/emacs-lisp/eieio-tests/eieio-tests.el (eieio-test--struct):
Make the last field read-only.
(eieio-test-defstruct-slot-value): Test that cl-struct slots can be
assigned via `slot-value`.

2 years agoFix (date-to-time "2021-12-04")
Paul Eggert [Sat, 4 Dec 2021 18:33:32 +0000 (10:33 -0800)]
Fix (date-to-time "2021-12-04")

This should complete the fix for Bug#52209.
* lisp/calendar/time-date.el (date-to-time): Apply
decoded-time-set-defaults only to the output of (parse-time-string
date), and only when the output has a year (to avoid confusion
when dates lack years).  There is no point applying it after
timezone-make-date-arpa-standard since the latter fills in all the
blanks.  And the former code mistakenly called encode-time on an
already-encoded time.  This goes back to the code a couple of days
ago, except with changed behavior (to fix Bug#52209) only when
timezone-make-date-arpa-standard is not called.
* test/lisp/calendar/time-date-tests.el (test-date-to-time)
(test-days-between): New tests.

2 years agoFurther changes on directory summary line in Tramp
Michael Albinus [Sat, 4 Dec 2021 17:43:45 +0000 (18:43 +0100)]
Further changes on directory summary line in Tramp

* lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-system-info):
Do not assume 0 in case of missing information.

* lisp/net/tramp-sh.el (tramp-sh-handle-insert-directory):
* lisp/net/tramp-smb.el (tramp-smb-handle-insert-directory):
Revert previous change, it doesn't fly.

2 years agoSilence byte-compiler in some tests
Stefan Kangas [Sat, 4 Dec 2021 14:49:42 +0000 (15:49 +0100)]
Silence byte-compiler in some tests

* test/lisp/dired-tests.el:
* test/lisp/emacs-lisp/cl-macs-tests.el:
* test/lisp/emacs-lisp/derived-tests.el:
* test/lisp/emacs-lisp/eieio-tests/eieio-tests.el:
* test/lisp/emacs-lisp/generator-tests.el:
* test/lisp/emacs-lisp/lisp-tests.el:
* test/lisp/emacs-lisp/seq-tests.el (test-seq-let)
(test-seq-setq):
* test/lisp/emacs-lisp/subr-x-tests.el (subr-x-test-if-let*-false)
(subr-x-test-if-let*-and-laziness-is-preserved)
(subr-x-test-when-let*-false)
(subr-x-test-when-let*-and-laziness-is-preserved):
* test/lisp/emacs-lisp/timer-tests.el
(timer-tests-debug-timer-check):
* test/lisp/format-spec-tests.el (format-spec-do-flags-truncate)
(format-spec-do-flags-pad):
* test/lisp/ls-lisp-tests.el (ls-lisp-test-bug27762):
* test/lisp/obsolete/cl-tests.el (labels-function-quoting):
* test/lisp/progmodes/elisp-mode-tests.el:
* test/lisp/replace-tests.el (replace-regexp-bug45973):
* test/lisp/ses-tests.el:
* test/lisp/subr-tests.el:
* test/lisp/tar-mode-tests.el (tar-mode-test-tar-grind-file-mode):
* test/src/data-tests.el (data-tests--set-default-per-buffer):
* test/src/search-tests.el
(test-replace-match-modification-hooks): Silence byte-compiler.

2 years ago* lisp/emacs-lisp/edebug.el (edebug-eval-defun): Minor doc fix.
Stefan Kangas [Sat, 4 Dec 2021 12:23:35 +0000 (13:23 +0100)]
* lisp/emacs-lisp/edebug.el (edebug-eval-defun): Minor doc fix.

2 years agoFix the MinGW build broken by recent changes in image.c
Eli Zaretskii [Sat, 4 Dec 2021 11:42:25 +0000 (13:42 +0200)]
Fix the MinGW build broken by recent changes in image.c

* src/image.c (rsvg_handle_get_intrinsic_size_in_pixels)
[WINDOWSNT]: Fix prototype.  (Bug#44655)

2 years ago; Fix removal of obsolete newsticker function
Stefan Kangas [Sat, 4 Dec 2021 11:22:58 +0000 (12:22 +0100)]
; Fix removal of obsolete newsticker function

* lisp/net/newst-plainview.el (newsticker-close-buffer)
(newsticker-mark-all-items-of-feed-as-read)
(newsticker-mark-all-items-as-read): Use 'newsticker--cache-save'
instead of removed obsolete function 'newsticker--cache-update'.
* etc/NEWS: Don't mention obsolete internal variables.

2 years ago; Fix most remaining AUTHORS warnings
Stefan Kangas [Sat, 4 Dec 2021 10:48:50 +0000 (11:48 +0100)]
; Fix most remaining AUTHORS warnings

* admin/authors.el (authors-ignored-files)
(authors-renamed-files-alist): Further updates for Emacs 28.
* ChangeLog.3: Further fixes.
* etc/AUTHORS: Update accordingly.

2 years agoMake use of Trash on macOS (bug#21340)
Alan Third [Fri, 3 Dec 2021 22:17:45 +0000 (22:17 +0000)]
Make use of Trash on macOS (bug#21340)

* src/nsfns.m (Fsystem_move_file_to_trash): New function.

2 years ago; Silence byte-compiler warning in test
Stefan Kangas [Sat, 4 Dec 2021 10:33:43 +0000 (11:33 +0100)]
; Silence byte-compiler warning in test

* test/lisp/dired-aux-tests.el (dired-test-bug28834): Silence
byte-compiler.

2 years ago; * doc/misc/efaq.texi (New in Emacs 28): Add more news.
Eli Zaretskii [Sat, 4 Dec 2021 09:11:08 +0000 (11:11 +0200)]
; * doc/misc/efaq.texi (New in Emacs 28): Add more news.

2 years agoYet another place inside redisplay_window to prevent quitting
Eli Zaretskii [Sat, 4 Dec 2021 08:37:40 +0000 (10:37 +0200)]
Yet another place inside redisplay_window to prevent quitting

* src/xdisp.c (handle_single_display_spec): Inhibit quitting
around the call to 'lookup_derived_face' (which can QUIT).
(Bug#44448)