]> git.eshelyaron.com Git - emacs.git/log
emacs.git
3 years agoAllow customizing precision scroll interpolation
Po Lu [Wed, 8 Dec 2021 05:02:16 +0000 (13:02 +0800)]
Allow customizing precision scroll interpolation

* lisp/pixel-scroll.el
(pixel-scroll-precision-interpolation-total-time)
(pixel-scroll-precision-interpolation-factor): New user
options.
(pixel-scroll-precision-interpolate): Use these new options.

(pixel-scroll-precision-mode): Set
`make-cursor-line-fully-visible' to nil.

3 years agoSend scroll stop events to xwidgets correctly
Po Lu [Wed, 8 Dec 2021 02:04:31 +0000 (10:04 +0800)]
Send scroll stop events to xwidgets correctly

* src/xterm.c (handle_one_xevent): Record stop events manually.

* src/xwidget.h (xwidget_scroll):
* src/xwidget.c (xwidget_scroll): New parameter `stop_p'.

3 years agoConvert etc-authors-mode-map to defvar-keymap
Stefan Kangas [Wed, 8 Dec 2021 00:55:50 +0000 (01:55 +0100)]
Convert etc-authors-mode-map to defvar-keymap

* lisp/textmodes/etc-authors-mode.el (etc-authors-mode-map):
Convert to defvar-keymap.

3 years agoPacify svg_load_image compiler warning
Lars Ingebrigtsen [Wed, 8 Dec 2021 00:52:39 +0000 (01:52 +0100)]
Pacify svg_load_image compiler warning

* src/image.c (svg_load_image): Fix compiler warning from gcc
(Debian 11.2.0-10).

3 years ago; * lisp/textmodes/texinfo.el: Remove stale comment.
Stefan Kangas [Wed, 8 Dec 2021 00:12:10 +0000 (01:12 +0100)]
; * lisp/textmodes/texinfo.el: Remove stale comment.

The referenced variable was removed two decades ago.

3 years agoCheck decoding results in webp_load before using it
Lars Ingebrigtsen [Wed, 8 Dec 2021 00:38:25 +0000 (01:38 +0100)]
Check decoding results in webp_load before using it

* src/image.c (webp_load): Check whether we were able to decode
the image before using it.

3 years agoimage-dired: Navigate from image display buffer
Stefan Kangas [Tue, 7 Dec 2021 22:28:44 +0000 (23:28 +0100)]
image-dired: Navigate from image display buffer

* lisp/image-dired.el
(image-dired-mark-thumb-original-file)
(image-dired-unmark-thumb-original-file)
(image-dired-flag-thumb-original-file)
(image-dired-toggle-mark-thumb-original-file)
(image-dired-unmark-all-marks)
(image-dired-display-next-thumbnail-original)
(image-dired-display-previous-thumbnail-original): Make commands
usable from image-dired-display-image-mode.
(image-dired-display-image-mode-map): Bind above commands.
(image-dired--with-thumbnail-buffer): New macro.

3 years agoImprove yanking in the middle of comint process output
Miha Rihtaršič [Tue, 7 Dec 2021 20:16:23 +0000 (21:16 +0100)]
Improve yanking in the middle of comint process output

* lisp/comint.el
(comint--unmark-string-as-output): New function to remove unwanted
properties from text yanked from comint buffers.

(comint-mode): Use it as a 'filter-buffer-substring-function'.

