1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-11 02:10:35 -08:00
Commit graph

155589 commits

Author SHA1 Message Date
Stefan Kangas
0f30227f97 ; * lisp/net/browse-url.el (browse-url-epiphany): Fix typo. 2021-12-07 18:38:29 +01:00
Stefan Kangas
d34009db66 Remove dead link from newsticker
* lisp/net/newst-backend.el (newsticker--parse-rss-0.91):
* lisp/net/newsticker.el: Remove dead link.
2021-12-07 18:37:18 +01:00
Stefan Kangas
77a30e1e88 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.
2021-12-07 18:32:57 +01:00
Glenn Morris
691470ec4e * doc/misc/eshell.texi (Built-ins): Fix xref. 2021-12-07 08:58:45 -08:00
Michael Albinus
1d0a60113f 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.
2021-12-07 16:20:13 +01:00
Lele Gaifax
6e50d86ca2 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.
2021-12-07 14:57:51 +01:00
Stefan Kangas
c94b81bfc1 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.
2021-12-07 14:44:34 +01:00
Stefan Kangas
db56e32d12 * etc/tutorials/TUTORIAL: Say that there is usually a delete key. 2021-12-07 13:28:39 +01:00
Stefan Kangas
00e6aeacf2 image-dired: Fix behavior of slideshow command
* lisp/image-dired.el (image-dired-slideshow-start): Fix behavior
to match documentation.  Minor simplification of docstring.
2021-12-07 13:00:24 +01:00
Stefan Kangas
8aa2aac500 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.
2021-12-07 12:34:28 +01:00
Stefan Kangas
092c03d2c3 * lisp/view.el (view-mode-map): Convert to defvar-keymap. 2021-12-07 12:10:51 +01:00
Stefan Kangas
3939cb2a9c Remove XEmacs compat code from strokes.el
* lisp/strokes.el (strokes-mode): Remove XEmacs compat code;
select-frame-hook does not exist in Emacs.
2021-12-07 11:39:46 +01:00
Lars Ingebrigtsen
9a1e87ba44 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).
2021-12-07 08:06:16 +01:00
Stefan Kangas
abf06a46b4 Merge from origin/emacs-28
da23e607d3 Select the right buffer for event in context-menu function...
2021-12-07 06:47:32 +01:00
Po Lu
bdcf3c3504 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)
2021-12-07 13:44:52 +08:00
Po Lu
d9b3f665bc Merge remote-tracking branch 'origin/master' into feature/pgtk 2021-12-07 09:32:13 +08:00
Eric Abrahamsen
e17aea73a5 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.
2021-12-06 13:45:27 -08:00
Stefan Kangas
bed5af1ea3 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.
2021-12-06 22:19:58 +01:00
Stefan Kangas
e637afce45 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.
2021-12-06 22:19:58 +01:00
Stefan Kangas
79335aa185 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.
2021-12-06 22:19:40 +01:00
Lars Ingebrigtsen
5a9965f0c7 Fix previous shr-parse-style change
* lisp/net/shr.el (shr-parse-style): Fix previous clean-up here
(which wasn't well thought through).
2021-12-06 21:43:43 +01:00
Tassilo Horn
4eb749a173 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.
2021-12-06 21:24:56 +01:00
Eli Zaretskii
dd2a994f0c Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs 2021-12-06 20:49:43 +02:00
Eli Zaretskii
cdb4bc0a81 Revert "Avoid small parasitic button on mode line"
This reverts commit c9e901f4a6.

Turns out without that "ghost" button min-width doesn't work
on the mode line at all...
2021-12-06 20:47:43 +02:00
Michael Albinus
e135f15aac 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.
2021-12-06 19:36:15 +01:00
Eli Zaretskii
aa63064fec 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.
2021-12-06 19:36:07 +02:00
Juri Linkov
da23e607d3 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.
2021-12-06 19:24:09 +02:00
Eli Zaretskii
c9e901f4a6 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)
2021-12-06 19:10:33 +02:00
Yuuki Harano
0b6a632f99 Merge branch 'feature/pgtk' of git.sv.gnu.org:/srv/git/emacs into feature/pgtk 2021-12-07 00:46:39 +09:00
Yuuki Harano
f68a0314e3 * src/pgtkterm.c (x_set_parent_frame): Fix coding style 2021-12-07 00:35:54 +09:00
Yuuki Harano
42d4ffad5a Fix SEGV crash by unref css provider too much
I Got css provider from F, and was going to remove it from style
context.  But between them, unhighlight was called when
gtk_container_remove was called, and the css provider was already
freed, so I can't use the css provider to remove it from style
context.

As a fix, I call gtk_container_remove after remove it.
Also, I free a css provider set by unhighlight.

* src/pgtkterm.c (x_set_parent_frame):
2021-12-07 00:20:30 +09:00
Stefan Kangas
a12de96455 ; * etc/tutorials/TUTORIAL.sv: Re-adjust to latest change in TUTORIAL. 2021-12-06 16:11:46 +01:00
Eli Zaretskii
2bd9d7bd0a ; * etc/tutorials/TUTORIAL: Minor wording change in recent addition. 2021-12-06 16:56:30 +02:00
Stefan Monnier
4d93859c87 Merge remote-tracking branch 'origin/emacs-28' into trunk 2021-12-06 09:44:18 -05:00
Stefan Monnier
d529207b0e 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.
2021-12-06 09:43:13 -05:00
Stefan Kangas
283db0d703 * etc/tutorials/TUTORIAL.sv: Adjust to latest change in TUTORIAL. 2021-12-06 15:09:51 +01:00
Stefan Kangas
3384efb903 ; * etc/tutorials/TUTORIAL: Fix typo in last commit. 2021-12-06 15:08:09 +01:00
Daniel Fleischer
63c8a6066a 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
2021-12-06 14:59:35 +01:00
Stefan Kangas
2e8d1ad0f2 image.c: Remove some dead code
* src/image.c (gui_put_x_image): Remove dead code, commented out since
2004.
2021-12-06 12:06:35 +01:00
Po Lu
9eba6b966e Merge remote-tracking branch 'origin/master' into feature/pgtk 2021-12-06 17:24:28 +08:00
Paul Eggert
c1145c31ad Update org-compat doc string
* lisp/org/org-compat.el (file-attribute-modification-time):
Update doc string to match that of builtin Emacs.
2021-12-05 23:24:10 -08:00
Paul Eggert
a21b8c5d7d 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.
2021-12-05 23:24:10 -08:00
Paul Eggert
19932c3203 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.
2021-12-05 23:24:10 -08:00
Paul Eggert
dbef2145c7 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.
2021-12-05 23:24:09 -08:00
Paul Eggert
15f20c0bd0 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.
2021-12-05 23:24:09 -08:00
Paul Eggert
186637314d 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.
2021-12-05 23:24:09 -08:00
Paul Eggert
2bda02943b 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.
2021-12-05 23:24:09 -08:00
Paul Eggert
084f440571 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.
2021-12-05 23:24:09 -08:00
Paul Eggert
f4d7ca73e3 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.
2021-12-05 23:24:09 -08:00
Paul Eggert
524c42fa0e 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.
2021-12-05 23:24:08 -08:00