]> git.eshelyaron.com Git - emacs.git/log
emacs.git
2 years agoDelete thumbs in image-dired-do-flagged-delete after confirmation
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)

2 years ago* lisp/repeat.el (repeat<defgroup>): New customization group.
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'.

2 years agokeymap.el: Ease up support for non-`kbd` formats.
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.

2 years ago* lisp/files.el (after-find-file): Use substitute-command-keys.
Stefan Kangas [Sun, 2 Oct 2022 15:52:05 +0000 (17:52 +0200)]
* lisp/files.el (after-find-file): Use substitute-command-keys.

2 years agoFix overly wide docstrings generated by eieio
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)

2 years agoKill URL buffer in url-insert-file-contents-literally
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.

2 years agoFix coding system problems in gnus-read-ephemeral-bug-group
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.

2 years agoMerge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Sun, 2 Oct 2022 13:24:08 +0000 (16:24 +0300)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs

2 years ago; Improve doc string of 'with-locale-environment'
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.

2 years agoDecrease use of the word "Emacsen" in Tramp docs
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.

2 years agoperform-replace doc string fix
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).

2 years agoFix point movement when indenting in sieve-mode
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).

2 years ago; Fix last change.
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)

2 years agoAdd support for the Gothic script (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.

2 years ago; Merge from origin/emacs-28
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.

2 years agoOnly rely on EWMH window activation if possible
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.

2 years ago; Fix two wallpaper tests
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.

2 years ago; * lisp/winner.el: Fix two comments.
Stefan Kangas [Sat, 1 Oct 2022 20:35:46 +0000 (22:35 +0200)]
; * lisp/winner.el: Fix two comments.

2 years agoRevert "Decrease use of the word "Emacsen" in docs"
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

2 years agoTramp cleanup
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.

2 years ago; Auto-commit of loaddefs files.
Stefan Kangas [Sat, 1 Oct 2022 18:31:44 +0000 (20:31 +0200)]
; Auto-commit of loaddefs files.

2 years ago; Auto-commit of loaddefs files.
Stefan Kangas [Sat, 1 Oct 2022 18:28:53 +0000 (20:28 +0200)]
; Auto-commit of loaddefs files.

2 years ago; * admin/update_autogen: Really fix.
Stefan Kangas [Sat, 1 Oct 2022 18:21:28 +0000 (20:21 +0200)]
; * admin/update_autogen: Really fix.

2 years agoUpdate publicsuffix.txt from upstream
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.

2 years ago; * admin/update_autogen: Fix for "set -o nounset".
Stefan Kangas [Sat, 1 Oct 2022 15:39:54 +0000 (17:39 +0200)]
; * admin/update_autogen: Fix for "set -o nounset".

2 years agoUse a version for the Tramp cache
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.

2 years agoDecrease use of the word "Emacsen" in docs
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".

2 years agoMerge from origin/emacs-28
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

2 years agoMerge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Sat, 1 Oct 2022 15:00:24 +0000 (18:00 +0300)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs

2 years ago; Another fix for vertical motion
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)

2 years agoMake mailcap--regexp-quote-type more resilient
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.

2 years agoMake "git pull" output slightly prettier
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).

2 years agoFix vertical motion in some rare bidi situations
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.

2 years agoMake mailcap consistent about regexp-quoting minors
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.

2 years agoFix url-retrieve-synchronously on very short timeouts
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.

2 years ago; (move_it_vertically_backward): Yet another fix of bug#58210.
Eli Zaretskii [Sat, 1 Oct 2022 12:44:23 +0000 (15:44 +0300)]
; (move_it_vertically_backward): Yet another fix of bug#58210.

2 years agoDefine ansi-osc customization group
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

2 years agoRename osc.el to ansi-osc.el (bug#58200)
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.

2 years agoUpdate to Modus themes stable version 2.7.0
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/>.

2 years agoFix 'C-a' and 'C-e' under 'visual-line-mode'
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)

2 years agoUpdate from Gnulib by running admin/merge-gnulib
Paul Eggert [Sat, 1 Oct 2022 00:49:07 +0000 (17:49 -0700)]
Update from Gnulib by running admin/merge-gnulib