(comint-output-filter): Set 'insert-in-front-hooks' text property on
process output such that text yanked by the user in the middle of
process output is marked as process output (Bug#3735).

(comint--mark-as-output): New function.
(comint--mark-yanked-as-output): New function.

3 years agobrowse-url: Refactor code to find executable
Stefan Kangas [Tue, 7 Dec 2021 18:46:21 +0000 (19:46 +0100)]
browse-url: Refactor code to find executable

* lisp/net/browse-url.el (browse-url--find-executable): Extract from...
(browse-url-firefox-program, browse-url-chrome-program)
(browse-url-chromium-program): ...here.

3 years agobrowse-url: Remove support for Galeon
Stefan Kangas [Tue, 7 Dec 2021 18:31:21 +0000 (19:31 +0100)]
browse-url: Remove support for Galeon

* lisp/net/browse-url.el (browse-url-galeon-program)
(browse-url-galeon-arguments)
(browse-url-galeon-startup-arguments)
(browse-url-galeon-new-window-is-tab, browse-url-galeon)
(browse-url-galeon-sentinel): Delete, thus removing support for the long
defunct Galeon web browser.
* etc/NEWS: Announce its removal.

3 years ago* etc/tutorials/TUTORIAL.he: Add section about package management.
Eli Zaretskii [Tue, 7 Dec 2021 18:17:11 +0000 (20:17 +0200)]
* etc/tutorials/TUTORIAL.he: Add section about package management.

3 years agoImprove before-make-frame-hook and after-make-frame-functions docs.
Eli Zaretskii [Tue, 7 Dec 2021 17:57:14 +0000 (19:57 +0200)]
Improve before-make-frame-hook and after-make-frame-functions docs.

* lisp/frame.el (before-make-frame-hook)
(after-make-frame-functions):
* doc/lispref/frames.texi (Creating Frames): Mention that these
functions will be run for the initial frame only if added to the
hook in early-init file.  (Bug#38143)

3 years agobrowse-url: Remove support for Netscape
Stefan Kangas [Tue, 7 Dec 2021 17:27:41 +0000 (18:27 +0100)]
browse-url: Remove support for Netscape

* lisp/net/browse-url.el (browse-url-netscape-program)
(browse-url-netscape-arguments)
(browse-url-netscape-startup-arguments)
(browse-url-netscape-new-window-is-tab)
(browse-url-netscape-version, browse-url-netscape)
(browse-url-netscape-sentinel, browse-url-netscape-reload)
(browse-url-netscape-send): Delete, thus removing support for the long
defunct Netscape web browser.
* etc/NEWS: Announce its removal.

3 years ago* doc/misc/eshell.texi (Built-ins): Fix xref.
Glenn Morris [Tue, 7 Dec 2021 16:58:45 +0000 (08:58 -0800)]
* doc/misc/eshell.texi (Built-ins): Fix xref.

3 years agoMake a more robust check in Tramp using scripts
Michael Albinus [Tue, 7 Dec 2021 15:20:13 +0000 (16:20 +0100)]
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.

3 years agoAdd the new packages section to the Italian tutorial
Lele Gaifax [Tue, 7 Dec 2021 06:42:04 +0000 (07:42 +0100)]
Add the new packages section to the Italian tutorial

* etc/tutorials/TUTORIAL.it (INSTALLAZIONE DI ULTERIORI PACCHETTI):
Translate from recently added INSTALLING PACKAGES section in the English
version.  (Bug#52345)
(CONCLUSIONI): Reword paragraph, to better convey the original intent.

3 years agoRemove some unnecessary references to Emacs 22
Stefan Kangas [Tue, 7 Dec 2021 13:34:29 +0000 (14:34 +0100)]
Remove some unnecessary references to Emacs 22

* lisp/cedet/semantic/fw.el:
* lisp/emacs-lisp/bytecomp.el (byte-compile-from-buffer):
* lisp/emulation/viper-util.el (viper-frame-value):
* lisp/mail/rmail.el (rmail-delete-headers):
* lisp/mh-e/mh-e.el (mh-inc-spool-list): Remove some unnecessary
references to Emacs 22.

3 years ago* etc/tutorials/TUTORIAL: Say that there is usually a delete key.
Stefan Kangas [Tue, 7 Dec 2021 12:28:39 +0000 (13:28 +0100)]
* etc/tutorials/TUTORIAL: Say that there is usually a delete key.

3 years agoimage-dired: Fix behavior of slideshow command
Stefan Kangas [Tue, 7 Dec 2021 11:59:18 +0000 (12:59 +0100)]
image-dired: Fix behavior of slideshow command

* lisp/image-dired.el (image-dired-slideshow-start): Fix behavior
to match documentation.  Minor simplification of docstring.

3 years agoRemove obsolete values from image-mode-auto-resize
Stefan Kangas [Tue, 7 Dec 2021 11:31:21 +0000 (12:31 +0100)]
Remove obsolete values from image-mode-auto-resize

* lisp/image-mode.el (image-auto-resize): Remove obsolete options
fit-height and fit-width.
(image-transform-resize): Document that fit-height and fit-width
are obsolete.

(image-auto-resize-max-scale-percent): Fix defcustom const :tag.

3 years ago* lisp/view.el (view-mode-map): Convert to defvar-keymap.
Stefan Kangas [Tue, 7 Dec 2021 11:03:45 +0000 (12:03 +0100)]
* lisp/view.el (view-mode-map): Convert to defvar-keymap.

3 years agoRemove XEmacs compat code from strokes.el
Stefan Kangas [Tue, 7 Dec 2021 10:39:46 +0000 (11:39 +0100)]
Remove XEmacs compat code from strokes.el

* lisp/strokes.el (strokes-mode): Remove XEmacs compat code;
select-frame-hook does not exist in Emacs.

3 years agoAdd vc-git-stash-pop to vc-dir-git-mode
Lars Ingebrigtsen [Tue, 7 Dec 2021 07:06:12 +0000 (08:06 +0100)]
Add vc-git-stash-pop to vc-dir-git-mode

* lisp/vc/vc-git.el (vc-dir-git-mode-map): Add vc-git-stash-pop
(bug#52158).

3 years agoMerge from origin/emacs-28
Stefan Kangas [Tue, 7 Dec 2021 05:47:32 +0000 (06:47 +0100)]
Merge from origin/emacs-28

da23e607d3 Select the right buffer for event in context-menu function...

3 years agoCancel xwidget progress timer when buffer is killed
Po Lu [Tue, 7 Dec 2021 05:44:52 +0000 (13:44 +0800)]
Cancel xwidget progress timer when buffer is killed

* lisp/xwidget.el (xwidget-webkit-buffer-kill): New function.
(xwidget-webkit-mode): Add `xwidget-webkit-buffer-kill' to
`kill-buffer-hook'.  (bug#52344)

3 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.

3 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.

3 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.

3 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.

3 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).

3 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.

3 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

3 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...

3 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.

3 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.

3 years agoSelect the right buffer for event in context-menu functions (bug#9923)
Juri Linkov [Mon, 6 Dec 2021 17:24:09 +0000 (19:24 +0200)]
Select the right buffer for event in context-menu functions (bug#9923)

* lisp/mouse.el (context-menu-region):
* lisp/progmodes/prog-mode.el (prog-context-menu):
Switch to the buffer displayed by the window of the event
before using syntax-ppss, char-after.

3 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)

3 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.

3 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.

3 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

3 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.

3 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.

3 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.

3 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

3 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.

3 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.

3 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.

3 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.

3 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.

3 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.

3 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.

3 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.

3 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.

3 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.

3 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.

3 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.

3 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.

3 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.

3 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.

3 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

3 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.

3 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'.

3 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.

3 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.

3 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.

3 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)

3 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.

3 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

3 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).

3 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.

3 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)

3 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.

3 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).

3 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).

3 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.

3 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).

3 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).

3 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).

3 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.

3 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.

3 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).

3 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.

3 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.

3 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.

3 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.

3 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[].

3 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>.

3 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.

3 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.

3 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.

3 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.

3 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'.

3 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.

3 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'

3 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).

3 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.

3 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).

3 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

3 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.

3 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).