]> git.eshelyaron.com Git - emacs.git/log
emacs.git
2 years agoMention cond/if as generalized variables in the manual
Lars Ingebrigtsen [Tue, 4 Oct 2022 11:57:45 +0000 (13:57 +0200)]
Mention cond/if as generalized variables in the manual

* doc/lispref/variables.texi (Setting Generalized Variables):
Mention cond and if (bug#52290).

2 years agoAvoid assertion violations in STRING_CHAR
Eli Zaretskii [Tue, 4 Oct 2022 11:23:20 +0000 (14:23 +0300)]
Avoid assertion violations in STRING_CHAR

* src/xdisp.c (handle_composition_prop):
* src/editfns.c (styled_format): Don't call 'STRING_CHAR' on
unibyte strings.  This avoids assertion violation in
'string_char_and_length'.

2 years agoMake loaddefs-generate more resilient
Lars Ingebrigtsen [Tue, 4 Oct 2022 11:04:16 +0000 (13:04 +0200)]
Make loaddefs-generate more resilient

* lisp/emacs-lisp/loaddefs-gen.el (loaddefs-generate): Don't bug
out when there's an existing loaddefs file that's not formatted
properly (bug#58280).

2 years agoDon't bug out in advice--make-docstring when there's not doc string
Lars Ingebrigtsen [Tue, 4 Oct 2022 10:49:49 +0000 (12:49 +0200)]
Don't bug out in advice--make-docstring when there's not doc string

* lisp/emacs-lisp/nadvice.el (advice--make-docstring): Don't bug
out on functions with no documentation (bug#58284).

2 years agoAvoid errors in interactive calls of 'calendar-goto-day-of-year'
Eli Zaretskii [Tue, 4 Oct 2022 09:57:04 +0000 (12:57 +0300)]
Avoid errors in interactive calls of 'calendar-goto-day-of-year'

* lisp/calendar/cal-move.el (calendar-goto-day-of-year): Fix the
default value of DAY; doc fix.  (Bug#58283)

2 years ago; * etc/NEWS: Improve wording.
Eli Zaretskii [Tue, 4 Oct 2022 05:34:59 +0000 (08:34 +0300)]
; * etc/NEWS: Improve wording.

2 years ago* etc/NEWS: Clarify confusing Image-Dired entry. (Bug#58279)
Stefan Kangas [Tue, 4 Oct 2022 05:32:04 +0000 (07:32 +0200)]
* etc/NEWS: Clarify confusing Image-Dired entry.  (Bug#58279)

2 years agoFix deiconification handling on FVWM and possibly other window managers
Po Lu [Tue, 4 Oct 2022 01:25:06 +0000 (09:25 +0800)]
Fix deiconification handling on FVWM and possibly other window managers

I can't believe we weren't doing this before.

* src/xterm.c (x_handle_wm_state): New function.
(handle_one_xevent): Handle window state changes in WM_STATE
messages, and use them for signalling deiconification.
(bug#58164)

2 years ago; * lisp/proced.el (proced-mode): Manually reflow docstring.
Stefan Kangas [Tue, 4 Oct 2022 00:15:51 +0000 (02:15 +0200)]
; * lisp/proced.el (proced-mode): Manually reflow docstring.

2 years ago; Fix logic of $HOME adjustment for 'ert-remote-temporary-file-directory'
Jim Porter [Mon, 3 Oct 2022 01:19:56 +0000 (18:19 -0700)]
; Fix logic of $HOME adjustment for 'ert-remote-temporary-file-directory'

* lisp/emacs-lisp/ert-x.el (ert-remote-temporary-file-directory): Only
adjust $HOME when it doesn't exist (bug#58265).

2 years agoMerge from origin/emacs-28
Stefan Kangas [Mon, 3 Oct 2022 22:07:22 +0000 (00:07 +0200)]
Merge from origin/emacs-28

992611b10a Fix documentation  of 'TAB' in cc-mode
08e485a2a5 Fix 'org-export-dispatch' command name in manual
e5a49f44ff * src/emacs.c (load_pdump): Fix use of xpalloc.
7ff5207624 Avoid assertion violation in 'xpalloc'

# Conflicts:
# src/emacs.c

2 years ago; * etc/NEWS: Minor copy editing.
Stefan Kangas [Mon, 3 Oct 2022 21:06:15 +0000 (23:06 +0200)]
; * etc/NEWS: Minor copy editing.

2 years ago* lisp/repeat.el (repeat-exit-key): Replace type 'key-sequence' with 'key'.
Juri Linkov [Mon, 3 Oct 2022 19:54:16 +0000 (22:54 +0300)]
* lisp/repeat.el (repeat-exit-key): Replace type 'key-sequence' with 'key'.

(repeat-post-hook, repeat-echo-message-string): Add backward-compatibility
code for repeat-exit-key to keep support for 'key-sequence' type (bug#55986).

2 years ago* lisp/repeat.el (repeat-exit): New command.
Juri Linkov [Mon, 3 Oct 2022 19:51:33 +0000 (22:51 +0300)]
* lisp/repeat.el (repeat-exit): New command.

(repeat-exit-function): New variable.
(repeat-post-hook): Set repeat-exit-function.
Call repeat-exit from run-with-idle-timer.
Also use repeat--exit.
(repeat--exit): New internal function.

2 years ago* lisp/textmodes/tex-mode.el (tex--redirect-to-submode): Fix last change
Stefan Monnier [Mon, 3 Oct 2022 19:03:57 +0000 (15:03 -0400)]
* lisp/textmodes/tex-mode.el (tex--redirect-to-submode): Fix last change

2 years agoImprove messaging in ecomplete-remove
Lars Ingebrigtsen [Mon, 3 Oct 2022 19:40:27 +0000 (21:40 +0200)]
Improve messaging in ecomplete-remove

* lisp/ecomplete.el (ecomplete-remove): Make messaging better.

2 years agoFix typo in last help-fns--insert-menu-bindings change
Lars Ingebrigtsen [Mon, 3 Oct 2022 19:35:43 +0000 (21:35 +0200)]
Fix typo in last help-fns--insert-menu-bindings change

* lisp/help-fns.el (help-fns--insert-menu-bindings): Fix typo in
last change.

2 years agoImprove help-fns--insert-menu-bindings formatting
Lars Ingebrigtsen [Mon, 3 Oct 2022 19:32:01 +0000 (21:32 +0200)]
Improve help-fns--insert-menu-bindings formatting

* lisp/help-fns.el (help-fns--insert-menu-bindings): Make this
work better for menus that turn out to not be reachable after all
-- i.e., don't insert " and " before the heading in certain cases.

2 years agoAdd commands to edit/remove ecomplete entries
Lars Ingebrigtsen [Mon, 3 Oct 2022 18:27:17 +0000 (20:27 +0200)]
Add commands to edit/remove ecomplete entries

* lisp/ecomplete.el (ecomplete-add-item): Allow forcing new values.
(ecomplete--remove-item):
(ecomplete--prompt-type): New functions.
(ecomplete-edit, ecomplete-remove): New commands.

2 years agoRename to inhibit-automatic-native-compilation
Lars Ingebrigtsen [Mon, 3 Oct 2022 17:49:53 +0000 (19:49 +0200)]
Rename to inhibit-automatic-native-compilation

* src/comp.c (maybe_defer_native_compilation):
(syms_of_comp):
* lisp/subr.el (native-comp-deferred-compilation):
* lisp/startup.el (inhibit-native-compilation):
(normal-top-level):
* lisp/progmodes/elisp-mode.el (emacs-lisp-native-compile-and-load):
* lisp/emacs-lisp/comp.el (comp-trampoline-compile):
* etc/NEWS:
* doc/lispref/compile.texi (Native-Compilation Variables): Rename
inhibit-native-compilation to inhibit-automatic-native-compilation.

2 years ago; * src/menu.c: remove unused lwlib include
Manuel Giraud [Mon, 3 Oct 2022 17:14:26 +0000 (19:14 +0200)]
; * src/menu.c: remove unused lwlib include

* src/menu.c: remove unused lwlib include (bug#58275).

2 years agofiles.el (major-mode-remap-alist): New custom var (bug#58075)
Stefan Monnier [Mon, 3 Oct 2022 15:17:51 +0000 (11:17 -0400)]
files.el (major-mode-remap-alist): New custom var (bug#58075)

* lisp/files.el (major-mode-remap-alist): New custom var.
(set-auto-mode--last): New var.
(set-auto-mode-0): Obey `major-mode-remap-alist`.

* doc/emacs/modes.texi (Choosing Modes): Document `major-mode-remap-alist`.

* lisp/progmodes/cperl-mode.el: Recommend the use of
`major-mode-remap-alist` over the crude `defalias` solution.

* lisp/textmodes/tex-mode.el (tex--guess-mode): Simplify.
(tex--redirect-to-submode): Obey `major-mode-remap-alist`.

2 years agoAdd new variable 'inhibit-native-compilation'
Lars Ingebrigtsen [Mon, 3 Oct 2022 13:26:04 +0000 (15:26 +0200)]
Add new variable 'inhibit-native-compilation'

* doc/lispref/compile.texi (Native-Compilation Variables):
Document it.

* lisp/startup.el (normal-top-level): Set
inhibit-native-compilation from environment variable.

* lisp/subr.el (native-comp-deferred-compilation): Make obsolete.

* lisp/emacs-lisp/comp.el (comp-trampoline-compile): Don't write
trampolines to disk.

* lisp/progmodes/elisp-mode.el
(emacs-lisp-native-compile-and-load): Adjust.

* src/comp.c (syms_of_comp): New variable
inhibit-native-compilation.
(maybe_defer_native_compilation): Use it.

2 years agoFix coding systems used for X input methods
Po Lu [Mon, 3 Oct 2022 12:18:22 +0000 (20:18 +0800)]
Fix coding systems used for X input methods

* doc/emacs/mule.texi (International): Refer to X Coding as
well.
(Communication Coding): Document that locale-coding-system is
not always used on X to decode keyboard input.
(X Coding): New node.
* etc/NEWS: Announce change to input method coding resolution.
* lisp/term/x-win.el (x-get-input-coding-system): New function.
* src/coding.c (syms_of_coding): Update doc string of
locale-coding-system.
* src/xfns.c (struct x_xim_text_conversion_data)
(x_xim_text_to_utf8_unix_1, x_xim_text_to_utf8_unix_2)
(x_xim_text_to_utf8_unix): Accept dpyinfo.  Use the coding
system specified inside if possible.
(xic_preedit_draw_callback): Pass dpyinfo.
* src/xterm.c (handle_one_xevent): Use XIM coding system for IM
input.
(xim_open_dpy): Try to determine the input method coding system.
(mark_xterm): Mark `xim_coding'.
(syms_of_xterm): New variable `x-input-coding-system'.
* src/xterm.h (struct x_display_info): New field `xim_coding'.
(FRAME_X_XIM_CODING): New macro.

2 years agoAdd --with-native-compilation=aot configuration option
Lars Ingebrigtsen [Mon, 3 Oct 2022 10:45:21 +0000 (12:45 +0200)]
Add --with-native-compilation=aot configuration option

* configure.ac: Allow --with-native-compilation=aot to switch full
ahead-of-time on.

* lisp/Makefile.in: Use the setting from configure.

2 years agoRevert "keymap.el: Ease up support for non-`kbd` formats."
Lars Ingebrigtsen [Mon, 3 Oct 2022 09:04:16 +0000 (11:04 +0200)]
Revert "keymap.el: Ease up support for non-`kbd` formats."

This reverts commit 570a11052be6178954956a1c59c8ebcbdb77d38e.

We do not want to support several keymap formats in
`keymap-set' and friends -- the point is to have an
interface with easy-to-understand semantics that
give good feedback on valid/invalid key sequences.

2 years agoImprove auto-insert-mode documentation
Stefan Kangas [Mon, 3 Oct 2022 01:53:22 +0000 (03:53 +0200)]
Improve auto-insert-mode documentation

* lisp/autoinsert.el: Improve usage instructions and formatting.
(auto-insert-directory): Doc fix; the directory does not have to end
in slash.

2 years agoFix documentation of 'TAB' in cc-mode
Stefan Kangas [Mon, 3 Oct 2022 00:28:26 +0000 (02:28 +0200)]
Fix documentation  of 'TAB' in cc-mode

* doc/emacs/programs.texi (C Indent): Fix documentation of 'TAB'
in cc-mode.  (Bug#58258)

2 years agoFix 'org-export-dispatch' command name in manual
Stefan Kangas [Mon, 3 Oct 2022 00:21:07 +0000 (02:21 +0200)]
Fix 'org-export-dispatch' command name in manual

* doc/emacs/text.texi (Org Authoring): Fix 'org-export-dispatch'
command name.  (Bug#58260)

2 years agoPort TZ settings to POSIX
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.

2 years agoActually delete markers in dired-do-flagged-delete
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)

2 years agoFix more overly long docstrings in eieio
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)

2 years agoDon’t truncate seccomp-filter diagnostic
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.

2 years agoPrefer static_assert to verify in seccomp-filter
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.

2 years agoSuppress irritating/misleading message in make bootstrap about old .elc files
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.

2 years ago* .gitignore: Add lib/assert.h (Bug#58254).
Paul Eggert [Sun, 2 Oct 2022 20:05:02 +0000 (13:05 -0700)]
* .gitignore: Add lib/assert.h (Bug#58254).

2 years ago* lisp/vc/vc-git.el (vc-git-checkin): Add more checks for vc-git-patch-string
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).

2 years agoIn vc-git-log-incoming use the repository in the command "fetch" (bug#50340)
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".

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* src/emacs.c (load_pdump): Fix use of xpalloc.
Andreas Schwab [Sun, 2 Oct 2022 10:15:27 +0000 (12:15 +0200)]
* src/emacs.c (load_pdump): Fix use of xpalloc.

2 years agoAvoid assertion violation in 'xpalloc'
Eli Zaretskii [Sun, 2 Oct 2022 09:58:04 +0000 (12:58 +0300)]
Avoid assertion violation in 'xpalloc'

* src/emacs.c (load_pdump): Ensure the 3rd argument of xpalloc is
always positive.  (Bug#58232)

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