]> git.eshelyaron.com Git - emacs.git/log
emacs.git
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)

14 months agoMove translations-related files to do/translations/.
Eli Zaretskii [Sun, 18 Feb 2024 07:49:16 +0000 (09:49 +0200)]
Move translations-related files to do/translations/.

(cherry picked from commit 42179750c5f3f722b1ce2f82d2b2e73bba8e4de8)

14 months agojava-ts-mode: Indentation for opening brace on a separate line
Dmitry Gutov [Sat, 17 Feb 2024 20:34:55 +0000 (22:34 +0200)]
java-ts-mode: Indentation for opening brace on a separate line

* lisp/progmodes/java-ts-mode.el (java-ts-mode--indent-rules):
Support putting the opening brace on a separate line (bug#67556).

* test/lisp/progmodes/java-ts-mode-resources/indent.erts:
Add a test.

(cherry picked from commit 5a64d2c7595dc393504c6eee9321d74dbd8ae9e2)

14 months agoRemoved decommissioned PGP keyservers
Philip Kaludercic [Sun, 11 Feb 2024 17:38:13 +0000 (18:38 +0100)]
Removed decommissioned PGP keyservers

* lisp/epa-ks.el (epa-keyserver): Update the user option type of
`epa-keyserver'.

See https://mail.gnu.org/archive/html/emacs-devel/2023-11/msg00857.html.

(cherry picked from commit 9e56bd5ed8775f53c3025b114525cee7c578e2d0)

14 months agoorg: Fix security prompt for downloading remote resource
Ihor Radchenko [Fri, 2 Feb 2024 19:59:41 +0000 (20:59 +0100)]
org: Fix security prompt for downloading remote resource

* lisp/org.el (org--confirm-resource-safe): Do not assume that
resource is safe when user replies "n" (do not download).

Reported-by: Max Nikulin <manikulin@gmail.com>
Link: https://orgmode.org/list/upj6uk$b7o$1@ciao.gmane.io
(cherry picked from commit e56f0ef51bfdd0e03e817670754bc813fb3702a2)

14 months agoRevert "Update to Org 9.6.19"
Eli Zaretskii [Sat, 17 Feb 2024 16:53:05 +0000 (18:53 +0200)]
Revert "Update to Org 9.6.19"

This reverts commit 07a392f445eb21c5e4681027eee9d981300a4309.
It was installed by mistake.

(cherry picked from commit 65ba3274652a4dac37f41f872330e391cd511ae1)

14 months agoUpdate to Org 9.6.19
Kyle Meyer [Sat, 17 Feb 2024 15:17:41 +0000 (10:17 -0500)]
Update to Org 9.6.19

(cherry picked from commit 07a392f445eb21c5e4681027eee9d981300a4309)

14 months agoMore multi-commands
Eshel Yaron [Wed, 28 Feb 2024 17:26:42 +0000 (18:26 +0100)]
More multi-commands

14 months ago; Autoload text property search functions
Eshel Yaron [Wed, 28 Feb 2024 16:58:02 +0000 (17:58 +0100)]
; Autoload text property search functions

14 months agoUnify 'cycle-' and 'display-sort-function' to just 'sort-function'
Eshel Yaron [Wed, 28 Feb 2024 16:56:50 +0000 (17:56 +0100)]
Unify 'cycle-' and 'display-sort-function' to just 'sort-function'

14 months agoRework *Completions* display
Eshel Yaron [Mon, 26 Feb 2024 18:58:03 +0000 (19:58 +0100)]
Rework *Completions* display

14 months ago; Refine dictionary definition display in *Help* buffers
Eshel Yaron [Sun, 25 Feb 2024 11:25:58 +0000 (12:25 +0100)]
; Refine dictionary definition display in *Help* buffers

* lisp/net/dictionary.el (dictionary-display-definition-in-help-buffer):
Add one-line description and normalize whitespace in references.

14 months agoNew command 'minibuffer-apply'
Eshel Yaron [Wed, 21 Feb 2024 16:23:57 +0000 (17:23 +0100)]
New command 'minibuffer-apply'

* lisp/minibuffer.el (completions-used-input): New face.
(minibuffer-completion-action): New variable and function.
(minibuffer-completion-command): New variable.
(completing-read-default): Set it to 'this-command'.
(minibuffer-current-input): New function.
(minibuffer-apply): New command.
(minibuffer-local-completion-map): Bind it to 'C-j'.
(minibuffer-local-must-match-map): Unbind 'C-j'.

* lisp/cus-edit.el (customize-toggle-option): Set
'minibuffer-action' property to non-nil.

* etc/NEWS: Announce it.

14 months ago; Reposition cursor after refreshing *Completions*
Eshel Yaron [Wed, 21 Feb 2024 12:24:06 +0000 (13:24 +0100)]
; Reposition cursor after refreshing *Completions*

* lisp/minibuffer.el (minibuffer-completion-help): If *Completions* is
already visible and some candidate is highlighted, try to highlight it
again after populating the buffer anew.

14 months agoMove French translations to the top-level doc/ directory.
Jean-Christophe Helary [Sat, 17 Feb 2024 15:02:09 +0000 (00:02 +0900)]
Move French translations to the top-level doc/ directory.

(cherry picked from commit a58bcb96ac898d218b3169e76db798f192107d52)

14 months agoAdd README file about translations of Emacs manuals
Jean-Christophe Helary [Sat, 17 Feb 2024 15:04:18 +0000 (00:04 +0900)]
Add README file about translations of Emacs manuals

* doc/README: New file.

(cherry picked from commit aa8baf77b47e3de114f5dc5e9aaa987bb96ed248)

14 months agoImplement tooltip_reuse_hidden_frame for Android
Po Lu [Sun, 18 Feb 2024 04:48:41 +0000 (12:48 +0800)]
Implement tooltip_reuse_hidden_frame for Android

* java/org/gnu/emacs/EmacsWindow.java
(findSuitableActivityContext): Return Activity rather than
Context.
(mapWindow): Provide window token manually.

* src/androidfns.c (Fx_show_tip, Fx_hide_tip): Respect
tooltip_reuse_hidden_frame.

(cherry picked from commit c2d714886ef139f601d89463675b0d5b49d18ff9)

14 months agoUpdate from Gnulib by running admin/merge-gnulib
Paul Eggert [Sat, 17 Feb 2024 23:58:03 +0000 (15:58 -0800)]
Update from Gnulib by running admin/merge-gnulib

(cherry picked from commit bd0e281a6a27c048b12847811bc0385acbaa1eec)

14 months agoAdjust to yesterday’s Gnulib nstrftime changes
Paul Eggert [Fri, 16 Feb 2024 02:45:29 +0000 (18:45 -0800)]
Adjust to yesterday’s Gnulib nstrftime changes

Bruno Haible fixed Gnulib so that nstrftime no longer requires
locking code, which means we no longer need to avoid localename.
However, nstrftime now requires localename-unsafe-limited which
pulls in some Gnulib-specific locale code, and it’s likely this
needs to be replaced with Emacs-specific locale code.  In the
meantime let’s continue to finess this by avoiding
localename-unsafe-limited.
* admin/merge-gnulib (AVOIDED_MODULES):
Avoid localename-unsafe-limited instead of localename.

(cherry picked from commit 37bb33dae791e5f59f1d0d27c0221db3b3b4c16d)

14 months ago; Fix typo from commit 32c5bdfa971
Philip Kaludercic [Sat, 17 Feb 2024 18:20:42 +0000 (19:20 +0100)]
; Fix typo from commit 32c5bdfa971

* lisp/gnus/gnus-util.el (gnus-not-ignore): Quote the argument
to defalias.

(cherry picked from commit 20997aa20728a6fc2a3de736e9fc718b97dcef99)

14 months agoProvide better default value for date in Gnus scoring
Jakub Ječmínek [Sat, 17 Feb 2024 17:34:36 +0000 (09:34 -0800)]
Provide better default value for date in Gnus scoring

Bug#61002, thanks to Kamil Jońca for reporting

* lisp/gnus/gnus-score.el (gnus-summary-score-entry): When scoring on
Date header, the default value for the prompt should be number of days
between the date of the article under point, and "now".

(cherry picked from commit 32c5bdfa971220bae37991a298628605c82f866c)

14 months agoAlias some gnus-specific do-nothing functions
Eric Abrahamsen [Sat, 17 Feb 2024 17:31:50 +0000 (09:31 -0800)]
Alias some gnus-specific do-nothing functions

Replace with #'always and #'ignore

* lisp/gnus/gnus-agent.el: `gnus-agent-true' and `gnus-agent-false'
* lisp/gnus/gnus-util.el: `gnus-not-ignore'

(cherry picked from commit db5e84af202532b138918295ea6dd1b0ea910d78)

14 months ago; Skip commit c14a67a80f4263c13db55b6a79fb545b82a8b5b7
Eshel Yaron [Tue, 20 Feb 2024 14:57:46 +0000 (15:57 +0100)]
; Skip commit c14a67a80f4263c13db55b6a79fb545b82a8b5b7

14 months ago; Skip commit 52d554d5d8964943c65ecf140fdcc4bd6bccf855
Eshel Yaron [Tue, 20 Feb 2024 14:56:39 +0000 (15:56 +0100)]
; Skip commit 52d554d5d8964943c65ecf140fdcc4bd6bccf855

14 months ago; Use the ':prefix' argument of 'defvar-keymap'
Eshel Yaron [Tue, 20 Feb 2024 14:23:36 +0000 (15:23 +0100)]
; Use the ':prefix' argument of 'defvar-keymap'

* lisp/minibuffer.el (minibuffer-narrow-completions-map): Use ':prefix'.

14 months ago; Bind M-<left>/<right> in minibuffer for navigating *Completions*
Eshel Yaron [Tue, 20 Feb 2024 14:18:52 +0000 (15:18 +0100)]
; Bind M-<left>/<right> in minibuffer for navigating *Completions*

* lisp/minibuffer.el (minibuffer-local-completion-map): Bind
'M-<left>/<right>' to 'minibuffer-previous/next-completion', and bind
'M-<down>/<up>' to the vertical variants of these commands.

14 months ago; Remove 'minibuffer-visible-completions' and associated cruft
Eshel Yaron [Tue, 20 Feb 2024 07:40:16 +0000 (08:40 +0100)]
; Remove 'minibuffer-visible-completions' and associated cruft

* lisp/minibuffer.el (completion-auto-deselect)
(completions--deselect, completions--after-change)
(minibuffer-visible-completions)
(minibuffer-visible-completions-bind)
(minibuffer-visible-completions-map)
(minibuffer-choose-completion-or-exit): Remove.
(display-completion-list, minibuffer-completion-help)
(completion-in-region-mode)
(minibuffer-mode, completing-read-default)
(minibuffer-next-completion): Simplify.

* lisp/simple.el (choose-completion-deselect-if-after): Remove.
(choose-completion, completion-setup-function): Simplify.

* etc/NEWS: Remove announcement.

14 months ago; Simplify 'display-completion-list'
Eshel Yaron [Mon, 19 Feb 2024 08:43:35 +0000 (09:43 +0100)]
; Simplify 'display-completion-list'

* lisp/minibuffer.el (display-completion-list): Remove obsolete
argument COMMON-SUBSTRING.
(completion--insert-strings): Improve docstring.
(minibuffer-completion-help): Adjust.
* etc/NEWS: Announce it.
* doc/lispref/minibuf.texi (Programmed Completion): Add anchor
for the definition of completions grouping functions.
(Completion Commands): Document GROUP-FUN argument of
'display-completion-list'.

14 months ago; Show option state (ON/OFF) in 'toggle-option' completions list
Eshel Yaron [Sun, 18 Feb 2024 21:08:48 +0000 (22:08 +0100)]
; Show option state (ON/OFF) in 'toggle-option' completions list

* lisp/cus-edit.el (custom-boolean-option-on)
(custom-boolean-option-off): New faces.
(customize-read-boolean-option-affixation): New function.
(customize-read-boolean-option): Use it.
(customize-toggle-option): Update.

14 months ago; Flush cycling cache in 'minibuffer-force-complete-and-exit'
Eshel Yaron [Sun, 18 Feb 2024 11:09:45 +0000 (12:09 +0100)]
; Flush cycling cache in 'minibuffer-force-complete-and-exit'

* lisp/minibuffer.el (minibuffer-force-complete-and-exit): Flush cycling
cache to avoid cycling when we were just cycling but now want to exit.

14 months ago; Don't use non-ASCII characters in C comments in xdisp.c.
Eli Zaretskii [Sat, 17 Feb 2024 10:15:11 +0000 (12:15 +0200)]
; Don't use non-ASCII characters in C comments in xdisp.c.

(cherry picked from commit 77576cd7626e4a99a5c88aa854091d701edd53a8)

14 months ago; Skip commit d85461ac61c5ea99ea194f99c771de1efdabbef4
Eshel Yaron [Sat, 17 Feb 2024 13:03:57 +0000 (14:03 +0100)]
; Skip commit d85461ac61c5ea99ea194f99c771de1efdabbef4

14 months ago; Skip commit 6477be93bd8a29cba8ce383f9ea3fba23c45f225
Eshel Yaron [Sat, 17 Feb 2024 13:03:47 +0000 (14:03 +0100)]
; Skip commit 6477be93bd8a29cba8ce383f9ea3fba23c45f225

14 months agoEagerly indent first field in tables in 'lua-ts-mode'
john muhl [Tue, 13 Feb 2024 00:46:51 +0000 (18:46 -0600)]
Eagerly indent first field in tables in 'lua-ts-mode'

* lisp/progmodes/lua-ts-mode.el (lua-ts--simple-indent-rules):
Properly indent the first field of a table when it appears on a
line by itself.  (Bug#69088)

(cherry picked from commit 84e4f1259b54442f52183c1ccee72a417e0a2658)

14 months agoSupport shebang lines with amended environment
Kévin Le Gouguec [Sat, 10 Feb 2024 16:56:57 +0000 (17:56 +0100)]
Support shebang lines with amended environment

For bug#64939.

* lisp/files.el (auto-mode-interpreter-regexp): Account for possible
VARIABLE=[VALUE] operands.
* test/lisp/files-tests.el (files-tests-auto-mode-interpreter):
Add an example from the coreutils manual.

(cherry picked from commit c64e650fb346d92294703d22f8cd7deb7c47b49e)

14 months agoSupport more complex env invocations in shebang lines
Kévin Le Gouguec [Sat, 10 Feb 2024 16:37:35 +0000 (17:37 +0100)]
Support more complex env invocations in shebang lines

This is not an exact re-implementation of what env accepts, but
hopefully it should be "good enough".

Example of known limitation: we assume that arguments for
--long-options will be set with '=', but that is not
necessarily the case.  '--unset' (mandatory argument) can be
passed as '--unset=VAR' or '--unset VAR', but
'--default-signal' (optional argument) requires an '=' sign.

For bug#64939.

* lisp/files.el (auto-mode-interpreter-regexp): Account for
supplementary arguments passed beside -S/--split-string.
* test/lisp/files-tests.el (files-tests-auto-mode-interpreter):
Test some of these combinations.

(cherry picked from commit ecb9641ecb5f42899042ff9c164ec7dbb8e166fe)

14 months agoRefine shebang tests (bug#64939)
Kévin Le Gouguec [Sat, 10 Feb 2024 15:14:08 +0000 (16:14 +0100)]
Refine shebang tests (bug#64939)

* test/lisp/files-tests.el (files-tests--check-shebang): For
shell-script modes, verify that the correct shell is set.
(files-tests-auto-mode-interpreter): Prefer 'sh-base-mode' to
'sh-mode' to stay tree-sitter-agnostic; re-organize test cases to
make future ones easier to add.

(cherry picked from commit de6f7f3c86ea0e52e8f9825585c726a7f93fa9cf)

14 months agoUse modern fallback for channel name detection in ERC
F. Jason Park [Mon, 12 Feb 2024 04:01:54 +0000 (20:01 -0800)]
Use modern fallback for channel name detection in ERC

* lisp/erc/erc-backend.el (erc-query-buffer-p): Remove forward declaration.
* lisp/erc/erc.el (erc-query-buffer-p): Defer to `erc-channel-p'.
(erc-channel-p): Refactor and use `erc--fallback-channel-prefixes' for
the default CHANTYPES value.  Honor an empty CHANTYPES value as valid,
e.g., for servers that only support direct messages.
(erc--fallback-channel-prefixes): New variable to hold fallback
CHANTYPES prefixes recommended by RFC1459 and modern authorities on
the matter.
* test/lisp/erc/erc-tests.el (erc-channel-p): Revise test.  (Bug#67220)

(cherry picked from commit 3d87e343276081247102838b827b8a1f5e9e0c54)

14 months agoNormalize ISUPPORT params with empty values in ERC
F. Jason Park [Mon, 12 Feb 2024 01:15:14 +0000 (17:15 -0800)]
Normalize ISUPPORT params with empty values in ERC

* lisp/erc/erc-backend.el (erc-server-parameters)
(erc--isupport-params): Mention parsing and storage behavior regarding
nonstandard "FOO=" tokens.
(erc--parse-isupport-value): Move comment closer to code.
(erc--get-isupport-entry): Treat the empty string as truly null, as
prescribed by the Brocklesby draft cited in the top-level comment.
* test/lisp/erc/erc-tests.el (erc--get-isupport-entry): Add case for
the empty string appearing as a value for an `erc-server-parameters'
item.
(erc-server-005): Assert compat-related behavior of retaining the
empty string as a valid value from a raw "FOO=" token.
(Bug#67220)

(cherry picked from commit 25d15391f2683ea95c4d7ee291fb82e0c9858d73)

14 months agoIgnore the TGT-LIST parameter in erc-open
F. Jason Park [Mon, 12 Feb 2024 04:42:18 +0000 (20:42 -0800)]
Ignore the TGT-LIST parameter in erc-open

* etc/ERC-NEWS: Mention `erc-open' now ignores TGT-LIST.
* lisp/erc/erc.el (erc-open): Set `erc-default-recipients' to a list
containing only the supplied target.  Other values may cause ERC to
malfunction.  Also redo doc string.

(cherry picked from commit d7c18a7b4f218de8c4d2178c9124ea26c7dc5b6b)

14 months agoMake erc-fill-wrap depend on scrolltobottom
F. Jason Park [Mon, 13 Nov 2023 20:07:36 +0000 (12:07 -0800)]
Make erc-fill-wrap depend on scrolltobottom

* lisp/erc/erc-fill.el (erc-fill-mode): Add reference to
`erc-fill-wrap-mode' in doc string.
(erc--fill-wrap-scrolltobottom-exempt-p): New variable to allow tests
involving `fill-wrap' to opt out of having to enable `scrolltobottom'.
(erc-fill--wrap-ensure-dependencies): Warn and enable
`erc-scrolltobottom-mode' if necessary.
(erc-fill-wrap-mode): Mention workaround for automatically enabling
`scrolltobottom'.
* test/lisp/erc/erc-fill-tests.el (erc-fill-tests--wrap-populate):
Exempt tests from `scrolltobottom' dependency.
* test/lisp/erc/resources/erc-scenarios-common.el: Load `erc-fill'
when compiling.
(erc-scenarios-common--print-trace): Exempt tests using `fill-wrap'
from the `scrolltobottom' dependency by making
`erc--fill-wrap-scrolltobottom-exempt-p' non-nil during test runs.
(Bug#60936)

(cherry picked from commit 9668b4f97c2fc6bfff83258861d455a6d02516a8)

14 months agoAutoload custom-loads for new Custom groups in erc.el
F. Jason Park [Sun, 4 Feb 2024 01:17:48 +0000 (17:17 -0800)]
Autoload custom-loads for new Custom groups in erc.el

* lisp/erc/erc.el: Add `custom-loads' library features for group
symbols `erc-spelling' and `erc-imenu' since they aren't defined in
all supported Emacs versions.  Also add groups `erc-sasl' and
`erc-nicks', new libraries recently added to ERC.  Note that this is
unrelated to prefixes generated for the help system.  (Bug#68943)

(cherry picked from commit 1a36d52413c784750f650ccba95436e4f76ab104)

14 months ago; Load erc-compat before ert-x in ERC tests
F. Jason Park [Fri, 9 Feb 2024 03:19:53 +0000 (19:19 -0800)]
; Load erc-compat before ert-x in ERC tests

Avoid eager macro-expansion error in tests files on Emacs 27 and 28 by
ensuring definitions provided by Compat, like `macroexp-file-name',
load first.

* lisp/erc/erc-speedbar.el (erc-speedbar--reset-last-ran-on-timer):
Suppress "`buffer-local-value' is an obsolete generalized variable"
warning on Emacs 29 and below.
* lisp/erc/erc-stamp.el (erc-stamp--time-as-day): Avoid "unused
lexical variable `current-time-list'" warning on 28 and below.
* lisp/erc/erc.el (erc-check-text-conversion): Add `defvar' for
`text-conversion-style' to avoid "reference to free variable" warning
on Emacs 29 and below.
* test/lisp/erc/erc-button-tests.el: Load `erc-button' before `ert-x'.
* test/lisp/erc/erc-fill-tests.el: Load `erc-fill' before `ert-x'.
* test/lisp/erc/erc-goodies-tests.el: Load `erc-goodies' before
`ert-x'.
* test/lisp/erc/erc-networks-tests.el: Explicitly load `erc-compat'
before anything else.
* test/lisp/erc/erc-scenarios-base-renick.el: Update timeouts.
* test/lisp/erc/erc-stamp-tests.el: Load `erc-stamp' before `ert-x'.
* test/lisp/erc/erc-tests.el: Load `erc-ring' before `ert-x'.

(cherry picked from commit a43b062ee57fd9b7c410e741946e51281db5b92a)

14 months agoRemove "erc-" prefixed Compat definitions
F. Jason Park [Fri, 16 Feb 2024 04:17:20 +0000 (20:17 -0800)]
Remove "erc-" prefixed Compat definitions

* lisp/erc/erc-compat.el: Remove NO-ERROR argument from top-level
`require' for library `compat' because it's guaranteed to be present.
(erc-compat-function, erc-compat-call): Redefine as obsolete aliases
for unprefixed namesakes.
* lisp/erc/erc-fill.el (erc-fill-wrap-nudge): Use `compat-call'
instead of `erc-compat-call'.

(cherry picked from commit e288e1b2f352952e826727967a406c8675fd5594)

14 months ago* java/debug.sh: Print errors correctly if device is ambiguous.
Po Lu [Sat, 17 Feb 2024 02:33:54 +0000 (10:33 +0800)]
* java/debug.sh: Print errors correctly if device is ambiguous.

(cherry picked from commit 537914561eb3809e34b9daf8c2b4719ae9b30a6b)

14 months agoProperly record mtime after insert-file-contents on Android
Po Lu [Sat, 17 Feb 2024 02:27:26 +0000 (10:27 +0800)]
Properly record mtime after insert-file-contents on Android

* src/fileio.c (write_region): Do not verify file identity after
retreiving file status for the second time if st_ino is 0.

(cherry picked from commit 5b65c2ad7526ec081ac37d32c87e9b58e787d66a)

14 months ago* src/androidvfs.c (android_scan_directory_tree): Get rid of xstrdup.
Po Lu [Fri, 16 Feb 2024 14:17:01 +0000 (22:17 +0800)]
* src/androidvfs.c (android_scan_directory_tree): Get rid of xstrdup.

(cherry picked from commit 4b89fb08bdd7d0249698bc0ed578555d6755724d)

14 months ago* lisp/loadup.el (lexical-binding): Add a comment
Stefan Monnier [Fri, 16 Feb 2024 14:04:46 +0000 (09:04 -0500)]
* lisp/loadup.el (lexical-binding): Add a comment

(cherry picked from commit 44a1721156ec29e5799da94f7918f217f52fd751)

14 months agoRemove references to phst@google.com.
Philipp Stephani [Mon, 8 Jan 2024 18:38:33 +0000 (19:38 +0100)]
Remove references to phst@google.com.

I don't work for Google any more, so I'll use my private address going
forward.

* .mailmap: Remove references to phst@google.com.

(cherry picked from commit 45f9af61b8ecbe500de915f63de53e9c598184b9)

14 months ago* BUGS: Note how to report critical security issues.
Stefan Kangas [Wed, 14 Feb 2024 23:51:05 +0000 (00:51 +0100)]
* BUGS: Note how to report critical security issues.

(cherry picked from commit 7256690a3ca4840e0f682a552d45321a1b710398)

14 months agoAdd cross-reference to ELisp manual Caveats
Stefan Kangas [Wed, 14 Feb 2024 23:39:00 +0000 (00:39 +0100)]
Add cross-reference to ELisp manual Caveats

* doc/lispref/intro.texi (Caveats): Add cross-reference to Emacs manual.
Talking about "contributing code" makes little sense in a section about
reporting mistakes in the ELisp manual, so skip that part.

(cherry picked from commit 1035669b38b5aa2aa277e7423837c80534332c19)

14 months agoImprove directory prompt used by package-vc-checkout
Joseph Turner [Tue, 30 Jan 2024 08:52:39 +0000 (00:52 -0800)]
Improve directory prompt used by package-vc-checkout

* lisp/emacs-lisp/package-vc.el (package-vc--read-package-name): Use
read-directory-name instead of read-file-name.  (Bug#66114)

(cherry picked from commit 61a145076275a9da79d0372d50def4aaf5117587)

14 months agoMinor Tramp doc adaption
Michael Albinus [Wed, 14 Feb 2024 16:27:43 +0000 (17:27 +0100)]
Minor Tramp doc adaption

* doc/misc/tramp.texi (Frequently Asked Questions): Be more
precise with FIDO2 keys.

* lisp/net/tramp.el: Adapt comments.

(cherry picked from commit 0c7c8210cb6a87a06b61451d19f3601975569946)

14 months ago;; Fix typo in the Tramp documentation
Daniel Martín [Mon, 12 Feb 2024 12:21:08 +0000 (13:21 +0100)]
;; Fix typo in the Tramp documentation

(cherry picked from commit 17a395e04c62d6c6c3f3ff4c4889f03e427e00d3)

14 months ago* Improve reproducibility of inferred values by native comp
Andrea Corallo [Sun, 11 Feb 2024 09:43:57 +0000 (10:43 +0100)]
* Improve reproducibility of inferred values by native comp

* lisp/emacs-lisp/comp-cstr.el (comp-normalize-valset): Do not try to
reorder conses using 'sxhash-equal' as its behavior is not reproducible
over different sessions.

(cherry picked from commit 614b244a7fa03fcb27d76757e14ef0fa895d6f23)