]> git.eshelyaron.com Git - emacs.git/log
emacs.git
14 months agoIntroduce a new TRAMP method `androidsu'
Po Lu [Mon, 26 Feb 2024 06:13:14 +0000 (14:13 +0800)]
Introduce a new TRAMP method `androidsu'

* doc/misc/tramp.texi (Quick Start Guide): Document the new
method.

* etc/NEWS (Tramp): Announce new method.

* lisp/net/tramp-adb.el (tramp-adb-handle-file-attributes)
(tramp-adb-handle-directory-files-and-attributes)
(tramp-adb-handle-file-name-all-completions): Properly print
ls's exit status in the presence of a pipe.
(tramp-adb-handle-copy-file): If the androidsu backend is in
use, call cp rather than adb push.
(tramp-adb-send-command): Disable ADB-specific code under
androidsu.
(tramp-adb-send-command-and-check): New argument
COMMAND-AUGMENTED-P.

* lisp/net/tramp-androidsu.el (tramp, tramp-adb, tramp-sh)
(tramp-androidsu-method, add-to-list)
(tramp-androidsu-maybe-open-connection)
(tramp-androidsu-generate-wrapper)
(tramp-androidsu-handle-access-file)
(tramp-androidsu-handle-add-name-to-file)
(tramp-androidsu-handle-copy-directory)
(tramp-androidsu-adb-handle-copy-file)
(tramp-androidsu-adb-handle-delete-directory)
(tramp-androidsu-adb-handle-delete-file)
(tramp-androidsu-handle-directory-file-name)
(tramp-androidsu-handle-directory-files)
(tramp-androidsu-adb-handle-directory-files-and-attributes)
(tramp-androidsu-handle-dired-uncache)
(tramp-androidsu-adb-handle-exec-path)
(tramp-androidsu-handle-expand-file-name)
(tramp-androidsu-handle-file-accessible-directory-p)
(tramp-androidsu-adb-handle-file-attributes)
(tramp-androidsu-handle-file-directory-p)
(tramp-androidsu-handle-file-equal-p)
(tramp-androidsu-adb-handle-file-executable-p)
(tramp-androidsu-adb-handle-file-exists-p)
(tramp-androidsu-handle-file-group-gid)
(tramp-androidsu-handle-file-in-directory-p)
(tramp-androidsu-sh-handle-file-local-copy)
(tramp-androidsu-handle-file-locked-p)
(tramp-androidsu-handle-file-modes)
(tramp-androidsu-adb-handle-file-name-all-completions)
(tramp-androidsu-handle-file-name-as-directory)
(tramp-androidsu-handle-file-name-case-insensitive-p)
(tramp-androidsu-handle-file-name-completion)
(tramp-androidsu-handle-file-name-directory)
(tramp-androidsu-handle-file-name-nondirectory)
(tramp-androidsu-handle-file-newer-than-file-p)
(tramp-androidsu-handle-file-notify-add-watch)
(tramp-androidsu-handle-file-notify-rm-watch)
(tramp-androidsu-handle-file-notify-valid-p)
(tramp-androidsu-adb-handle-file-readable-p)
(tramp-androidsu-handle-file-regular-p)
(tramp-androidsu-handle-file-remote-p)
(tramp-androidsu-handle-file-selinux-context)
(tramp-androidsu-handle-file-symlink-p)
(tramp-androidsu-adb-handle-file-system-info)
(tramp-androidsu-handle-file-truename)
(tramp-androidsu-handle-file-user-uid)
(tramp-androidsu-adb-handle-file-writable-p)
(tramp-androidsu-handle-find-backup-file-name)
(tramp-androidsu-handle-insert-directory)
(tramp-androidsu-handle-insert-file-contents)
(tramp-androidsu-handle-list-system-processes)
(tramp-androidsu-handle-load, tramp-androidsu-handle-lock-file)
(tramp-androidsu-handle-make-auto-save-file-name)
(tramp-androidsu-adb-handle-make-directory)
(tramp-androidsu-handle-make-lock-file-name)
(tramp-androidsu-handle-make-nearby-temp-file)
(tramp-androidsu-adb-handle-make-process)
(tramp-androidsu-sh-handle-make-symbolic-link)
(tramp-androidsu-handle-memory-info)
(tramp-androidsu-handle-process-attributes)
(tramp-androidsu-adb-handle-process-file)
(tramp-androidsu-adb-handle-rename-file)
(tramp-androidsu-adb-handle-set-file-modes)
(tramp-androidsu-adb-handle-set-file-times)
(tramp-androidsu-handle-set-visited-file-modtime)
(tramp-androidsu-handle-shell-command)
(tramp-androidsu-handle-start-file-process)
(tramp-androidsu-handle-substitute-in-file-name)
(tramp-androidsu-handle-temporary-file-directory)
(tramp-androidsu-adb-handle-get-remote-gid)
(tramp-androidsu-adb-handle-get-remote-groups)
(tramp-androidsu-adb-handle-get-remote-uid)
(tramp-androidsu-handle-unlock-file)
(tramp-androidsu-handle-verify-visited-file-modtime)
(tramp-androidsu-handle-write-region)
(tramp-androidsu-file-name-handler-alist)
(tramp-androidsu-file-name-p, tramp-androidsu-file-name-handler)
(tramp-register-foreign-file-name-handler)
(tramp-adb-connection-local-default-ps-profile, shell)
(tramp-unload-hook, tramp-androidsu): New file.

(cherry picked from commit babe6a5e948985f961ffd36f64323950abd98b7f)

