Lars Ingebrigtsen [Tue, 4 Oct 2022 13:40:53 +0000 (15:40 +0200)]
Make cropping of images work in message-mode
* lisp/gnus/message.el (message-mode): Set the image cropping function.
(message--yank-media-image-handler): Factor out...
(message--image-part-string): ... here for reuse.
(message--update-image-crop): Update the cropped data.
Alan Mackenzie [Tue, 4 Oct 2022 13:22:32 +0000 (13:22 +0000)]
CC Mode: Make c-forward-declarator move over a suffix after parens, e.g. const
Also tidy up several inaccuracies in the code.
* lisp/progmodes/cc-engine.el (c-forward-decl-arglist): Move point for modes
other than C++ Mode.
(c-forward-declarator): Move over a suffix following arglist parens
(e.g. const). Set the ARGLIST element of the return value to non-nil on
encountering an unbalanced open parenthesis. Don't move forward out of
enclosing parens.
* lisp/progmodes/cc-mode.el (c-fl-decl-end): Handle being in a multi-line
string. Move forward over token after declarator.
Lars Ingebrigtsen [Tue, 4 Oct 2022 13:09:33 +0000 (15:09 +0200)]
Move image commands to the 'i' sub map
* doc/lispref/display.texi (Showing Images): Adjust.
* lisp/image.el (image-map): Move all keys under the "i" prefix.
(image--repeat-map): New map.
(image-increase-size, image-rotate, image-decrease-size): Make
repeatable.
(image--delayed-change-size): New function.
Lars Ingebrigtsen [Tue, 4 Oct 2022 12:31:24 +0000 (14:31 +0200)]
Fix the arguments in tags--compat-initialize
* lisp/progmodes/etags.el (tags--compat-initialize): Fix argument
order -- swap the last two arguments (bug#58272).
Po Lu [Tue, 4 Oct 2022 12:26:37 +0000 (20:26 +0800)]
Update Ukrainian language info alist
* lisp/language/cyrillic.el ("Ukrainian"): Replace "Glory to
Ukraine" with "hello". See
www.gnu.org/prep/maintain/html_node/Other-Politics.html.
Denys Nykula [Tue, 4 Oct 2022 12:17:38 +0000 (14:17 +0200)]
Add Ukrainian tutorial
* etc/tutorials/TUTORIAL.uk: Create the translation.
* lisp/language/cyrillic.el: Link "Emacs Tutorial"
to the translation if the system is Ukrainian, and
add our modern greeting as a sample text.
* etc/NEWS:
* etc/tutorials/TUTORIAL.translators: Attribute my work (bug#55250).
Lars Ingebrigtsen [Tue, 4 Oct 2022 12:12:22 +0000 (14:12 +0200)]
Fix NEWS item about obsoleting the `eq' gv
Lars Ingebrigtsen [Tue, 4 Oct 2022 12:11:04 +0000 (14:11 +0200)]
Make `eq' obsolete as a generalized variable
* lisp/emacs-lisp/gv.el (eq): Make obsolete as a generalized
variable.
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).
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'.
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).
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).
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)
Eli Zaretskii [Tue, 4 Oct 2022 05:34:59 +0000 (08:34 +0300)]
; * etc/NEWS: Improve wording.
Stefan Kangas [Tue, 4 Oct 2022 05:32:04 +0000 (07:32 +0200)]
* etc/NEWS: Clarify confusing Image-Dired entry. (Bug#58279)
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)
Stefan Kangas [Tue, 4 Oct 2022 00:15:51 +0000 (02:15 +0200)]
; * lisp/proced.el (proced-mode): Manually reflow docstring.
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).
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
Stefan Kangas [Mon, 3 Oct 2022 21:06:15 +0000 (23:06 +0200)]
; * etc/NEWS: Minor copy editing.
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).
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.
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
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.
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.
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.
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.
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.
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).
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`.
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.
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.
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.
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.
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.
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)
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)
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).
Andreas Schwab [Sun, 2 Oct 2022 10:15:27 +0000 (12:15 +0200)]
* src/emacs.c (load_pdump): Fix use of 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)
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.