2 years ago; * etc/NEWS: Fix typos.
Michael Albinus [Fri, 30 Sep 2022 19:54:05 +0000 (21:54 +0200)]
; * etc/NEWS: Fix typos.

2 years agoFix connection property incompatibility in Tramp
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)

2 years agoRename comint-fl-* to comint-fontify-input-* and mention it in NEWS
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).

2 years agocomint-fl: Prevent fontification of output as input
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).

2 years ago; * lisp/international/mule.el (set-terminal-coding-system): Doc fix.
Eli Zaretskii [Fri, 30 Sep 2022 19:05:53 +0000 (22:05 +0300)]
; * lisp/international/mule.el (set-terminal-coding-system): Doc fix.

2 years ago; * doc/emacs/emacs.texi (Top): Add new menu entry.
Eli Zaretskii [Fri, 30 Sep 2022 18:57:21 +0000 (21:57 +0300)]
; * doc/emacs/emacs.texi (Top): Add new menu entry.

2 years ago; * doc/emacs/vc1-xtra.texi (Editing VC Commands): Fix wording.
Eli Zaretskii [Fri, 30 Sep 2022 18:55:38 +0000 (21:55 +0300)]
; * doc/emacs/vc1-xtra.texi (Editing VC Commands): Fix wording.

2 years agoFurther with-locale-environment refresh fixes
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).

2 years ago; Fix some texinfo in last change
Sean Whitton [Fri, 30 Sep 2022 16:20:26 +0000 (09:20 -0700)]
; Fix some texinfo in last change

2 years agoAdd vc-edit-next-command
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.

2 years agoRectify string= documentation
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.

2 years agoStrengthen string-lessp tests
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.

2 years agoSpeed up string-lessp further
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.

2 years agoDon't refresh the frame in with-locale-environment
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.

2 years agoMake gnus-user-agent less verbose
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).