14 months ago* lisp/vc/vc-hooks.el (vc-mode): Give a body to the function (bug#69387)
Stefan Monnier [Sun, 25 Feb 2024 18:18:08 +0000 (13:18 -0500)]
* lisp/vc/vc-hooks.el (vc-mode): Give a body to the function (bug#69387)

(cherry picked from commit c6f2add964ce1ac69ba6705bc869ee2f447da3cb)

14 months agoModify last change acc to comments
Michael Albinus [Sun, 25 Feb 2024 14:37:06 +0000 (15:37 +0100)]
Modify last change acc to comments

* lisp/simple.el (read-passwd-mode): Change `text' entry of icons.
(read-passwd-toggle-visibility): Rename.
(read-passwd-mode):
* lisp/subr.el (read-passwd-map): Adapt callees.

(cherry picked from commit e02c4a864f02787f0e194c9e8a6d4ab0b18ca39f)

14 months ago'read-passwd' can toggle the visibility of passwords
Michael Albinus [Sun, 25 Feb 2024 09:06:09 +0000 (10:06 +0100)]
'read-passwd' can toggle the visibility of passwords

* doc/lispref/minibuf.texi (Reading a Password):
* etc/NEWS: 'read-passwd' can toggle the visibility of passwords.

* etc/images/README: Mention the new images below.
* etc/images/conceal.pbm:
* etc/images/conceal.svg:
* etc/images/reveal.pbm:
* etc/images/reveal.svg: New images.

* lisp/simple.el (read-passwd--mode-line-buffer)
(read-passwd--mode-line-icon): New defvars.
(read-passwd--toggle-visibility, read-passwd-mode): New defuns.

* lisp/subr.el (read-passwd-map): Add 'TAB' binding.
(read-passwd--hide-password): New defvar.
(read-passwd--hide-password): Rename function from
`read-password--hide-password'.  Adapt callees.  Implement both
hiding and showing the password.  (Bug#69237)
(read-passwd): Call `read-passwd-mode'.

(cherry picked from commit 39e3fce0d5e0f5db00e44905bcd2590170098d63)

14 months ago; * lisp/subr.el (if-let, and-let*): Tweak doc strings. (Bug#69108)
Michael Heerdegen [Sun, 18 Feb 2024 01:27:56 +0000 (02:27 +0100)]
; * lisp/subr.el (if-let, and-let*): Tweak doc strings.  (Bug#69108)

(cherry picked from commit 67ba629a91aee3db39f3c81744e88c02ee710bdc)

14 months agoDon't warn about _ not left unused in if-let and alike
Michael Heerdegen [Fri, 16 Feb 2024 21:07:18 +0000 (22:07 +0100)]
Don't warn about _ not left unused in if-let and alike

The macro expansions did not leave a variable _ unused; this triggered
an irritating compiler warning (bug#69108).

* lisp/subr.el (internal--build-binding): Handle bindings of the form
(_ EXPR) separately.

(cherry picked from commit e680827e814e155cf79175d87ff7c6ee3a08b69a)

14 months ago* lisp/progmodes/project.el (project-any-command): Allow local keymaps.
Juri Linkov [Sun, 25 Feb 2024 07:32:45 +0000 (09:32 +0200)]
* lisp/progmodes/project.el (project-any-command): Allow local keymaps.

Use overriding-terminal-local-map instead of overriding-local-map.
This allows using keys from local maps (bug#69242).

(cherry picked from commit 6b800f9adf3506bf113539cf22cd07c7cda9f7b8)

14 months ago* nt/cmdproxy.c (_snprintf) [_UCRT]: Redirect to 'snprintf'.
Eli Zaretskii [Sun, 25 Feb 2024 06:20:44 +0000 (08:20 +0200)]
* nt/cmdproxy.c (_snprintf) [_UCRT]: Redirect to 'snprintf'.

(cherry picked from commit 782ff2f826e2fde75f6491f3a6cf0d7fcd5510b2)

14 months agoArrange for dialog boxes during emacsclient requests on Android
Po Lu [Sun, 25 Feb 2024 03:41:02 +0000 (11:41 +0800)]
Arrange for dialog boxes during emacsclient requests on Android

* lisp/server.el (server-execute): Bind use-dialog-box-override
if (featurep 'android).

* lisp/subr.el (use-dialog-box-override): New option.
(use-dialog-box-p): Always display dialog boxes if variable is
set.

(cherry picked from commit 05116eac0c199b0c8409a32b349a42a21b5a0fb0)

14 months ago* lisp/progmodes/elisp-mode.el (eval-last-sexp, eval-defun): Fix thinko
Stefan Monnier [Sat, 24 Feb 2024 22:52:14 +0000 (17:52 -0500)]
* lisp/progmodes/elisp-mode.el (eval-last-sexp, eval-defun): Fix thinko

(cherry picked from commit 9a801f0b4621a46149ccf650ed1dc27942157562)

14 months ago* etc/NEWS.25: Add 'obarrayp' as well
Stefan Monnier [Sat, 24 Feb 2024 18:12:20 +0000 (13:12 -0500)]
* etc/NEWS.25: Add 'obarrayp' as well

(cherry picked from commit 0503657a9cffbe3a5fc4f0023ee9985073e62d2c)

14 months ago* etc/NEWS.25: Add missing announcement of 'obarray' package
Stefan Monnier [Sat, 24 Feb 2024 17:49:20 +0000 (12:49 -0500)]
* etc/NEWS.25: Add missing announcement of 'obarray' package

(cherry picked from commit 5fa6042c739b2b0abb320964d5391704c8fbb5a6)

14 months agoReplace XSETSYMBOL with make_lisp_symbol
Mattias Engdegård [Sat, 24 Feb 2024 16:47:37 +0000 (17:47 +0100)]
Replace XSETSYMBOL with make_lisp_symbol

* src/lisp.h (XSETSYMBOL): Remove.  All callers changed to use
make_lisp_symbol.

(cherry picked from commit de6b1e1efb1a36c69e7a6e09297e1de5b1477121)

14 months ago* src/editfns.c (Fget_pos_property): Fix thinko (bug#69358)
Stefan Monnier [Sat, 24 Feb 2024 17:23:41 +0000 (12:23 -0500)]
* src/editfns.c (Fget_pos_property): Fix thinko (bug#69358)

(cherry picked from commit 56beeff14365d8e802ab7b4888aa7e95b2cf9509)

14 months ago(diff-refine-nonmodified): Complete the implementation
Stefan Monnier [Sat, 24 Feb 2024 16:02:37 +0000 (11:02 -0500)]
(diff-refine-nonmodified): Complete the implementation

* lisp/vc/diff-mode.el (diff--refine-hunk): Implement
`diff-refine-nonmodified` for old-style-context and "normal" diffs.

(cherry picked from commit 68096a716bfe3c212a68b3d285a0386ea0867130)

14 months ago; Fix a recent change in diff-mode.el
Eli Zaretskii [Sat, 24 Feb 2024 15:13:47 +0000 (17:13 +0200)]
; Fix a recent change in diff-mode.el

* lisp/vc/diff-mode.el (diff-refine-nonmodified): Doc fix.

* etc/NEWS: Improve wording.

(cherry picked from commit 3076e79a6a11f9df33c5bcaa7aa58955550aeef0)

14 months agoSuppress docstring control char warning in macro-generated function
Mattias Engdegård [Sat, 24 Feb 2024 11:08:09 +0000 (12:08 +0100)]
Suppress docstring control char warning in macro-generated function

* lisp/progmodes/cc-defs.el (c-lang-defconst):
Make sure that `val` won't be treated as a docstring.

(cherry picked from commit eeb89a5cb292bffe40ba7d0b0cf81f82f8452bf8)

14 months ago; Fix last change.
Eli Zaretskii [Sat, 24 Feb 2024 11:03:11 +0000 (13:03 +0200)]
; Fix last change.

(cherry picked from commit 4eed2768b10d074612853b68248a4b255a5c7d58)

14 months ago; * etc/NEWS: Recommend obarray-make as correct replacement.
Mattias Engdegård [Sat, 24 Feb 2024 10:43:28 +0000 (11:43 +0100)]
; * etc/NEWS: Recommend obarray-make as correct replacement.

(cherry picked from commit 1972beda6de3d6895cc197dc292721ca963b234c)

14 months agoAdd sml-mode entry to 'eglot-server-programs'
Philip Kaludercic [Tue, 13 Feb 2024 09:38:48 +0000 (10:38 +0100)]
Add sml-mode entry to 'eglot-server-programs'

* lisp/progmodes/eglot.el (eglot-server-programs): Use the
"millet" LSP server (https://github.com/azdavis/millet).

(cherry picked from commit 477eb882b57b3defd43ea8dd9510cfdf5fd9ee79)

14 months agoFix 'help-quick-toggle'
Eli Zaretskii [Sat, 24 Feb 2024 09:59:30 +0000 (11:59 +0200)]
Fix 'help-quick-toggle'

* lisp/help.el (help-quick-sections): Fix "kill-region" command.
Add a doc string.  (Bug#69345)

(cherry picked from commit 01ebc95114fe89ef623bc7ebdd3c3e1b9ef06b4e)

14 months ago; Fix last change in lisp.h.
Eli Zaretskii [Sat, 24 Feb 2024 09:27:12 +0000 (11:27 +0200)]
; Fix last change in lisp.h.

(cherry picked from commit 03fce8401639a1d60bb66bf374d3d44b3331ac8a)

14 months agoCheck daemon is initialized before suppressing its init errors
Spencer Baugh [Tue, 13 Feb 2024 17:20:39 +0000 (12:20 -0500)]
Check daemon is initialized before suppressing its init errors

Previously, the default error handler would correctly suppress
unhandled errors raised when IS_DAEMON and the initial frame
was current, since this is the normal state of operation for a
daemon-mode Emacs.  However, this also incorrectly suppressed
errors raised while a daemon-mode Emacs was starting up.

Now, errors raised while a daemon-mode Emacs is starting up will be
handled just like errors when a non-daemon Emacs is starting up.

This was previously the case before changes for bug#1310 and
bug#1836, which added the suppression of errors when IS_DAEMON.
DAEMON_RUNNING didn't exist at the time of those changes, but now
it does, so we can do better.

* src/keyboard.c (Fcommand_error_default_function): Check
!DAEMON_RUNNING in addition to IS_DAEMON.  (Bug#68799)
* src/lisp.h (DAEMON_RUNNING): Add a clarifying comment about
what this #define means.

(cherry picked from commit 526c262149839702b94253d5eff195054ac5cd9e)

14 months agoAdd context to errors thrown by server-start during startup
Spencer Baugh [Wed, 14 Feb 2024 16:09:33 +0000 (11:09 -0500)]
Add context to errors thrown by server-start during startup

When server-start errors during startup, the error is printed to
the terminal without context.  To help the user understand
better what went wrong, that printed error now mentions that the
error came from starting up the daemon.

* lisp/startup.el (command-line): Catch and annotate errors
thrown by server-start.  (bug#68799)

(cherry picked from commit 0bdd2eb9af171fa9d825bc6d09e0ad5d114684c4)

14 months ago; Fix compiler warning
Arash Esbati [Sat, 24 Feb 2024 08:30:16 +0000 (09:30 +0100)]
; Fix compiler warning

* lisp/textmodes/reftex-vars.el (reftex-cite-format-builtin): Fix
character escaping in the docstring.  (bug#69341)

(cherry picked from commit d1fe392f93ce7e71cd378326814ec4e3a4143f0c)

14 months ago; * admin/authors.el (authors-aliases): Fix last change.
Eli Zaretskii [Sat, 24 Feb 2024 07:32:06 +0000 (09:32 +0200)]
; * admin/authors.el (authors-aliases): Fix last change.

(cherry picked from commit afe49c7e2a2340432418df264f93d8ac88bca95f)

14 months ago; Normalize Morgan Smith's attributions.
Morgan Smith [Sat, 24 Feb 2024 00:03:13 +0000 (19:03 -0500)]
; Normalize Morgan Smith's attributions.

(cherry picked from commit 8b1f10f8cf473cdc57e780845393d8681ee2ed4c)

14 months ago; * etc/NEWS: How to fix old code that uses vectors as obarrays.
Eli Zaretskii [Sat, 24 Feb 2024 07:21:35 +0000 (09:21 +0200)]
; * etc/NEWS: How to fix old code that uses vectors as obarrays.

(cherry picked from commit 15b6d72599b961ebe23e820e44ba2ffc12e49c31)

14 months ago* configure.ac: Detect renameat2 with gl_CHECK_FUNCS_ANDROID.
Po Lu [Sat, 24 Feb 2024 03:09:05 +0000 (11:09 +0800)]
* configure.ac: Detect renameat2 with gl_CHECK_FUNCS_ANDROID.

(cherry picked from commit c7a2b7d023dfef78f6cb6f00fc8194ce8eaaf8a4)

14 months agoMake erc-cmd-AMSG session local; add /GMSG, /AME and /GME
Emanuel Berg [Tue, 23 Jan 2024 13:21:49 +0000 (14:21 +0100)]
Make erc-cmd-AMSG session local; add /GMSG, /AME and /GME

* etc/ERC-NEWS: Mention new slash commands.
* lisp/erc/erc.el (erc-cmd-AMSG): Make it consistent with the doc
string by only affecting the current connection.
(erc-cmd-GMSG, erc-cmd-AME, erc-cmd-GME): New IRC slash commands.
* test/lisp/erc/erc-scenarios-misc-commands.el
(erc-scenarios-misc-commands--AMSG-GMSG-AME-GME): New test.
* test/lisp/erc/resources/commands/amsg-barnet.eld: New file.
* test/lisp/erc/resources/commands/amsg-foonet.eld: New file.
(Bug#68401)

(cherry picked from commit 15a140a24664e96620838136640d660f842dfa49)

14 months ago; Don't mention erc-branded Compat macros in ERC-NEWS
F. Jason Park [Thu, 22 Feb 2024 04:08:37 +0000 (20:08 -0800)]
; Don't mention erc-branded Compat macros in ERC-NEWS

* doc/misc/erc.texi: Change fancy SASL example to also demonstrate
`let'-binding a local module.
* etc/ERC-NEWS: Don't mention `erc-compat-call' and
`erc-compat-function' because Emacs now ships with a compat.el stub
library.
* lisp/erc/erc-backend.el (erc-decode-parsed-server-response): Add
comments.
* lisp/erc/erc.el (erc): Mention return value.

(cherry picked from commit 56706254a8ee09e651097fb5075cae75b3bd4e22)

14 months agoFix bug#69321
Po Lu [Sat, 24 Feb 2024 02:01:57 +0000 (10:01 +0800)]
Fix bug#69321

* java/org/gnu/emacs/EmacsWindow.java (onKeyDown, onKeyUp):
Provide Right Alt (Alt Gr) masks to system keymap routines.
(bug#69321)

(cherry picked from commit 8d5983aa78e36afa815325e7bce85a81d314e67b)

14 months ago; * .dir-locals.el (java-mode): Transfer suitable c-mode options.
Po Lu [Sat, 24 Feb 2024 02:01:03 +0000 (10:01 +0800)]
; * .dir-locals.el (java-mode): Transfer suitable c-mode options.

(cherry picked from commit 65d4bf711055dc8d23cea9b2ec8a57cdbfa6cf05)

14 months agodiff-mode.el (diff-refine-nonmodified): New option
Stefan Monnier [Fri, 23 Feb 2024 22:03:10 +0000 (17:03 -0500)]
diff-mode.el (diff-refine-nonmodified): New option

* lisp/vc/diff-mode.el (diff-font-lock-keywords): Refer directly to
font-lock faces.
(diff-apply-hunk): Use `user-error` for errors usually not due to bugs.
(diff--refine-propertize): New function.
(diff-refine-nonmodified): New custom var (bug#61396).
(diff--refine-hunk): Use them.

(cherry picked from commit 26290870b3505b8971c73fe3a82b69e3c4e86b88)

14 months agoelisp-mode.el: Use `handler-bind` instead of `debug-on-error`
Stefan Monnier [Fri, 23 Feb 2024 21:46:01 +0000 (16:46 -0500)]
elisp-mode.el: Use `handler-bind` instead of `debug-on-error`

* lisp/progmodes/elisp-mode.el (elisp-enable-lexical-binding):
Don't get fooled by a global binding of `lexical-binding` to t.
(elisp--eval-last-sexp-fake-value): Delete var.
(elisp--eval-defun): Don't let-bind `debug-on-error` since it's
already arranged by the only caller.
(eval-last-sexp, eval-defun): Use `handler-bind` instead of
`debug-on-error`.

(cherry picked from commit 84f72f19e514db8f8f6e469340fb5fa0719d40b6)

14 months ago* lisp/mail/rmail.el (rmail-resend): Use `with-syntax-table`
Stefan Monnier [Fri, 23 Feb 2024 16:38:48 +0000 (11:38 -0500)]
* lisp/mail/rmail.el (rmail-resend): Use `with-syntax-table`

(cherry picked from commit 3599a9a1cf1f8bed7c7f00fd8f00b2bfc0c4271f)

14 months agormail.el: Prefer #' to quote function names
Stefan Monnier [Fri, 23 Feb 2024 16:37:24 +0000 (11:37 -0500)]
rmail.el: Prefer #' to quote function names

* lisp/mail/rmail.el (rmail-pop-to-buffer, rmail-mode-map)
(rmail-mode-1, rmail-generate-viewer-buffer, rmail-variables)
(rmail-find-all-files, rmail-insert-inbox-text)
(rmail-set-message-counters, rmail-only-expunge, rmail-reply)
(rmail-resend, rmail-fontify-buffer-function)
(rmail-unfontify-buffer-function, rmail-install-speedbar-variables)
(after-save-hook): Use #' where applicable.

(cherry picked from commit 048eaadd8cc97faf0f3e70a8d81d06f915c52081)

14 months ago(rmail-font-lock-keywords): Avoid old-style `font-lock*-face` variables
Stefan Monnier [Fri, 23 Feb 2024 16:31:43 +0000 (11:31 -0500)]
(rmail-font-lock-keywords): Avoid old-style `font-lock*-face` variables

* lisp/mail/rmail.el (rmail-font-lock-keywords): Refer directly to the
font-lock faces.

(cherry picked from commit 0b855e1465b26f69156a35befebb4167145cdccf)

14 months agoFix Flymake lighter tool-tip from generating errors
Robert A. Burks [Fri, 16 Feb 2024 23:17:52 +0000 (18:17 -0500)]
Fix Flymake lighter tool-tip from generating errors

Flymake tool-tip was generating errors on mouse over of
mode-line lighter on inactive windows and on the minor mode
indicator in the describe-mode Help page.
* lisp/progmodes/flymake.el (flymake--mode-line-title):
'help-echo' now uses buffer local state and makes null
check.  (Bug#69248)

Copyright-paperwork-exempt: yes
(cherry picked from commit 2b7dc7fef814753f1c6d4c352fe69bb6e167cd07)

14 months agoWarn about docstrings with control characters
Mattias Engdegård [Fri, 23 Feb 2024 12:57:04 +0000 (13:57 +0100)]
Warn about docstrings with control characters

It is easy to include control chars in doc strings by mistake, and the
result is often an unreadable mess.

* lisp/emacs-lisp/bytecomp.el (byte-compile-warning-types)
(byte-compile-warnings, byte-compile--docstring-style-warn):
Add `docstrings-control-chars` warning.
* etc/NEWS: Announce.

(cherry picked from commit 90d3b3408e404aba383302c3147d3ca614619986)

14 months agoReplace use of obsolete eshell-kill-output in test
Mattias Engdegård [Fri, 23 Feb 2024 12:14:18 +0000 (13:14 +0100)]
Replace use of obsolete eshell-kill-output in test

* test/lisp/eshell/eshell-tests.el (eshell-test/flush-output):
Use eshell-delete-output instead of eshell-kill-output.

(cherry picked from commit a8f167547bc15eacaf5fbc07c1e75f603e70862d)

14 months agoUpdate NEWS and manual after obarray changes
Mattias Engdegård [Sat, 17 Feb 2024 12:27:25 +0000 (13:27 +0100)]
Update NEWS and manual after obarray changes

* doc/lispref/abbrevs.texi (Abbrev Tables):
* doc/lispref/symbols.texi (Creating Symbols):
* doc/lispref/objects.texi (Type Predicates): Update text for obarray
now being an opaque type.
* etc/NEWS: Announce.

(cherry picked from commit 6803b70c1972bc82f7dc1f1d6bbb2a60b6f40367)

14 months agoUse the new obarray type for the initial obarray
Mattias Engdegård [Sun, 11 Feb 2024 14:11:21 +0000 (15:11 +0100)]
Use the new obarray type for the initial obarray

This can improve performance a lot, especially after the obarray has
been fed many symbols.

* src/lread.c (OBARRAY_SIZE): Remove.
(load_path_check): Create an obarray object instead of a vector.

(cherry picked from commit 3ea77c735de975ebda707e0e1e8bb5e0adad2bf5)

14 months agoAdd a proper type for obarrays
Mattias Engdegård [Sat, 10 Feb 2024 20:14:09 +0000 (21:14 +0100)]
Add a proper type for obarrays

The new opaque type replaces the previous use of vectors for obarrays.
`obarray-make` now returns objects of this type.  Functions that take
obarrays continue to accept vectors for compatibility, now just using
their first slot to store an actual obarray object.

obarray-size and obarray-default-size now obsolete.

* lisp/obarray.el (obarray-default-size, obarray-size):
Declare obsolete.
(obarray-make, obarrayp, obarray-clear): Remove from here.
* src/fns.c (reduce_emacs_uint_to_hash_hash): Remove from here.
* src/lisp.h (struct Lisp_Obarray, OBARRAYP, XOBARRAY, CHECK_OBARRAY)
(make_lisp_obarray, obarray_size, check_obarray)
(obarray_iter_t, make_obarray_iter, obarray_iter_at_end)
(obarray_iter_step, obarray_iter_symbol, DOOBARRAY, knuth_hash): New.
(reduce_emacs_uint_to_hash_hash): Moved here.
* src/lread.c (check_obarray): Renamed and reworked as...
(checked_obarray_slow): ...this.
(intern_sym, Funintern, oblookup, map_obarray)
(Finternal__obarray_buckets): Adapt to new type.
(obarray_index, allocate_obarray, make_obarray, grow_obarray)
(obarray_default_bits, Fobarray_make, Fobarrayp, Fobarray_clear): New.
* etc/emacs_lldb.py (Lisp_Object):
* lisp/emacs-lisp/cl-macs.el (`(,type . ,pred)):
* lisp/emacs-lisp/cl-preloaded.el (cl--typeof-types):
* lisp/emacs-lisp/comp-common.el (comp-known-type-specifiers):
* lisp/emacs-lisp/comp.el (comp-known-predicates):
* src/alloc.c (cleanup_vector, process_mark_stack):
* src/data.c (Ftype_of, syms_of_data):
* src/minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
* src/pdumper.c (dump_obarray_buckets, dump_obarray, dump_vectorlike):
* src/print.c (print_vectorlike_unreadable):
* test/lisp/abbrev-tests.el (abbrev-make-abbrev-table-test):
* test/lisp/obarray-tests.el (obarrayp-test)
(obarrayp-unchecked-content-test, obarray-make-default-test)
(obarray-make-with-size-test):
Adapt to new type.

(cherry picked from commit 462d8ba813e07a25b71f5c1b38810a29e21f784c)

14 months agoAdd obarray-clear and use it
Mattias Engdegård [Sun, 11 Feb 2024 17:30:22 +0000 (18:30 +0100)]
Add obarray-clear and use it

* lisp/obarray.el (obarray-clear): New.
* lisp/abbrev.el (clear-abbrev-table):
* lisp/vc/vc.el (vc-clear-context): Use it instead of assuming the
obarray is a vector that can be 0-filled.
* test/lisp/obarray-tests.el (obarray-clear): New test.

(cherry picked from commit 6a182658a533acab94d8fa0aec3e2b7a4f7d6a93)

14 months agoUse obarrayp, not vectorp, to detect obarrays
Mattias Engdegård [Sat, 10 Feb 2024 19:59:42 +0000 (20:59 +0100)]
Use obarrayp, not vectorp, to detect obarrays

* lisp/abbrev.el (abbrev--active-tables):
* lisp/mail/mailabbrev.el (mail-abbrevs-setup, build-mail-abbrevs)
(define-mail-abbrev, mail-resolve-all-aliases)
(mail-abbrev-insert-alias):
* lisp/mail/rmail.el (rmail-resend):
* lisp/minibuffer.el (completion-table-with-context):
* lisp/progmodes/etags.el (etags-tags-apropos-additional):
(etags--xref-apropos-additional):
Use obarrayp as predicate for obarrays.

(cherry picked from commit 3beaa3131e78bea618cb93d03c5d8b0f8977fb94)

14 months agoUse obarray-make instead of make-vector to create obarrays
Mattias Engdegård [Thu, 8 Feb 2024 17:23:00 +0000 (18:23 +0100)]
Use obarray-make instead of make-vector to create obarrays

This prepares for the introduction of an actual obarray type.

* lisp/cedet/semantic/lex-spp.el (semantic-lex-spp-dynamic-map)
(semantic-lex-spp-dynamic-map-stack, semantic-lex-make-spp-table):
* lisp/cedet/semantic/lex.el (semantic-lex-make-keyword-table)
(semantic-lex-make-type-table):
* lisp/completion.el (cmpl-prefix-obarray, cmpl-obarray)
(clear-all-completions):
* lisp/emacs-lisp/checkdoc.el (checkdoc-defun-info):
* lisp/emacs-lisp/eldoc.el (eldoc-message-commands)
(eldoc-edit-message-commands):
* lisp/mail/mail-extr.el (mail-extr-all-top-level-domains):
* lisp/mail/rmailkwd.el (rmail-label-obarray):
* lisp/net/dns.el (dns-cache):
* lisp/net/eww.el (eww-suggested-uris):
* lisp/net/imap.el (imap-open, imap-mailbox-select-1)
(imap-message-copyuid-1, imap-message-appenduid-1):
* lisp/obsolete/pgg.el (pgg-passphrase-cache, pgg-pending-timers):
* lisp/play/cookie1.el (cookie-cache):
* lisp/progmodes/cc-defs.el (c-lang-constants, c-define-lang-constant):
* lisp/progmodes/cc-langs.el (c-keywords-obarray):
* lisp/vc/vc-hooks.el (vc-file-prop-obarray):
* test/lisp/obarray-tests.el (obarrayp-test):
* test/src/minibuf-tests.el (minibuf-tests--strings-to-obarray):
Use obarray-make instead of obarray-make.

(cherry picked from commit aa82fe9931851e66aa335e96ae35fd967951b281)

14 months ago* src/pdumper.c (dump_subr): Rename 'native_comp' -> 'non_primitive'.
Andrea Corallo [Fri, 23 Feb 2024 00:07:46 +0000 (01:07 +0100)]
* src/pdumper.c (dump_subr): Rename 'native_comp' -> 'non_primitive'.

(cherry picked from commit 32843c7b36b8bf3dc9ac82059a1c3cab03cd8c98)

14 months ago* src/fns.c (sxhash_bignum): Include sign bit in hash.
Mattias Engdegård [Fri, 23 Feb 2024 10:26:45 +0000 (11:26 +0100)]
* src/fns.c (sxhash_bignum): Include sign bit in hash.

(cherry picked from commit 6a53836a245a8154f1f176ce2a787c24aa7409cb)

14 months ago* src/fns.c (hash_string): Suppress warning on 32-bit platforms
Mattias Engdegård [Thu, 22 Feb 2024 19:15:33 +0000 (20:15 +0100)]
* src/fns.c (hash_string): Suppress warning on 32-bit platforms

Remove a shift-too-wide complaint by GCC in code that is never reached
on platforms where that shift is too wide.

(cherry picked from commit 53e60fb004c0e8b40b01fcfcf7f406557e35aa3e)

14 months agoTone down python-mode warning to a simple message (bug#68559)
Mattias Engdegård [Thu, 22 Feb 2024 16:20:58 +0000 (17:20 +0100)]
Tone down python-mode warning to a simple message (bug#68559)

* lisp/progmodes/python.el
(python-shell-completion-native-turn-on-maybe):
There is no need for an alarming warning when using an inferior Python
without GNU readline; a calm message will do.

(cherry picked from commit f85280503a3a67e1618069b1c7d6810efa924fe8)

14 months agoFix bug#69140
Po Lu [Fri, 23 Feb 2024 02:18:17 +0000 (10:18 +0800)]
Fix bug#69140

* src/window.c (grow_mini_window): Don't adjust frame matrices
or force redisplay if the provided window cannot be
resized.  (bug#69140)

(cherry picked from commit b868690feff44c7242c942490d1d8bc6d2811fa2)

14 months ago* Fix 'parse-colon-path' entry in 'comp-known-type-specifiers'
Andrea Corallo [Thu, 22 Feb 2024 19:40:57 +0000 (20:40 +0100)]
* Fix 'parse-colon-path' entry in 'comp-known-type-specifiers'

* lisp/emacs-lisp/comp-common.el (comp-known-type-specifiers): Fix
'parse-colon-path'.

(cherry picked from commit 58ca91fe0723c861d53375f52e5b6dd54a49a2e3)

14 months ago* lisp/help-fns.el (describe-mode-outline): New user option (bug#64684).
Juri Linkov [Thu, 22 Feb 2024 17:38:17 +0000 (19:38 +0200)]
* lisp/help-fns.el (describe-mode-outline): New user option (bug#64684).

(describe-mode, describe-mode--minor-modes): Use 'describe-mode-outline'.

* lisp/help-mode.el (help-setup-xref): After disabling outline-minor-mode
also kill all outline-related local variables.  So that they won't affect
the output of other help commands in the same help buffer.

(cherry picked from commit cc58626f643c1b19e66bab9c6a39026c7e419ab9)

14 months ago; * etc/PROBLEMS: Describe input lags due to GTK IM (bug#69246).
Eli Zaretskii [Thu, 22 Feb 2024 13:15:53 +0000 (15:15 +0200)]
; * etc/PROBLEMS: Describe input lags due to GTK IM (bug#69246).

(cherry picked from commit 70cf4b694b317b367a046b0b03746c56e23fcb91)

14 months agoRecognize functions and macros as defuns in 'cmake-ts-mode'
Jörg Bornemann [Sat, 17 Feb 2024 20:18:02 +0000 (21:18 +0100)]
Recognize functions and macros as defuns in 'cmake-ts-mode'

* lisp/progmodes/cmake-ts-mode.el (cmake-ts-mode--function-name):
Renamed to 'cmake-ts-mode--defun-name' since the function handles
now functions and macros.
(cmake-ts-mode--defun-name): Return text of the first 'argument'
node below 'function_def' and 'macro_def' nodes.
(cmake-ts-mode): Set up treesit-defun-type-regexp and
'treesit-defun-name-function'.  Change the imenu setup to
recognize macros too.  Since we have set up
'treesit-defun-name-function', we don't have to
pass 'cmake-ts-mode--function-name' anymore.  (Bug#69186)

To make `treesit-defun-at-point' work properly, we have to recognize
function_def/macro_def nodes, not the lower-level *_command nodes.

(cherry picked from commit 6b6761d534259ab4d5409e72754e46af13623dda)

14 months ago; Insert missing JNI prologues
Po Lu [Thu, 22 Feb 2024 05:30:18 +0000 (13:30 +0800)]
; Insert missing JNI prologues

* src/android.c (shouldForwardMultimediaButtons)
(shouldForwardCtrlSpace, notifyPixelsChanged, setupSystemThread):

* src/androidvfs.c (safSyncAndReadInput, safSync, safPostRequest)
(ftruncate): Insert absent JNI prologues.

(cherry picked from commit 8e0f134653b2951e80cd5659fba5c36e416931fa)

14 months ago; * admin/CPP-DEFINES: Fix typos.
Po Lu [Thu, 22 Feb 2024 02:21:12 +0000 (10:21 +0800)]
; * admin/CPP-DEFINES: Fix typos.

(cherry picked from commit ee6343556a53770cd2c7730b48ce1731423d8825)

14 months ago; * admin/CPP-DEFINES: Update with Android defines.
Po Lu [Thu, 22 Feb 2024 02:08:12 +0000 (10:08 +0800)]
; * admin/CPP-DEFINES: Update with Android defines.

(cherry picked from commit f024b63ecf8d4ebfd518beb4c2dfc853d725ec19)

14 months agoEnable inotify on systems with inotify_init yet no init1 variant
Po Lu [Thu, 22 Feb 2024 01:53:48 +0000 (09:53 +0800)]
Enable inotify on systems with inotify_init yet no init1 variant

* configure.ac (HAVE_INOTIFY): Check for the presence of
inotify_init in addition to inotify_init1.

* src/inotify.c (Finotify_add_watch): Implement with
inotify_init if inotify_init1 is absent.

(cherry picked from commit 39a84232700c40fa74305970dd16cd5cb8b8bea0)

14 months ago; * lisp/emacs-lisp/comp-run.el: Fix typo.
Andrea Corallo [Wed, 21 Feb 2024 20:38:11 +0000 (21:38 +0100)]
; * lisp/emacs-lisp/comp-run.el: Fix typo.

(cherry picked from commit b214cb2843851c410d603e7fb487a462d5f7bee1)

14 months ago* doc/lispref/modes.texi (Tabulated List Mode): Update.
Juri Linkov [Wed, 21 Feb 2024 17:43:28 +0000 (19:43 +0200)]
* doc/lispref/modes.texi (Tabulated List Mode): Update.

In the description of 'tabulated-list-format' document
the missing value 'props' that was added long ago.

(cherry picked from commit f28a557c7d4b39f302630ed2b19a73fc375e7ff4)

14 months ago* lisp/emacs-lisp/comp.el (comp--compute-function-types): Fix missing doc.
Andrea Corallo [Wed, 21 Feb 2024 16:45:41 +0000 (17:45 +0100)]
* lisp/emacs-lisp/comp.el (comp--compute-function-types): Fix missing doc.

(cherry picked from commit 44d5c667d7775f881473c7c6f7d9bdef7594bd79)

14 months ago; Skip commit e6882a5cc89d9375dfa73156db6836af19ef7b8a
Eshel Yaron [Wed, 28 Feb 2024 17:39:27 +0000 (18:39 +0100)]
; Skip commit e6882a5cc89d9375dfa73156db6836af19ef7b8a

14 months ago; Update URL of the tree-sitter-lua grammar
john muhl [Wed, 21 Feb 2024 16:14:05 +0000 (10:14 -0600)]
; Update URL of the tree-sitter-lua grammar

* admin/notes/tree-sitter/build-module/build.sh:
* lisp/progmodes/lua-ts-mode.el:
* test/infra/Dockerfile.emba: Use the new URL.  (bug#69304)

(cherry picked from commit 35d99b1ec7c56d4a5c09af36e6bbd7f0f959cccc)

14 months ago; Add two comments on comp-known-predicates cl-deftype-satisfies
Andrea Corallo [Wed, 21 Feb 2024 14:45:40 +0000 (15:45 +0100)]
; Add two comments on comp-known-predicates cl-deftype-satisfies

* lisp/emacs-lisp/comp.el (comp-known-predicates): Add comment.
* lisp/emacs-lisp/cl-macs.el: Likewise.

(cherry picked from commit 88abbf00af69cf7e5f36e318e6935f7d1500af7f)

14 months ago* Add few missing entries in 'comp-known-predicates'
Andrea Corallo [Wed, 21 Feb 2024 14:45:10 +0000 (15:45 +0100)]
* Add few missing entries in 'comp-known-predicates'

* lisp/emacs-lisp/comp.el (comp-known-predicates): Add framep, markerp,
number-or-marker-p, overlayp, processp, subrp and windowp and sort it
alphabetically.

(cherry picked from commit c65a59a9e90524efa23d9151c31dad66a08ccb90)

14 months ago* lisp/emacs-lisp/comp-cstr.el (comp-cstr): Rename constructors.
Andrea Corallo [Wed, 21 Feb 2024 14:06:18 +0000 (15:06 +0100)]
* lisp/emacs-lisp/comp-cstr.el (comp-cstr): Rename constructors.

(cherry picked from commit 5aeea8dc2c0bdd01de3ad271723e9d1737d8a056)

14 months ago; * lisp/emacs-lisp/comp.el (native-comp-debug): Fix spacing.
Andrea Corallo [Wed, 21 Feb 2024 10:18:28 +0000 (11:18 +0100)]
; * lisp/emacs-lisp/comp.el (native-comp-debug): Fix spacing.

(cherry picked from commit 1e1d3f3acd8567addc0dab4bc34dc5c7f2405556)

14 months ago* Make 'comp--compute-function-types' a pass
Andrea Corallo [Wed, 21 Feb 2024 10:18:06 +0000 (11:18 +0100)]
* Make 'comp--compute-function-types' a pass

* lisp/emacs-lisp/comp.el (comp-passes): Add comp--compute-function-types.
(comp--compute-function-types): New function.
(comp--compute-function-type): Move it.
(comp--final): Update it.

(cherry picked from commit 7215c63fc0f9d7f48ac20578d310a8b3d86b0eae)

14 months agoRemove redundant call to 'eln_load_path_final_clean_up'
Eli Zaretskii [Wed, 21 Feb 2024 15:16:45 +0000 (17:16 +0200)]
Remove redundant call to 'eln_load_path_final_clean_up'

* src/emacs.c (shut_down_emacs): Remove redundant call to
'eln_load_path_final_clean_up'.  We call it from 'kill-emacs'
right before the call to 'exit'.

(cherry picked from commit 8987e1b093b07756d18c861d1c7febb85fe88bef)

14 months ago; * src/lisp.h: Add Lisp_Object tagging scheme overview
Mattias Engdegård [Wed, 21 Feb 2024 14:22:21 +0000 (15:22 +0100)]
; * src/lisp.h: Add Lisp_Object tagging scheme overview

(cherry picked from commit a2eb123fb606af2a62ad6d0d0162255d7f0601e1)

14 months agoSet tty mode to raw when setting up Inferior Python
kobarity [Fri, 16 Feb 2024 13:52:06 +0000 (22:52 +0900)]
Set tty mode to raw when setting up Inferior Python

* lisp/progmodes/python.el (python-shell-setup-code): New constant.
(python-shell-comint-watch-for-first-prompt-output-filter): Send
`python-shell-setup-code' to the Inferior Python process.
* test/lisp/progmodes/python-tests.el (python-ffap-module-path-1):
Eliminate skipping on Mac. (Bug#68559)

(cherry picked from commit d5757178464ca51f79c7fc1ab199a1582e92ab32)

14 months ago* java/org/gnu/emacs/EmacsContextMenu.java (display): Reduce timeout.
Po Lu [Wed, 21 Feb 2024 13:49:35 +0000 (21:49 +0800)]
* java/org/gnu/emacs/EmacsContextMenu.java (display): Reduce timeout.

(cherry picked from commit 0a4d4781ddc079509cb256edf803d663439dcf92)

14 months ago* lisp/emacs-lisp/map.el (map--make-pcase-bindings): Fix use in Emacs<30
Stefan Monnier [Wed, 21 Feb 2024 13:49:15 +0000 (08:49 -0500)]
* lisp/emacs-lisp/map.el (map--make-pcase-bindings): Fix use in Emacs<30

(cherry picked from commit 3b34c5e4a583dd88f476570cbd58655a18e9a6b4)

14 months ago* lisp/net/tramp.el (tramp-methods): Fix typo in docstring. (Bug#69294)
Michael Albinus [Wed, 21 Feb 2024 08:02:33 +0000 (09:02 +0100)]
* lisp/net/tramp.el (tramp-methods): Fix typo in docstring.  (Bug#69294)

(cherry picked from commit d6131b5902a70339305285f9861bdfd24c567eab)

14 months agoWork around premature dismissals of submenus under Android
Po Lu [Wed, 21 Feb 2024 03:49:47 +0000 (11:49 +0800)]
Work around premature dismissals of submenus under Android

* java/org/gnu/emacs/EmacsContextMenu.java (display): If between
HONEYCOMB and N, set wasSubmenuSelected.

(cherry picked from commit 7b0d75018885d8d34ff7c4427a83a21a4808282c)

14 months agoDo not attempt to check declarations in lock files
Jonas Bernoulli [Tue, 20 Feb 2024 21:49:07 +0000 (22:49 +0100)]
Do not attempt to check declarations in lock files

* lisp/emacs-lisp/check-declare.el (check-declare-directory): Do
not attempt to check declarations in lock files.  (Bug#69084)

(cherry picked from commit 1acc7cb851417b83ae90fe4d0ee9f01af2e03722)

14 months agoAllow trivially autoloading uses of transient's define macros
Jonas Bernoulli [Tue, 20 Feb 2024 17:49:20 +0000 (18:49 +0100)]
Allow trivially autoloading uses of transient's define macros

Since 49e41991b2f transient-define-prefix itself was autoloaded, but
that meant that when ever an autoload file was loaded, which contained
an autoload for a command defined using that macro, transient itself
had to be loaded.

That shouldn't be necessary.  For commands using these macros, an
autoload that is identical to what would have been generated if it
had been defined using defun, works just fine.

* lisp/emacs-lisp/loaddefs-gen.el
(loaddefs-generate--make-autoload): Allow uses of
transient-define-prefix, transient-define-suffix,
transient-define-infix and transient-define-argument
to be autoloaded using just ";;;autoload".

* lisp/transient.el (transient-define-prefix): No longer autoload.

(cherry picked from commit 167d9b9040333a5bff64325423750243c60edfa1)

14 months ago* Fix missing entry in 'cl--typeof-types'
Andrea Corallo [Tue, 20 Feb 2024 18:47:29 +0000 (19:47 +0100)]
* Fix missing entry in 'cl--typeof-types'

* lisp/emacs-lisp/cl-preloaded.el (cl--typeof-types): Add
'native-comp-unit'.

(cherry picked from commit bbf0b7d0407883ea0a59c09b501c6e550bb8e10c)

14 months ago; * lisp/emacs-lisp/pcase.el (pcase-let*, pcase-let): Another doc fix.
Eli Zaretskii [Tue, 20 Feb 2024 17:15:38 +0000 (19:15 +0200)]
; * lisp/emacs-lisp/pcase.el (pcase-let*, pcase-let): Another doc fix.

(cherry picked from commit 2eb85a9de1a5068d09b21464601dbd3263e55c85)

14 months ago; * lisp/emacs-lisp/pcase.el (pcase-let*, pcase-let): Doc fix.
Eli Zaretskii [Tue, 20 Feb 2024 13:44:13 +0000 (15:44 +0200)]
; * lisp/emacs-lisp/pcase.el (pcase-let*, pcase-let): Doc fix.

(cherry picked from commit 4c6653f23aef097e3a6ed687e21decea6c790b5e)

14 months agoMake find-function-regexp also find transient-define-*
Jonas Bernoulli [Mon, 19 Feb 2024 22:36:17 +0000 (23:36 +0100)]
Make find-function-regexp also find transient-define-*

* lisp/emacs-lisp/find-func.el (find-function-regexp): Also find
transient-define-prefix, transient-define-suffix,
transient-define-infix and transient-define-argument.

(cherry picked from commit d9afa1f30fdf9d00b447fea0a8343397333e172f)

14 months ago; Copyedits
Michael Albinus [Tue, 20 Feb 2024 11:53:15 +0000 (12:53 +0100)]
; Copyedits

(cherry picked from commit d5775ae4d3ac8a1a4d2625e05307c9296df28d6f)

14 months agoAdd Tramp methods dockercp and podmancp
Michael Albinus [Tue, 20 Feb 2024 11:52:40 +0000 (12:52 +0100)]
Add Tramp methods dockercp and podmancp

* doc/misc/tramp.texi (External methods):  Add dockercp and podmancp.

* etc/NEWS: Add Tramp methods "dockercp" and "podmancp".

* lisp/net/tramp.el (tramp-handle-make-process):
* lisp/net/tramp-adb.el (tramp-adb-maybe-open-connection):
* lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band)
(tramp-maybe-open-connection):
* lisp/net/tramp-sshfs.el (tramp-sshfs-handle-process-file)
(tramp-sshfs-maybe-open-connection):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-send-command): Adapt
`tramp-expand-args' calls.

* lisp/net/tramp-container.el (tramp-dockercp-method)
(tramp-podmancp-method): New defconst.
(tramp-methods) <dockercp, podmancp>: Add new methods.
(tramp-container--completion-function): Adapt docstring.  Use it
for "dockercp" and "podmancp" completion.

* lisp/net/tramp.el (tramp-get-remote-tmpdir):
* lisp/net/tramp-gvfs.el (tramp-gvfs-maybe-open-connection):
* lisp/net/tramp-sh.el (tramp-maybe-open-connection): Use a default
value with `tramp-get-method-parameter'.

* lisp/net/tramp-sh.el (tramp-methods) <nc>: Add `tramp-copy-file-name'.
(tramp-default-copy-file-name): New defconst.
(tramp-make-copy-file-name): Rename from
`tramp-make-copy-program-file-name'.  Use method parameter
`tramp-copy-file-name'.  (Bug#69085)
(tramp-do-copy-or-rename-file-out-of-band): Adapt callees.

* lisp/net/tramp.el (tramp-methods): Adapt docstring.
(tramp-get-method-parameter, tramp-expand-args): New optional
argument DEFAULT.

* test/lisp/net/tramp-tests.el (tramp--test-container-p): Adapt.
(tramp--test-container-oob-p): New defun.
(tramp-test17-dired-with-wildcards, tramp-test35-remote-path)
(tramp-test41-special-characters): Use it.
(tramp--test-set-ert-test-documentation): Use `split-string'.

(cherry picked from commit 4e9993cada32a866a75b458092de0028db2f5f41)

14 months ago; * doc/misc/gnus.texi (Other modes): Fix last change.
Eli Zaretskii [Mon, 19 Feb 2024 19:34:43 +0000 (21:34 +0200)]
; * doc/misc/gnus.texi (Other modes): Fix last change.

(cherry picked from commit a1cbc4d810bc1b525fa46b23249b414c1ad6b031)

14 months agoAllow attaching files at point using 'gnus-dired-attach'
Philip Kaludercic [Thu, 15 Feb 2024 11:10:12 +0000 (12:10 +0100)]
Allow attaching files at point using 'gnus-dired-attach'

* lisp/gnus/gnus-dired.el (gnus-dired-attach-at-end): Add option.
(gnus-dired-attach): Respect it.
* doc/misc/gnus.texi (Other modes): Document it.  (Bug#69141)

(cherry picked from commit 6893106fe9302b1be68dd04034441799e6d29b68)

14 months agoSlight switch byte op speedup
Mattias Engdegård [Mon, 19 Feb 2024 13:42:55 +0000 (14:42 +0100)]
Slight switch byte op speedup

* src/bytecode.c (exec_byte_code): Hoist symbols_with_pos_enabled check
from fast loop, and eliminate the initial index check.

(cherry picked from commit 23793600778c4efe5615b646f2d3895624c23ef0)

14 months agoReplace XSET_HASH_TABLE with make_lisp_hash_table
Mattias Engdegård [Mon, 19 Feb 2024 10:44:53 +0000 (11:44 +0100)]
Replace XSET_HASH_TABLE with make_lisp_hash_table

* src/lisp.h (XSET_HASH_TABLE): Remove, replace with...
(make_lisp_hash_table): ...this.  All callers adapted.

(cherry picked from commit 188fe6bffa69e08b60a7d65709998bd803b7ada5)

14 months agoCheck shortdoc keywords and fix one mistake
Mattias Engdegård [Mon, 19 Feb 2024 09:27:02 +0000 (10:27 +0100)]
Check shortdoc keywords and fix one mistake

* lisp/emacs-lisp/shortdoc.el (shortdoc--check)
(define-short-documentation-group): Check that used keywords exist.
* lisp/emacs-lisp/shortdoc.el (list): Fix a typo.

(cherry picked from commit ddfba511c190e5bb44e44a50aef5ab8c08e3d798)

14 months ago; Further copyedits of doc/translations/README.
Eli Zaretskii [Mon, 19 Feb 2024 13:19:54 +0000 (15:19 +0200)]
; Further copyedits of doc/translations/README.

(cherry picked from commit 70dc1700562309c2612a71be35f9c71e9e1641b8)

14 months ago; Proofreading changes in doc/translations/README.
Jean-Christophe Helary [Mon, 19 Feb 2024 11:05:14 +0000 (20:05 +0900)]
; Proofreading changes in doc/translations/README.

(cherry picked from commit 5d3ecd7358252349dd26e6015a83054893af4474)

14 months ago* test/src/eval-tests.el (eval-tests/default-value): Add new test case.
Ihor Radchenko [Tue, 2 Jan 2024 11:06:16 +0000 (12:06 +0100)]
* test/src/eval-tests.el (eval-tests/default-value): Add new test case.

Bug#66117

(cherry picked from commit be8f3e68a88a00bc12f1cc405a8a341666c41858)

14 months agoDon't update ranges for the whole buffer in treesit--pre-redisplay
Yuan Fu [Mon, 19 Feb 2024 05:39:31 +0000 (21:39 -0800)]
Don't update ranges for the whole buffer in treesit--pre-redisplay

* lisp/treesit.el (treesit--pre-redisplay): Only update two
screen-full of text around point.

(cherry picked from commit 8f260bb93f534b24d9a93d3315804ffe0c1fec4f)

14 months agoBack out part of commit db5e84af202
Eric Abrahamsen [Mon, 19 Feb 2024 02:08:51 +0000 (18:08 -0800)]
Back out part of commit db5e84af202

* lisp/gnus/gnus-agent.el (gnus-category-make-function-1): This code is
untested and was not meant to be part of the earlier commit.

(cherry picked from commit f6743099cc907f1f2847f028ff8f3712288c559f)

14 months agoUse -Wanalyzer-deref-before-check in GCC 14
Paul Eggert [Sun, 18 Feb 2024 08:12:28 +0000 (00:12 -0800)]
Use -Wanalyzer-deref-before-check in GCC 14

* src/marker.c: Work around GCC bug 113253 only if GCC 13.
The GCC bug reportedly will be fixed in GCC 14.

(cherry picked from commit 4a8d3c5b75b28167300d2df061d053935809d43e)

14 months agoDo not ignore -Wanalyzer-allocation-size in GCC 14
Paul Eggert [Sun, 18 Feb 2024 07:48:20 +0000 (23:48 -0800)]
Do not ignore -Wanalyzer-allocation-size in GCC 14

* src/lisp.h (SAFE_ALLOCA_LISP_EXTRA): Use pragma to ignore the
warning only in GCC 13, as the GCC developers say GCC bug 109577
is fixed in GCC 14.

(cherry picked from commit 659770fdf535ca683a97d965d2e4ed0f9f321145)

14 months agoRemove no-longer-needed pdumper_load workaround
Paul Eggert [Sun, 18 Feb 2024 07:38:30 +0000 (23:38 -0800)]
Remove no-longer-needed pdumper_load workaround

* src/pdumper.c (pdumper_load): Revert my commit "Pacify GCC
12.1.1 in default developer build" dated 2022-06-13 13:21:18 -07,
as GCC bug 105961 is fixed, and this workaround is not needed for
unfixed GCC as these builds should not use --enable-gcc-warnings.

(cherry picked from commit 42c6cf4e5804312defa9d9caac8882500bd38179)

14 months agoIgnore fewer GCC -fanalyzer diagnostics in ccl.c
Paul Eggert [Sun, 18 Feb 2024 07:12:18 +0000 (23:12 -0800)]
Ignore fewer GCC -fanalyzer diagnostics in ccl.c

* src/ccl.c: Do not ignore -Wanalyzer-use-of-uninitialized-value,
as that bug has been fixed in GCC.  Ignore
-Wanalyzer-out-of-bounds only if GCC 13, as the bug will
reportedly be fixed when GCC 14 comes out.

(cherry picked from commit f8d27a8a1fd5bdc8e25569cc05a9298e186a8c63)

14 months ago; Fix punctuation and encoding of doc/translations/README
Eli Zaretskii [Sun, 18 Feb 2024 07:56:14 +0000 (09:56 +0200)]
; Fix punctuation and encoding of doc/translations/README

* doc/translations/README: Fix non-ASCII characters and
punctuation.  Add local variables section.

(cherry picked from commit d80f1352d80938bb4ef61c5d74aa056902abd9b4)