Paul Eggert [Sun, 2 Oct 2022 23:49:20 +0000 (16:49 -0700)]
Port TZ settings to POSIX
* lisp/Makefile.in (.el.elc):
* lisp/net/tramp-sh.el (tramp-sh-handle-set-file-times):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-set-file-times):
Use the POSIX standard TZ=UTC0 rather than the GNU extension
TZ=UTC to set the time zone to UTC.
Stefan Kangas [Sun, 2 Oct 2022 22:13:56 +0000 (00:13 +0200)]
Actually delete markers in dired-do-flagged-delete
* lisp/dired.el (dired-do-flagged-delete): Actually delete
markers. (Bug#58256)
Stefan Kangas [Sun, 2 Oct 2022 22:03:34 +0000 (00:03 +0200)]
Fix more overly long docstrings in eieio
* lisp/emacs-lisp/eieio.el (defclass): Fix more overly long
docstrings. (Bug#58252)
Paul Eggert [Sun, 2 Oct 2022 20:47:09 +0000 (13:47 -0700)]
Don’t truncate seccomp-filter diagnostic
* lib-src/seccomp-filter.c (fail): Do not truncate diagnostic
arbitrarily to 1000 bytes when ERROR is nonzero.
Paul Eggert [Sun, 2 Oct 2022 20:37:39 +0000 (13:37 -0700)]
Prefer static_assert to verify in seccomp-filter
Prefer static_assert in just one file for now; the idea is to do
it elsewhere eventually. static_assert is standard (starting with
C23) whereas verify is not, and static_assert can be used even in
pre-C23 files due to Gnulib’s support for it.
* lib-src/seccomp-filter.c: Do not include verify.h.
Prefer static_assert to verify.
Alan Mackenzie [Sun, 2 Oct 2022 20:31:12 +0000 (20:31 +0000)]
Suppress irritating/misleading message in make bootstrap about old .elc files
These are the "compile-first" .elc files, artificially given an old timestamp
to cause them later to be native compiled. This fixes bug #58224.
* lisp/Makefile.in (compile-first .el.elc): Give these .elc's the UTC epoch.
Amend the comment.
* src/lread.c (Fload): New variable, epoch_timestamp, initialized to binary
zero. Compare with this the timestamp of .elc's being loaded, and if they
match, don't output the message about the source file being newer than the
file being loaded.
Paul Eggert [Sun, 2 Oct 2022 20:05:02 +0000 (13:05 -0700)]
* .gitignore: Add lib/assert.h (Bug#58254).
Juri Linkov [Sun, 2 Oct 2022 18:50:08 +0000 (21:50 +0300)]
* lisp/vc/vc-git.el (vc-git-checkin): Add more checks for vc-git-patch-string
Check that vc-git-patch-string contains the same changes that already exists
in the staged area when files were added/removed by vc commands (bug#52349).
Juri Linkov [Sun, 2 Oct 2022 18:34:57 +0000 (21:34 +0300)]
In vc-git-log-incoming use the repository in the command "fetch" (bug#50340)
* lisp/vc/vc-git.el (vc-git-log-incoming): Use repository part
from non-nil remote-location in the command "fetch".
* lisp/vc/vc.el (vc-log-incoming, vc-log-outgoing): Mention in
docstrings and prompts that REMOTE-LOCATION can be a remote branch name.
* doc/emacs/maintaining.texi (VC Change Log): For commands
vc-log-incoming and vc-log-outgoing, use the term "remote location"
instead of "repository".
Peter Münster [Sun, 2 Oct 2022 18:12:32 +0000 (20:12 +0200)]
Delete thumbs in image-dired-do-flagged-delete after confirmation
* lisp/image/image-dired.el (image-dired-do-flagged-delete): Remove
thumbnails only after confirming deletion of the files. (Bug#58255)
Juri Linkov [Sun, 2 Oct 2022 18:14:42 +0000 (21:14 +0300)]
* lisp/repeat.el (repeat<defgroup>): New customization group.
(repeat-too-dangerous, repeat-on-final-keystroke)
(repeat-exit-key, repeat-exit-timeout, repeat-keep-prefix)
(repeat-check-key, repeat-echo-function, repeat-mode):
Change group to 'repeat'.
Stefan Monnier [Sun, 2 Oct 2022 17:52:57 +0000 (13:52 -0400)]
keymap.el: Ease up support for non-`kbd` formats.
While we want to standardize on the `kbd` syntax for user-facing code,
the internal vector representation of key sequences is not going away,
so let's not impose silly `key-description + key-parse` roundtrips.
Also, provide some support for packages stuck with user configs defined
to hold old-style key formats.
* lisp/keymap.el (keymap-set): Allow vectors as `key`.
(key-parse-old-format): New function, which stands out better than
`key-description` when searching for uses of the old syntax.
* list/outline.el (outline-minor-mode): Use it.
Stefan Kangas [Sun, 2 Oct 2022 15:52:05 +0000 (17:52 +0200)]
* lisp/files.el (after-find-file): Use substitute-command-keys.
Stefan Kangas [Sun, 2 Oct 2022 15:28:04 +0000 (17:28 +0200)]
Fix overly wide docstrings generated by eieio
* lisp/emacs-lisp/eieio-core.el (eieio-make-class-predicate)
(eieio-make-child-predicate, eieio-defclass-internal): Don't generate
overly wide docstrings. (Bug#58252)
Lars Ingebrigtsen [Sun, 2 Oct 2022 13:49:50 +0000 (15:49 +0200)]
Kill URL buffer in url-insert-file-contents-literally
* lisp/url/url-handlers.el (url-insert-file-contents-literally):
Kill the URL buffer after use.
Lars Ingebrigtsen [Sun, 2 Oct 2022 12:58:25 +0000 (14:58 +0200)]
Fix coding system problems in gnus-read-ephemeral-bug-group
* lisp/gnus/gnus-group.el (gnus-read-ephemeral-bug-group): Don't
bind coding system variables, because that leads to loading other
files (like cookie files) using that coding system (bug#58227).
* lisp/url/url-handlers.el (url-insert-file-literally): New function.
(url-insert): Allow forcing no-decode.
Eli Zaretskii [Sun, 2 Oct 2022 13:24:08 +0000 (16:24 +0300)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Sun, 2 Oct 2022 13:21:05 +0000 (16:21 +0300)]
; Improve doc string of 'with-locale-environment'
* lisp/international/mule-cmds.el (with-locale-environment): Doc
fix.
Stefan Kangas [Sun, 2 Oct 2022 13:16:17 +0000 (15:16 +0200)]
Decrease use of the word "Emacsen" in Tramp docs
* lisp/net/tramp-archive.el:
* lisp/net/tramp-smb.el:
* lisp/net/tramp-uu.el:
* lisp/net/tramp.el: Don't say "Emacsen" when a different wording
would be clearer.
Lars Ingebrigtsen [Sun, 2 Oct 2022 12:09:39 +0000 (14:09 +0200)]
perform-replace doc string fix
* lisp/replace.el (perform-replace): Fix doc string (bug#58177).
Lars Ingebrigtsen [Sun, 2 Oct 2022 12:05:53 +0000 (14:05 +0200)]
Fix point movement when indenting in sieve-mode
* lisp/net/sieve-mode.el (sieve-mode-indent-function): Fix point
movement when point is at the start of the line (bug#58202).
Eli Zaretskii [Sun, 2 Oct 2022 08:44:30 +0000 (11:44 +0300)]
; Fix last change.
* lisp/leim/quail/misc-lang.el ("gothic"):
* lisp/language/misc-lang.el ("Gothic"): Doc fixes. (Bug#58194)
समीर सिंह Sameer Singh [Fri, 30 Sep 2022 13:16:56 +0000 (18:46 +0530)]
Add support for the Gothic script (bug#58194)
* lisp/language/misc-lang.el ("Gothic"): New language environment.
Add sample text and input method.
* lisp/international/fontset.el (script-representative-chars)
(setup-default-fontset): Support gothic.
* lisp/leim/quail/misc-lang.el ("gothic"): New input method.
* etc/HELLO: Add Gothic greetings.
* etc/NEWS: Announce the new language environment.
Stefan Kangas [Sun, 2 Oct 2022 04:30:21 +0000 (06:30 +0200)]
; Merge from origin/emacs-28
The following commit was skipped:
6c46aa2116 ; Auto-commit of loaddefs files.
Po Lu [Sun, 2 Oct 2022 00:28:56 +0000 (08:28 +0800)]
Only rely on EWMH window activation if possible
* xterm.c (x_ewmh_activate_frame): Remove unnecessary
x_wm_supports check.
(x_focus_frame): When the window manager supports
_NET_ACTIVE_WINDOW, just use it; anything else may confuse the
window manager.
Stefan Kangas [Sat, 1 Oct 2022 20:38:58 +0000 (22:38 +0200)]
; Fix two wallpaper tests
* test/lisp/image/wallpaper-tests.el
(wallpaper--find-command/return-string)
(wallpaper--find-command-args/return-list): Fix tests.
Stefan Kangas [Sat, 1 Oct 2022 20:35:46 +0000 (22:35 +0200)]
; * lisp/winner.el: Fix two comments.
Stefan Kangas [Sat, 1 Oct 2022 20:32:25 +0000 (22:32 +0200)]
Revert "Decrease use of the word "Emacsen" in docs"
This reverts commit
55f46cc77cb9d72fbabadb63d8aeab45c5e005e2.
Ref. https://lists.gnu.org/r/emacs-devel/2022-10/msg00016.html
Michael Albinus [Sat, 1 Oct 2022 19:56:41 +0000 (21:56 +0200)]
Tramp cleanup
* doc/misc/tramp.texi (Password handling): Fix typos.
* lisp/net/tramp-docker.el (tramp-default-remote-shell):
* lisp/net/tramp-sshfs.el (tramp-default-remote-shell): Declare.
* lisp/net/tramp.el (tramp-methods): Fix docstring.
(tramp-get-remote-tmpdir): Revert previous patch, it isn't needed
anymore.
Stefan Kangas [Sat, 1 Oct 2022 18:31:44 +0000 (20:31 +0200)]
; Auto-commit of loaddefs files.
Stefan Kangas [Sat, 1 Oct 2022 18:28:53 +0000 (20:28 +0200)]
; Auto-commit of loaddefs files.
Stefan Kangas [Sat, 1 Oct 2022 18:21:28 +0000 (20:21 +0200)]
; * admin/update_autogen: Really fix.
Stefan Kangas [Sat, 1 Oct 2022 18:17:57 +0000 (20:17 +0200)]
Update publicsuffix.txt from upstream
* etc/publicsuffix.txt: Update from
https://publicsuffix.org/list/public_suffix_list.dat
dated 2022-09-27 20:39:13 UTC.
Stefan Kangas [Sat, 1 Oct 2022 15:39:54 +0000 (17:39 +0200)]
; * admin/update_autogen: Fix for "set -o nounset".
Michael Albinus [Sat, 1 Oct 2022 15:17:39 +0000 (17:17 +0200)]
Use a version for the Tramp cache
* lisp/net/tramp-cache.el (tramp-cache-version): New defconst.
(top): Check the cache version, and flush the cache in case of
mismatch. Suggested by Paul Pogonyshev <pogonyshev@gmail.com>.
* lisp/net/tramp-cmds.el (tramp-cleanup-all-connections):
Re-initialize the cache version.
Stefan Kangas [Sat, 1 Oct 2022 15:16:03 +0000 (17:16 +0200)]
Decrease use of the word "Emacsen" in docs
"Emacsen" is either a less clear way of saying "old versions of
Emacs", or an implicit reference to XEmacs. We recommend against
using it in the FAQ. So use the more clear wording instead.
* doc/misc/gnus.texi (Oort Gnus):
* doc/misc/widget.texi (Basic Types, toggle):
* lisp/cedet/semantic/bovine/c.el (semantic-c-skip-conditional-section):
* lisp/cedet/semantic/wisent/comp.el (wisent-compile-grammar):
* lisp/desktop.el (desktop-save):
* lisp/erc/erc-compat.el:
* lisp/erc/erc-log.el:
* lisp/gnus/gnus-util.el (gnus-replace-in-string):
* lisp/mail/footnote.el:
* lisp/net/tramp-archive.el:
* lisp/net/tramp-smb.el:
* lisp/net/tramp-uu.el:
* lisp/net/tramp.el:
(with-tramp-locked-connection):
* lisp/org/ol-eww.el:
* lisp/org/org-compat.el:
(org-define-error):
* lisp/shadowfile.el:
* lisp/winner.el: Don't use the word "Emacsen".
Stefan Kangas [Sat, 1 Oct 2022 15:14:47 +0000 (17:14 +0200)]
Merge from origin/emacs-28
be3eac3929 ; * etc/NEWS: Fix typos.
99a8c53247 Fix connection property incompatibility in Tramp
# Conflicts:
# etc/NEWS
Eli Zaretskii [Sat, 1 Oct 2022 15:00:24 +0000 (18:00 +0300)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Sat, 1 Oct 2022 14:56:58 +0000 (17:56 +0300)]
; Another fix for vertical motion
* src/xdisp.c (move_it_vertically_backward): Undo recent changes for
bidi-reordered text. (Bug#58210)
Lars Ingebrigtsen [Sat, 1 Oct 2022 14:56:19 +0000 (16:56 +0200)]
Make mailcap--regexp-quote-type more resilient
* lisp/net/mailcap.el (mailcap--regexp-quote-type): Make more
resilient in the presence of junk.
Lars Ingebrigtsen [Sat, 1 Oct 2022 14:06:27 +0000 (16:06 +0200)]
Make "git pull" output slightly prettier
* lisp/vc/vc-git.el (vc-git--pushpull): Translate ^M in output
(bug#58199).
Eli Zaretskii [Sat, 1 Oct 2022 14:01:15 +0000 (17:01 +0300)]
Fix vertical motion in some rare bidi situations
* src/xdisp.c (move_it_by_lines): Handle the case where we
didn't move vertically at all.
Lars Ingebrigtsen [Sat, 1 Oct 2022 13:20:42 +0000 (15:20 +0200)]
Make mailcap consistent about regexp-quoting minors
* lisp/net/mailcap.el (mailcap-mime-data): Quote regexp.
(mailcap-mime-extensions): Ditto.
(mailcap--regexp-quote-type): New function.
(mailcap-parse-mimetype-file): Use it to get consistent quoting of
(regexp) strings (bug#52038). Before you'd get both
application/vnd\.ms-excel and application/vnd.ms-excel (etc),
making prompting confusing.
Lars Ingebrigtsen [Sat, 1 Oct 2022 12:50:22 +0000 (14:50 +0200)]
Fix url-retrieve-synchronously on very short timeouts
* lisp/url/url.el (url-retrieve-synchronously): Don't kill the
process buffer unless we made one (bug#58218). This makes HTTP
free connection marking work on premature timeouts.
Eli Zaretskii [Sat, 1 Oct 2022 12:44:23 +0000 (15:44 +0300)]
; (move_it_vertically_backward): Yet another fix of bug#58210.
Matthias Meulien [Sat, 1 Oct 2022 06:46:50 +0000 (08:46 +0200)]
Define ansi-osc customization group
* lisp/ansi-osc.el (ansi-osc): Define ansi-osc customization group
(ansi-osc-for-compilation-buffer): Fix wrong group
Matthias Meulien [Fri, 30 Sep 2022 20:46:35 +0000 (22:46 +0200)]
Rename osc.el to ansi-osc.el (bug#58200)
* lisp/osc.el: Move from here...
* lisp/ansi-osc.el: ...to here.
* test/lisp/osc-tests.el: Move from here...
* test/lisp/ansi-osc-tests.el: ...to here.
Protesilaos Stavrou [Sat, 1 Oct 2022 07:57:59 +0000 (10:57 +0300)]
Update to Modus themes stable version 2.7.0
* doc/misc/modus-themes.org (Load theme depending on time of day): Add
missing keyword from sample configuration.
(Full support for packages or face groups): Update list of supported packages.
(Note on goto-address-mode faces): Add documentation about possible
user-level tweaks.
(Are these color schemes?): Fix typo.
(Acknowledgements): Update list of contributors to the project.
* etc/themes/modus-themes.el (modus-themes--version): Update to
current stable version.
(modus-themes-vivendi-colors): Tweak value of a single color.
(modus-themes-faces): Update list of supported faces.
(modus-themes-custom-variables): Remove outdated "TODO" comment.
* etc/themes/modus-operandi-theme.el:
* etc/themes/modus-vivendi-theme.el: Update version header.
Release notes: <https://protesilaos.com/codelog/2022-10-01-modus-themes-2-7-0/>.
Eli Zaretskii [Sat, 1 Oct 2022 06:24:04 +0000 (09:24 +0300)]
Fix 'C-a' and 'C-e' under 'visual-line-mode'
* src/xdisp.c (move_it_vertically_backward): Fix last change.
(Bug#58210)
Paul Eggert [Sat, 1 Oct 2022 00:49:07 +0000 (17:49 -0700)]
Update from Gnulib by running admin/merge-gnulib
Michael Albinus [Fri, 30 Sep 2022 19:54:05 +0000 (21:54 +0200)]
; * etc/NEWS: Fix typos.
Michael Albinus [Fri, 30 Sep 2022 19:53:52 +0000 (21:53 +0200)]
Fix connection property incompatibility in Tramp
* lisp/net/tramp.el (tramp-get-remote-tmpdir): Remove obsolete
connection property "tmpdir". (Bug#57800)
Miha Rihtaršič [Fri, 30 Sep 2022 18:28:15 +0000 (20:28 +0200)]
Rename comint-fl-* to comint-fontify-input-* and mention it in NEWS
* lisp/comint.el
(comint-fontify-input-mode):
(comint--fontify-input-saved-jit-lock-contextually):
(comint--fontify-input-on):
(comint--fontify-input-off):
(comint--fontify-input-ppss-flush-indirect):
(comint--fontify-input-fontify-region): Replace comint-fl-* with
comint-fontify-input-*.
* lisp/ielm.el (ielm-fontify-input-enable):
(ielm-fontify-input-enable):
(ielm-indirect-setup-hook):
(inferior-emacs-lisp-mode): Replace comint-fl-* with
comint-fontify-input-*.
* lisp/shell.el (shell-comint-fl-enable):
(shell-mode): Replace comint-fl-* with comint-fontify-input-*.
* etc/NEWS: Mention the new modes and how to disable or enable
them (bug#58169).
Miha Rihtaršič [Fri, 30 Sep 2022 18:07:03 +0000 (20:07 +0200)]
comint-fl: Prevent fontification of output as input
* lisp/comint.el (comint-output-filter): Inhibit jit-lock
fontification of inserted process output before marking it with the
'output' filed property (bug#58169).
Eli Zaretskii [Fri, 30 Sep 2022 19:05:53 +0000 (22:05 +0300)]
; * lisp/international/mule.el (set-terminal-coding-system): Doc fix.
Eli Zaretskii [Fri, 30 Sep 2022 18:57:21 +0000 (21:57 +0300)]
; * doc/emacs/emacs.texi (Top): Add new menu entry.
Eli Zaretskii [Fri, 30 Sep 2022 18:55:38 +0000 (21:55 +0300)]
; * doc/emacs/vc1-xtra.texi (Editing VC Commands): Fix wording.
Lars Ingebrigtsen [Fri, 30 Sep 2022 17:38:25 +0000 (19:38 +0200)]
Further with-locale-environment refresh fixes
* lisp/international/mule-cmds.el
(set-display-table-and-terminal-coding-system): Allow inhibiting
refresh.
(set-locale-environment): Inhibit refresh in more paths (bug#58193).
Sean Whitton [Fri, 30 Sep 2022 16:20:26 +0000 (09:20 -0700)]
; Fix some texinfo in last change
Sean Whitton [Sat, 24 Sep 2022 23:17:56 +0000 (16:17 -0700)]
Add vc-edit-next-command
* lisp/vc/vc.el (vc-read-revision): Override
vc-filter-command-function back to its default value.
(vc-print-branch-log): Remove recently-added prefix argument.
(vc-edit-next-command): New command.
* lisp/vc/vc-hooks.el (vc-prefix-map): Bind it to 'C-x v !'.
* etc/NEWS:
* doc/emacs/vc1-xtra.texi (Editing Shell Commands): Document it.
Mattias Engdegård [Fri, 30 Sep 2022 12:09:47 +0000 (14:09 +0200)]
Rectify string= documentation
* doc/lispref/strings.texi (Text Comparison): Describe the current
behaviour since about 20 years back.
Mattias Engdegård [Fri, 30 Sep 2022 13:50:59 +0000 (15:50 +0200)]
Strengthen string-lessp tests
* test/src/fns-tests.el (fns-tests--string-lessp-cases)
(fns-tests-string-lessp): Check more cases, and in a more robust way.
Mattias Engdegård [Fri, 30 Sep 2022 11:59:45 +0000 (13:59 +0200)]
Speed up string-lessp further
* src/fns.c (Fstring_lessp): Use the memcmp fast path for ASCII-only
multibyte strings as well. Specialise loops on argument
multibyteness.
Lars Ingebrigtsen [Fri, 30 Sep 2022 14:14:20 +0000 (16:14 +0200)]
Don't refresh the frame in with-locale-environment
* lisp/international/mule-cmds.el (with-locale-environment):
Inhibit refresh so that there's no flickering (bug#58193).
(set-locale-environment): Allow inhibiting the refresh.
* lisp/international/mule.el (set-terminal-coding-system): Ditto.
Lars Ingebrigtsen [Fri, 30 Sep 2022 14:02:11 +0000 (16:02 +0200)]
Make gnus-user-agent less verbose
* lisp/gnus/gnus.el (gnus-user-agent): Don't include the Emacs/OS
version for privacy reasons (bug#58171).
Lars Ingebrigtsen [Fri, 30 Sep 2022 13:12:21 +0000 (15:12 +0200)]
Fix the `dictionary' parent defgroup
* lisp/net/dictionary.el (dictionary): The `hypermedia' group
doesn't exist, so put it in the same parent group that `ispell'
uses (bug#58178).
Jose A. Ortega Ruiz [Fri, 30 Sep 2022 13:08:40 +0000 (15:08 +0200)]
docview: fixes for imenu generation
* lisp/doc-view.el: (doc-view--pdf-outline):
(doc-view-imenu-index):
(doc-view-imenu-setup): Fix multiple empty index generation for
documents without an outline, caching the result (see discussion in
bug#58103).
(doc-view--imenu-subtree): Fix for nested imenus (bug introduced in
commit
fe002cc8ce) (bug#58180).
Lars Ingebrigtsen [Fri, 30 Sep 2022 13:07:31 +0000 (15:07 +0200)]
Fix rename-visited-file when renaming to a directory name
* lisp/files.el (rename-visited-file): Allow renaming to a
directory file name (bug#58182).
Lars Ingebrigtsen [Fri, 30 Sep 2022 12:48:51 +0000 (14:48 +0200)]
Improve message-sendmail-f-is-evil documentation
* lisp/gnus/message.el (message-sendmail-f-is-evil): Move some of
the explanation here.
* lisp/mail/feedmail.el (feedmail-sendmail-f-doesnt-sell-me-out):
Refer to message-sendmail-f-is-evil (bug#58185).
Eli Zaretskii [Fri, 30 Sep 2022 12:38:22 +0000 (15:38 +0300)]
Fix some issues with vertical-motion in bidi-reordered text
This fixes some uses of vertical-motion when a screen line
starts withcharacters of directionality that is opposite to
the current paragraph's base direction.
* src/xdisp.c (move_it_vertically_backward): Adjust NLINES to
compensate for its increasing when DY == 0.
Po Lu [Fri, 30 Sep 2022 06:54:15 +0000 (14:54 +0800)]
Fix calculation of frame times when X server time overflows
* etc/TODO: Add TODO about frame synchronization and animations.
* src/xterm.c (x_display_set_last_user_time): Handle cases when
the monotonic time is not the server time due to the latter
overflowing.
Eli Zaretskii [Fri, 30 Sep 2022 06:21:43 +0000 (09:21 +0300)]
; Fix documentation of Toto language environment
* lisp/leim/quail/indian.el ("toto"):
* lisp/language/indian.el ("Toto"): Clarify doc strings.
समीर सिंह Sameer Singh [Thu, 29 Sep 2022 20:02:56 +0000 (01:32 +0530)]
Add support for the Toto script (bug#58181)
* lisp/language/indian.el ("Toto"): New language environment.
Add input method.
* lisp/international/fontset.el (script-representative-chars):
Support Toto.
* lisp/leim/quail/indian.el ("toto"): New input method.
* etc/NEWS: Announce the new language environment.
Stefan Kangas [Fri, 30 Sep 2022 04:30:41 +0000 (06:30 +0200)]
Merge from origin/emacs-28
64e8cc14b5 ; * lisp/image.el (create-image): Fix last change in doc s...
f3e3632394 Update some Gnus documentation in the Emacs manual
Stefan Kangas [Thu, 29 Sep 2022 18:23:11 +0000 (20:23 +0200)]
; * etc/NEWS: Move item to correct section.
This change belongs in "Changes" rather than "Lisp Changes" as this is
not only relevant to Lisp developers.
Eli Zaretskii [Thu, 29 Sep 2022 17:03:51 +0000 (20:03 +0300)]
; * lisp/image/wallpaper.el (wallpaper--x-monitor-name): Doc fix.
Stefan Kangas [Thu, 29 Sep 2022 16:44:03 +0000 (18:44 +0200)]
Fix loading wallpaper.el on MS-Windows
* lisp/image/wallpaper.el (wallpaper--find-command)
(wallpaper--find-command-args): Avoid backtrace when
'wallpaper--find-setter' returns nil, e.g. on MS-Windows.
(Bug#58167)
Eli Zaretskii [Thu, 29 Sep 2022 15:55:08 +0000 (18:55 +0300)]
; * etc/NEWS: Remove a stray newline.
Alan Mackenzie [Thu, 29 Sep 2022 15:22:42 +0000 (15:22 +0000)]
CC Mode: Refactor c-forward-delarator and callers
c-forward-declarator now moves over a complete declarator, including any
arglist expression, but possibly not including certain C++20 constructs.
* lisp/progmodes/cc-engine.el (c-forward-decl-arglist): New function,
extracted from c-do-declarators.
(c-forward-declarator): Extend the result list by one element, denoting
whether the function parsed an argument list. Insert special handling for a
C++ operator<op> construct. If there is a parenthesis expression, and it is
an argument list, move forward over it.
(c-do-declarators): Append an optional parameter, cdd-anon-accepted
instructing the function to handle declarators without identifiers. Extract
c-forward-decl-arglist.
* lisp/progmodes/cc-fonts.el (c-font-lock-declarators): New &optional
parameter accept-anon, as above. Analyze and use the identifier location
returned by c-do-declarators, rather than using c-last-identifier-range.
(c-font-lock-single-decl): Determine accept-anon from the context, passing it
as argument to c-font-lock-declarators.
* lisp/progmodes/cc-langs.el (c-opt-identifier-prefix-key): Make a
c-lang-defvar out of this existing c-lang-defconst.
* lisp/progmodes/cc-mode.el (c-fl-decl-end): Adapt for the new
c-forward-declarator which now moves over arglists. Amend better to handle
certain syntactically invalid constructs in C++.
Stefan Kangas [Thu, 29 Sep 2022 14:27:23 +0000 (16:27 +0200)]
; * etc/NEWS: Announce last change.
Peter Münster [Wed, 28 Sep 2022 23:39:30 +0000 (01:39 +0200)]
New command image-dired-do-flagged-delete
* lisp/image/image-dired.el (image-dired-delete-marked): Remove command,
because it was too buggy.
(image-dired-do-flagged-delete): New command that does almost the same
as the above removed command but with flagged images.
(image-dired-thumbnail-mode-map): Bind "x" to
'image-dired-do-flagged-delete'.
Peter Münster [Wed, 28 Sep 2022 23:25:10 +0000 (01:25 +0200)]
image-dired-delete-char: Don't disturb formatting
* lisp/image/image-dired.el (image-dired-delete-char): Don't disturb
the expected formatting of the thumbnail buffer (always one
space/newline after a thumbnail).
Stefan Kangas [Thu, 29 Sep 2022 14:10:27 +0000 (16:10 +0200)]
wallpaper-set: Get monitor name on non-graphical display
* lisp/image/wallpaper.el
(wallpaper--format-arg): Break out function from here...
(wallpaper--x-monitor-name): ...to here. Try to get the monitor name
non-graphical displays, and prompt if that doesn't work.
(wallpaper-default-set-function): Improve debugging output.
Ref. https://lists.gnu.org/r/emacs-devel/2022-09/msg01910.html
Stefan Kangas [Tue, 27 Sep 2022 18:09:01 +0000 (20:09 +0200)]
Prompt for wallpaper width/height only when needed
* lisp/image/wallpaper.el (wallpaper--format-arg): Don't prompt for
width and height unless the values are actually used.
Stefan Kangas [Tue, 27 Sep 2022 16:16:51 +0000 (18:16 +0200)]
Make format-spec accept function substitutions
* lisp/format-spec.el (format-spec): Accept a function producing the
substitution for a character.
* doc/lispref/strings.texi (Custom Format Strings): Document the
above change.
* test/lisp/format-spec-tests.el (format-spec/function): New test.
Ref. https://lists.gnu.org/r/emacs-devel/2022-09/msg01875.html
Eli Zaretskii [Thu, 29 Sep 2022 13:27:59 +0000 (16:27 +0300)]
; * lisp/image.el (create-image): Fix last change in doc string.
Stefan Kangas [Thu, 29 Sep 2022 13:19:01 +0000 (15:19 +0200)]
; Fix typos (prefer American spelling)
समीर सिंह Sameer Singh [Thu, 29 Sep 2022 11:03:10 +0000 (16:33 +0530)]
Add support for the Wancho script (bug#58159)
* lisp/language/indian.el ("Wancho"): New language environment.
Add sample text and input method.
* lisp/international/fontset.el (script-representative-chars)
(setup-default-fontset): Support Wancho.
* lisp/leim/quail/indian.el ("wancho"): New input method.
* etc/HELLO: Add a Wancho greeting.
* etc/NEWS: Announce the new language environment.
Stefan Kangas [Thu, 29 Sep 2022 13:00:25 +0000 (15:00 +0200)]
Remove Emacs 21 compat code for gnus-user-agent
* lisp/gnus/gnus.el (gnus-user-agent): No longer convert old
(< 2005-01-10) symbol type values.
Lars Ingebrigtsen [Thu, 29 Sep 2022 11:05:36 +0000 (13:05 +0200)]
Update some Gnus documentation in the Emacs manual
* doc/emacs/misc.texi (Gnus Group Buffer, Gnus Summary Buffer):
Update documentation (bug#58145).
Lars Ingebrigtsen [Thu, 29 Sep 2022 10:29:36 +0000 (12:29 +0200)]
Tweak while-let definition
* lisp/subr.el (while-let): Use if-let* since we don't need/want
the backwards compat of if-let.
समीर सिंह Sameer Singh [Wed, 28 Sep 2022 20:43:46 +0000 (02:13 +0530)]
Add support for the Mende Kikakui script (bug#58151)
* lisp/language/misc-lang.el ("Mende Kikakui"): New language environment.
Add sample text and input method.
* lisp/international/fontset.el (script-representative-chars)
(setup-default-fontset): Support Mende Kikakui, Indic Siyaq Numbers,
Ottoman Siyaq Numbers.
* lisp/leim/quail/misc-lang.el ("mende-kikakui"): New input method.
* etc/HELLO: Add Mende Kikakui greeting.
* etc/NEWS: Announce the new language environment.
Stefan Kangas [Thu, 29 Sep 2022 04:30:58 +0000 (06:30 +0200)]
Merge from origin/emacs-28
cf38e1c393 Clarify image file search
fc212364ce ; Fix typo.
Po Lu [Thu, 29 Sep 2022 01:36:13 +0000 (09:36 +0800)]
Pacify compiler warning in xterm.c
* src/xterm.c (handle_one_xevent): Mark gen_help_time UNINIT.
Reported by Lars Ingebrigtsen <larsi@gnus.org>.
Po Lu [Thu, 29 Sep 2022 01:35:31 +0000 (09:35 +0800)]
Fix the MS-DOS build
* config.bat: Add assert.in-h.
* msdos/sed2v2.inp: Define HAVE_STDBOOL_H.
* msdos/sedlibmk.inp (GL_GNULIB_LCHMOD, HAVE_LCHMOD): Define to
reflect realities.
(NEXT_ASSERT_H, @GL_GENERATE_ASSERT_H_CONDITION@): Define.
(assert.h): Edit command group into individual commands appending
to assert.h-t.
Eli Zaretskii [Wed, 28 Sep 2022 19:03:27 +0000 (22:03 +0300)]
Clarify image file search
* doc/lispref/display.texi (Defining Images, Image Descriptors):
* lisp/image.el (create-image): Clarify that non-absolute image
files are searched along 'image-load-path'. (Bug#52931)
Stefan Monnier [Wed, 28 Sep 2022 18:14:32 +0000 (14:14 -0400)]
* doc/lispref/functions.texi (Declare Form) <compiler-macro>: Re-rephrase
Stefan Monnier [Wed, 28 Sep 2022 16:28:30 +0000 (12:28 -0400)]
* doc/lispref/functions.texi (Declare Form) <compiler-macro>: Rephrase
See bug#57397.
Eli Zaretskii [Wed, 28 Sep 2022 16:00:57 +0000 (19:00 +0300)]
; Improve doc strings in doc-view.el
* lisp/doc-view.el (doc-view-imenu-title-format)
(doc-view-imenu-flatten): Doc fixes. (Bug#58131)
Stefan Kangas [Wed, 28 Sep 2022 15:34:59 +0000 (17:34 +0200)]
; Fix typos