2 years agoFix the `dictionary' parent defgroup
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).

2 years agodocview: fixes for imenu generation
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).

2 years agoFix rename-visited-file when renaming to a directory name
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).

2 years agoImprove message-sendmail-f-is-evil documentation
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).

2 years agoFix some issues with vertical-motion in bidi-reordered text
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.

2 years agoFix calculation of frame times when X server time overflows
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.

2 years ago; Fix documentation of Toto language environment
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.

2 years agoAdd support for the Toto script (bug#58181)
समीर सिंह 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.

2 years agoMerge from origin/emacs-28
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

2 years ago; * etc/NEWS: Move item to correct section.
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.

2 years ago; * lisp/image/wallpaper.el (wallpaper--x-monitor-name): Doc fix.
Eli Zaretskii [Thu, 29 Sep 2022 17:03:51 +0000 (20:03 +0300)]
; * lisp/image/wallpaper.el (wallpaper--x-monitor-name): Doc fix.

2 years agoFix loading wallpaper.el on MS-Windows
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)

2 years ago; * etc/NEWS: Remove a stray newline.
Eli Zaretskii [Thu, 29 Sep 2022 15:55:08 +0000 (18:55 +0300)]
; * etc/NEWS: Remove a stray newline.

2 years agoCC Mode: Refactor c-forward-delarator and callers
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++.

2 years ago; * etc/NEWS: Announce last change.
Stefan Kangas [Thu, 29 Sep 2022 14:27:23 +0000 (16:27 +0200)]
; * etc/NEWS: Announce last change.

2 years agoNew command image-dired-do-flagged-delete
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'.

2 years agoimage-dired-delete-char: Don't disturb formatting
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).

2 years agowallpaper-set: Get monitor name on non-graphical display
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

2 years agoPrompt for wallpaper width/height only when needed
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.

2 years agoMake format-spec accept function substitutions
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

2 years ago; * lisp/image.el (create-image): Fix last change in doc string.
Eli Zaretskii [Thu, 29 Sep 2022 13:27:59 +0000 (16:27 +0300)]
; * lisp/image.el (create-image): Fix last change in doc string.

2 years ago; Fix typos (prefer American spelling)
Stefan Kangas [Thu, 29 Sep 2022 13:19:01 +0000 (15:19 +0200)]
; Fix typos (prefer American spelling)

2 years agoAdd support for the Wancho script (bug#58159)
समीर सिंह 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.

2 years agoRemove Emacs 21 compat code for gnus-user-agent
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.

2 years agoUpdate some Gnus documentation in the Emacs manual
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).

2 years agoTweak while-let definition
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.

2 years agoAdd support for the Mende Kikakui script (bug#58151)
समीर सिंह 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.

2 years agoMerge from origin/emacs-28
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.

2 years agoPacify compiler warning in xterm.c
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>.

2 years agoFix the MS-DOS build
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.

2 years agoClarify image file search
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)

2 years ago* doc/lispref/functions.texi (Declare Form) <compiler-macro>: Re-rephrase
Stefan Monnier [Wed, 28 Sep 2022 18:14:32 +0000 (14:14 -0400)]
* doc/lispref/functions.texi (Declare Form) <compiler-macro>: Re-rephrase

2 years ago* doc/lispref/functions.texi (Declare Form) <compiler-macro>: 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.

2 years ago; Improve doc strings in doc-view.el
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)

2 years ago; Fix typos
Stefan Kangas [Wed, 28 Sep 2022 15:34:59 +0000 (17:34 +0200)]
; Fix typos

2 years ago; Fix typo.
Stefan Kangas [Wed, 28 Sep 2022 15:18:49 +0000 (17:18 +0200)]
; Fix typo.

2 years ago* .mailmap: Fixes for Emacs 29.
Stefan Kangas [Wed, 28 Sep 2022 14:46:54 +0000 (16:46 +0200)]
* .mailmap: Fixes for Emacs 29.

2 years agoMerge from origin/emacs-28
Stefan Kangas [Wed, 28 Sep 2022 14:38:31 +0000 (16:38 +0200)]
Merge from origin/emacs-28

8033947fe2 .mailcap: Some additional fixes.
b1e92c59ed Avoid assertion violations in 'pop_it'

2 years agoRemove hard-coded path to pwd in Makefiles.
Gregory Heytings [Mon, 26 Sep 2022 12:58:07 +0000 (12:58 +0000)]
Remove hard-coded path to pwd in Makefiles.

* Makefile.in:
* lib-src/Makefile.in:
* nextstep/Makefile.in:
* nt/Makefile.in: Replace hard-coded calls to /bin/pwd by calls
to 'pwd -P'.  Fixes bug#58080.

2 years ago.mailcap: Some additional fixes.
Stefan Kangas [Wed, 28 Sep 2022 14:23:09 +0000 (16:23 +0200)]
.mailcap: Some additional fixes.

2 years ago; * doc/lispref/control.texi (Conditionals): Fix typo.
Eli Zaretskii [Wed, 28 Sep 2022 13:59:51 +0000 (16:59 +0300)]
; * doc/lispref/control.texi (Conditionals): Fix typo.

2 years agoAvoid assertion violations in 'pop_it'
Eli Zaretskii [Wed, 28 Sep 2022 13:46:39 +0000 (16:46 +0300)]
Avoid assertion violations in 'pop_it'

* src/xdisp.c (pop_it): Avoid assertion violations when handling
lists or vectors of display properties.  (Bug#58122)

2 years agoMerge from origin/emacs-28
Stefan Kangas [Wed, 28 Sep 2022 13:35:06 +0000 (15:35 +0200)]
Merge from origin/emacs-28

72aac80184 ; Fix typo
c54a64491f Add .mailmap for proper git log output
f9a072c592 ; Fix typo
3d056f6947 * doc/emacs/ack.texi (Acknowledgments): Update maintainers.
00159c086c ; Add commentary to disabled OTF support code in font.c

# Conflicts:
# src/font.c

2 years ago; Fix typo
Stefan Kangas [Wed, 28 Sep 2022 13:22:46 +0000 (15:22 +0200)]
; Fix typo