]> git.eshelyaron.com Git - emacs.git/log
emacs.git
5 days ago; * doc/emacs/dired.texi (Misc Dired Features): Fix wording.
Eli Zaretskii [Thu, 12 Sep 2024 09:26:44 +0000 (12:26 +0300)]
; * doc/emacs/dired.texi (Misc Dired Features): Fix wording.

(cherry picked from commit ddd3752b9442ba0528403822a5bb1b2e5e0ae985)

5 days agoAdd Ftreesit_grammar_location
Yuan Fu [Wed, 28 Aug 2024 05:31:42 +0000 (22:31 -0700)]
Add Ftreesit_grammar_location

* src/treesit.c (treesit_loaded_lang): New struct.
(treesit_load_language): Return a struct instead of just the language
object.  The struct contains both the language object and the path to
the shared library.
(Ftreesit_language_available_p, Ftreesit_language_abi_version)
(treesit_ensure_query_compiled, Ftreesit_parser_create): Update
call of treesit_load_language.
(Ftreesit_grammar_location): New function.

(cherry picked from commit 2a75693f24a631b0a2a366bdce1ca5cb0c38d215)

5 days agoFix bug#72254
Po Lu [Thu, 12 Sep 2024 00:22:25 +0000 (08:22 +0800)]
Fix bug#72254

* src/pgtkselect.c (Fpgtk_get_selection_internal): If requesting
TARGETS with just one result, return it as a vector.
(bug#72254)

(cherry picked from commit 11e7ae3964e192b0e4bcc437a04278ee727e720b)

5 days ago; Skip commit 9a1c76bf7ff49d886cc8e1a3f360d71e62544802
Eshel Yaron [Sat, 14 Sep 2024 20:28:57 +0000 (22:28 +0200)]
; Skip commit 9a1c76bf7ff49d886cc8e1a3f360d71e62544802

5 days ago; Skip commit 68530860ae998e7364c550e7eddadda31c37eab7
Eshel Yaron [Sat, 14 Sep 2024 20:28:50 +0000 (22:28 +0200)]
; Skip commit 68530860ae998e7364c550e7eddadda31c37eab7

5 days ago; Skip commit fb1db366b98f21d8a39c7d68c978844558474264
Eshel Yaron [Sat, 14 Sep 2024 20:28:46 +0000 (22:28 +0200)]
; Skip commit fb1db366b98f21d8a39c7d68c978844558474264

5 days agoAllow to disable symbolic links check in Dired
Michael Albinus [Wed, 11 Sep 2024 15:42:24 +0000 (17:42 +0200)]
Allow to disable symbolic links check in Dired

* doc/emacs/dired.texi (Misc Dired Features):
* doc/misc/tramp.texi (Frequently Asked Questions):
Explain dired-check-symlinks.

* etc/NEWS: Describe dired-check-symlinks.
Fix typos.

* lisp/dired.el (dired-check-symlinks): New defcustom.
(dired-font-lock-keywords): Use it.  (Bug#73046)

(cherry picked from commit f283144658259f209efdef78c576b43832c9c479)

5 days agoAdd Ediff feature for copying all differences
Paul Nelson [Wed, 4 Sep 2024 07:24:25 +0000 (09:24 +0200)]
Add Ediff feature for copying all differences

* lisp/vc/ediff-util.el (ediff-diff-to-diff): With universal
prefix, copy all differences.

* doc/misc/ediff.texi (Quick Help Commands): Document the new feature.
* etc/NEWS: Announce the new feature.

(Bug#72866)

(cherry picked from commit 833158c0b78c6dbeacb169076a9899ba7bf45bff)

5 days agoFor minibuffer windows record minibuffers only (Bug#72487)
Martin Rudalics [Wed, 11 Sep 2024 08:36:14 +0000 (10:36 +0200)]
For minibuffer windows record minibuffers only (Bug#72487)

* src/minibuf.c (zip_minibuffer_stacks): Use wset type
functions.  Call 'record-window-buffer' instead of
'push-window-buffer-onto-prev' to handle all sorts of buffers
shown in minibuffer windows in a uniform way.
(read_minibuf): Call 'record-window-buffer' instead of
'push-window-buffer-onto-prev' for same reason as previous.
* lisp/calculator.el (calculator-update-display)
(calculator-save-and-quit): Make sure calculator buffer is live
before operating on it.
* lisp/window.el (record-window-buffer): Handle case where
WINDOW is a minibuffer window: Unconditionally remove WINDOW's
buffer from WINDOW's list of previous buffers and push it if
and only if it is a live minibuffer (Bug#72487).  Do not run
'buffer-list-update-hook' if WINDOW is a minibuffer window.
(push-window-buffer-onto-prev): Make it an alias of
'record-window-buffer' so it will run the latter's checks.
(replace-buffer-in-windows): Handle minibuffer windows and
rewrite doc-string accordingly.
* doc/lispref/windows.texi (Buffers and Windows): Explain
handling of minibuffer windows in 'replace-buffer-in-windows'.

(cherry picked from commit fc3a7f45292b9a7be95fdefd24fedb7e8f564d1c)

5 days ago; * test/lisp/gnus/gnus-icalendar-tests.el: remove unneeded unwind-protect
Robert Pluim [Wed, 11 Sep 2024 08:00:34 +0000 (10:00 +0200)]
; * test/lisp/gnus/gnus-icalendar-tests.el: remove unneeded unwind-protect

(cherry picked from commit 74ea24233ca281b19c3e3d2552621ceac30dfc48)

5 days agoAllow comments to organizer in icalendar event replies (Bug#72831)
fpi [Wed, 28 Aug 2024 16:33:20 +0000 (18:33 +0200)]
Allow comments to organizer in icalendar event replies (Bug#72831)

* lisp/gnus/gnus-icalendar.el
(gnus-icalendar-event--build-reply-event-body): Add optional COMMENT
argument to be inserted into the reply.
(gnus-icalendar-event-reply-from-buffer): Add COMMENT argument to be
passed through to gnus-icalendar-event--build-reply-event-body
(gnus-icalendar-reply-accept, gnus-icalendar-reply-tentative,
gnus-icalendar-reply-decline): If interactively called with a prefix
argument ask user for a COMMENT to add to the reply.

* test/lisp/gnus/gnus-icalendar-tests.el
(gnus-icalendar-accept-with-comment,
gnus-icalendar-decline-without-changing-comment): New tests.

(cherry picked from commit 8332b4dd07a43d09ff8eed7097873d9ac4d5afc8)

5 days ago; * exec/configure.ac: Update version.
Po Lu [Wed, 11 Sep 2024 05:26:17 +0000 (13:26 +0800)]
; * exec/configure.ac: Update version.

(cherry picked from commit 69e1aca041c57ba425425d31471e1c8f86d3bf04)

5 days ago* src/treesit.h (struct Lisp_TS_Parser): Correct merge error.
Po Lu [Wed, 11 Sep 2024 05:25:48 +0000 (13:25 +0800)]
* src/treesit.h (struct Lisp_TS_Parser): Correct merge error.

(cherry picked from commit a139c3d6d888219bb3cb3c0c5a3eb6268c9b7a29)

5 days ago; Update version number of exec/configure.ac
Po Lu [Wed, 11 Sep 2024 04:53:29 +0000 (12:53 +0800)]
; Update version number of exec/configure.ac

* admin/admin.el (set-version): Update AC_INIT expansion in
exec/configure.ac.

* exec/configure.ac: Update version to 30.0.90.

(cherry picked from commit ee3e3a6311196129104881d6e9097bb54d8843af)

5 days agoFix heex-ts-mode indentation following previews elixir-mode change
Yuan Fu [Wed, 11 Sep 2024 02:29:31 +0000 (19:29 -0700)]
Fix heex-ts-mode indentation following previews elixir-mode change

After the previous fix in elixir-ts-mode (0fd259d166c), embedded heex
code are indented like this:

1 defmodule Foo do
2   def foo(assigns) do
3     ~H"""
4 <span>
5   text
6 </span>
7     """
8   end
9 end

The indent rule finds the beginning of the parent heex node, and uses
the indentation of that line as anchor with an offset of 0.  Previously
the parent heex node (fragment) starts at EOL of line 3; after the
previous commit, it now starts at BOL of line 4.  To fix the
indentation, I changed the anchor to the beginning of the elixir
(rather than heex) node at point, which is at EOL at line 3.

* lisp/progmodes/heex-ts-mode.el (heex-ts--indent-rules): Use the elixir
node that contains the heex code as the anchor, instead of the heex root
node.

(cherry picked from commit c5925b6ba5f7821ea72ebd26b76e405cecaabb8e)

5 days ago; * admin/make-tarball.txt: Improve last change.
Andrea Corallo [Tue, 10 Sep 2024 22:43:47 +0000 (00:43 +0200)]
; * admin/make-tarball.txt: Improve last change.

(cherry picked from commit c3383be5f043a1efe6f9650e8d0a6d4616ca4eeb)

5 days ago; * admin/make-tarball.txt: Remove now unnecessary configure flag.
Andrea Corallo [Tue, 10 Sep 2024 22:39:26 +0000 (00:39 +0200)]
; * admin/make-tarball.txt: Remove now unnecessary configure flag.

(cherry picked from commit 8ddb54117f175d8e11f936c850513dcbd6697280)

5 days ago; Skip commit 7e194d33f90a0e4b9b88d90c4759f14e8fffda07
Eshel Yaron [Sat, 14 Sep 2024 20:20:43 +0000 (22:20 +0200)]
; Skip commit 7e194d33f90a0e4b9b88d90c4759f14e8fffda07

5 days agoFix use of Uniscribe font driver in MinGW build
Eli Zaretskii [Tue, 10 Sep 2024 12:14:47 +0000 (15:14 +0300)]
Fix use of Uniscribe font driver in MinGW build

This was inadvertently broken when Windows 9X support was
fixed in June 2024.
* src/w32uniscribe.c (syms_of_w32uniscribe_for_pdumper): Set
'uniscribe_available' non-zero in non-Cygwin builds.  (Bug#73159)

(cherry picked from commit 9019536ea66ac0d47ea6f1ef690efd16e32c7ec4)

5 days agoAvoid crashes in redisplay in batch-mode testing
Eli Zaretskii [Tue, 10 Sep 2024 11:43:52 +0000 (14:43 +0300)]
Avoid crashes in redisplay in batch-mode testing

* src/xdisp.c (try_window_id): Don't crash for "initial" frame.
(Bug#72765)

(cherry picked from commit 5c55c860db7891d1301d0bac78c03a8751ebe642)

5 days agoAvoid 100% CPU load in Tramp
Michael Albinus [Tue, 10 Sep 2024 08:04:01 +0000 (10:04 +0200)]
Avoid 100% CPU load in Tramp

* lisp/net/tramp.el (tramp-wait-for-regexp): Add (sit-for 0.005)
prior calling `tramp-accept-process-output'.  This avoids 100% CPU
load.  (Bug#73046)

(cherry picked from commit 652a8a0838b38a6eab85c55fc61cedd1c61ef20f)

5 days ago; Skip commit ba2190e1ae761b11d5fcb9393869f04d0a1d42a7
Eshel Yaron [Sat, 14 Sep 2024 20:20:31 +0000 (22:20 +0200)]
; Skip commit ba2190e1ae761b11d5fcb9393869f04d0a1d42a7

5 days agoeglot-test-rust-completion-exit-function: Fix failure in -Q session
Dmitry Gutov [Tue, 10 Sep 2024 01:34:53 +0000 (04:34 +0300)]
eglot-test-rust-completion-exit-function: Fix failure in -Q session

* test/lisp/progmodes/eglot-tests.el (eglot--call-with-fixture):
Check for buffer liveness (https://debbugs.gnu.org/72765#29).
(eglot-test-rust-completion-exit-function): Don't expect snippet
expansion to happen (no yasnippet in batch mode).

(cherry picked from commit 818c0cc9a51a1d678749404cdacdf640d6f32d6e)

5 days ago* src/xdisp.c (note_tab_bar_highlight): Remove fallback for help_echo_string.
Juri Linkov [Mon, 9 Sep 2024 18:33:10 +0000 (21:33 +0300)]
* src/xdisp.c (note_tab_bar_highlight): Remove fallback for help_echo_string.

Don't use TAB_BAR_ITEM_CAPTION as the default value
when TAB_BAR_ITEM_HELP is not specified (bug#73050).

(cherry picked from commit 24c4bc108da43afe1ea52782202bd62648eed89a)

5 days ago; Skip commit 466db35877281ce2d5c2a5804e16d9401017d766
Eshel Yaron [Sat, 14 Sep 2024 20:20:08 +0000 (22:20 +0200)]
; Skip commit 466db35877281ce2d5c2a5804e16d9401017d766

5 days ago; Fix last change
Michael Albinus [Mon, 9 Sep 2024 13:35:55 +0000 (15:35 +0200)]
; Fix last change

(cherry picked from commit 7d7aa65f63db78c5732f1580213fc3767b767a4a)

5 days agoSilence compiler error
Michael Albinus [Mon, 9 Sep 2024 13:22:35 +0000 (15:22 +0200)]
Silence compiler error

* lisp/net/tramp.el (tramp-file-name*): Embed `function-put' calls
with `tramp--with-startup'.
(tramp-active-command-completion-p)
* lisp/net/tramp-cache.el (tramp-get-hash-table): Remove declare
form.  Add `tramp-suppress-trace' function property.

(cherry picked from commit d33d8c089b909b1fa64a799146557fcb68096269)

5 days ago; * doc/lispref/searching.texi (Rx Notation): Simplify rx example
Mattias Engdegård [Mon, 9 Sep 2024 13:18:36 +0000 (15:18 +0200)]
; * doc/lispref/searching.texi (Rx Notation): Simplify rx example

(cherry picked from commit f47297782bdb5e5a07e02f119c8013d11f7d7fae)

5 days ago; Skip commit 03e56981675c9533f844257bc7f0bc5603bb58fa
Eshel Yaron [Sat, 14 Sep 2024 20:19:21 +0000 (22:19 +0200)]
; Skip commit 03e56981675c9533f844257bc7f0bc5603bb58fa

5 days ago; * src/treesit.c: Minor cleanups of recent changes.
Eli Zaretskii [Mon, 9 Sep 2024 11:03:15 +0000 (14:03 +0300)]
; * src/treesit.c: Minor cleanups of recent changes.

(cherry picked from commit 9f0603207b17084563c73f271c397c0c469bf3e9)

5 days ago* etc/emacs_lldb.py (Lisp_Object): Recognise Lisp_Sub_Char_Table
Mattias Engdegård [Mon, 9 Sep 2024 08:27:50 +0000 (10:27 +0200)]
* etc/emacs_lldb.py (Lisp_Object): Recognise Lisp_Sub_Char_Table

(cherry picked from commit 21ff61372bf272711514f4c6508f20a5d8ab23ea)

5 days agoSpeed up LLDB support for debugging Emacs
Mattias Engdegård [Mon, 9 Sep 2024 08:23:46 +0000 (10:23 +0200)]
Speed up LLDB support for debugging Emacs

* etc/emacs_lldb.py (Lisp_Object):
Perform some numeric operations in Python instead of invoking LLDB
for evaluation.  Add lots of caches.

(cherry picked from commit 87daaaf9a463720f2ec80201d8f1e41aa29bd7ce)

5 days ago; * lisp/emacs-lisp/chart.el (chart--directory-size): Simpler regexp
Mattias Engdegård [Sat, 7 Sep 2024 14:05:07 +0000 (16:05 +0200)]
; * lisp/emacs-lisp/chart.el (chart--directory-size): Simpler regexp

The empty regexp matches any string.

(cherry picked from commit 95371fa754260199a6ea3428721270a89c341928)

5 days ago; * src/json.c: refactor: clean out development detritus
Mattias Engdegård [Sat, 7 Sep 2024 09:44:08 +0000 (11:44 +0200)]
; * src/json.c: refactor: clean out development detritus

* src/json.c (enum ParseEndBehavior): Remove.
(json_parse): Simplify, moving most code to the callers.

(cherry picked from commit 9a1de38528a6a7bc8dcd283d430e2f69ce3fcae4)

5 days ago* src/treesit.c (treesit_debug_print_parser_list): Fix format string.
Andrea Corallo [Mon, 9 Sep 2024 07:09:48 +0000 (09:09 +0200)]
* src/treesit.c (treesit_debug_print_parser_list): Fix format string.

(cherry picked from commit e0d3f7439573f2c5bde95dbb9005a4efc954aa0b)

5 days ago; * src/treesit.c (treesit_debug_print_parser_list): Fix formatting.
Yuan Fu [Mon, 9 Sep 2024 04:14:00 +0000 (21:14 -0700)]
; * src/treesit.c (treesit_debug_print_parser_list): Fix formatting.

(cherry picked from commit bed38ded730130d63f08af7ad4049d87efe9bcf8)

5 days ago; * src/treesit.c: Add a prototype so there's no warning about it.
Yuan Fu [Mon, 9 Sep 2024 04:04:29 +0000 (21:04 -0700)]
; * src/treesit.c: Add a prototype so there's no warning about it.

(cherry picked from commit 18c6487dbd06ed01b5736d8c94582c5b72006b65)

5 days agoRead more on each call to treesit's buffer reader
Yuan Fu [Mon, 9 Sep 2024 00:46:18 +0000 (17:46 -0700)]
Read more on each call to treesit's buffer reader

* src/treesit.c (treesit_read_buffer): Read until the gap or visible
end, instead of reading a single char.

(cherry picked from commit bf23382f1f2d6ea072db4e4750f8a345f77a3ef2)

5 days ago; Skip commit 3435464452b4947098b8ccbe93e5c0afdd2ed06e
Eshel Yaron [Sat, 14 Sep 2024 20:16:21 +0000 (22:16 +0200)]
; Skip commit 3435464452b4947098b8ccbe93e5c0afdd2ed06e

5 days agoAdd debugging function for treesit.c
Yuan Fu [Mon, 9 Sep 2024 00:30:21 +0000 (17:30 -0700)]
Add debugging function for treesit.c

* src/treesit.c (treesit_debug_print_parser_list): New function.

(cherry picked from commit 3fcec09f754af9822339eff3ea15d43eb7d19014)

5 days agoFix elixir-ts-mode's range query
Yuan Fu [Mon, 9 Sep 2024 00:28:26 +0000 (17:28 -0700)]
Fix elixir-ts-mode's range query

* lisp/progmodes/elixir-ts-mode.el:
(elixir-ts--treesit-range-rules): Add underscore in front of the name
capture, so Emacs won't put heex parser on it.

(cherry picked from commit 0fd259d166c0dca4d097ad026ac748748ba88497)

5 days ago; project-files-relative-names: Update docstring (bug#72701)
Dmitry Gutov [Sun, 8 Sep 2024 20:50:58 +0000 (23:50 +0300)]
; project-files-relative-names: Update docstring (bug#72701)

(cherry picked from commit 2329b36b1fb0dab969554eb9e1617e31a9755084)

5 days agoMake json-serialize always return a unibyte string (bug#70007)
Mattias Engdegård [Sun, 8 Sep 2024 18:02:34 +0000 (20:02 +0200)]
Make json-serialize always return a unibyte string (bug#70007)

The JSON format is defined as a byte sequence and will always be used as
such, so returning a multibyte string makes little sense.

* src/json.c (json_out_to_string): Remove.
(Fjson_serialize): Return unibyte string.
* test/src/json-tests.el (json-serialize/roundtrip)
(json-serialize/roundtrip-scalars, json-serialize/string):
Update tests.
* doc/lispref/text.texi (Parsing JSON): Document.
* etc/NEWS: Announce.

(cherry picked from commit e55e2e1c6baebbd105f930fa553ec65c74a3000d)

5 days agoFix :type of some user options
Eli Zaretskii [Sun, 8 Sep 2024 16:17:48 +0000 (19:17 +0300)]
Fix :type of some user options

* lisp/which-key.el:
* lisp/progmodes/python.el:
* lisp/play/animate.el:
* lisp/pixel-scroll.el:
* lisp/image/image-dired.el:
* lisp/htmlfontify.el: Change :type of user options from 'float'
to 'number' where integer values make sense.  (Bug#73098)

(cherry picked from commit 4073c624376148d469a27a7c487a9b2f49d5352a)

5 days ago; * doc/lispref/os.texi (Suspending Emacs): Fix last change.
Eli Zaretskii [Sat, 7 Sep 2024 16:41:36 +0000 (19:41 +0300)]
; * doc/lispref/os.texi (Suspending Emacs): Fix last change.

(cherry picked from commit 89c99891b2b3ab087cd7e824cef391ef26800ab4)

5 days ago; Improve documentation of 'suspend-emacs'
Eli Zaretskii [Sat, 7 Sep 2024 15:38:40 +0000 (18:38 +0300)]
; Improve documentation of 'suspend-emacs'

* doc/lispref/os.texi (Suspending Emacs):
* src/keyboard.c (Fsuspend_emacs): Document possible failures
in sending STUFFSTRING to the shell.  (Bug#73100).

(cherry picked from commit 4f044d0d3df019e9a7717b443fe4b4c172854c7c)

9 days ago; Update scope.el tests
Eshel Yaron [Tue, 10 Sep 2024 06:56:34 +0000 (08:56 +0200)]
; Update scope.el tests

11 days agoDrop electric-layout-mode, fix some tests
Eshel Yaron [Sun, 8 Sep 2024 15:43:46 +0000 (17:43 +0200)]
Drop electric-layout-mode, fix some tests

11 days ago; (electric-indent-local-mode-map): Remap 'newline'.
Eshel Yaron [Sun, 8 Sep 2024 15:42:46 +0000 (17:42 +0200)]
; (electric-indent-local-mode-map): Remap 'newline'.

11 days ago; (project-find-file-in-root): Avoid 'call-interactively'.
Eshel Yaron [Sun, 8 Sep 2024 12:54:14 +0000 (14:54 +0200)]
; (project-find-file-in-root): Avoid 'call-interactively'.

11 days ago; Update NEWS for last change.
Eli Zaretskii [Sun, 8 Sep 2024 06:46:42 +0000 (09:46 +0300)]
; Update NEWS for last change.

(cherry picked from commit 8081c08ff1b4fd5e948058be7067136e11ac0ecb)

11 days agoSupport for custom php.ini for the built-in PHP web server.
Vincenzo Pupillo [Mon, 2 Sep 2024 12:11:01 +0000 (14:11 +0200)]
Support for custom php.ini for the built-in PHP web server.

A new CONFIG attribute, which defaults to 'php-ts-mode-php-config',
allows an alternative php.ini file to be specified for the built-in web
server.  The 'php-ts-mode-run-php-webserver' function, when called
interactively with a prefix argument, also requires this new attribute.
* lisp/progmodes/php-ts-mode.el (php-ts-mode--parent-html-bol):
Fix docstring.
* lisp/progmodes/php-ts-mode.el (php-ts-mode-run-php-webserver):
New CONFIG attribute.  Update docstring.
* lisp/progmodes/php-ts-mode.el (php-ts-mode--webserver-read-args):
Support the new TYPE.  Update docstring.  (Bug#72966)

(cherry picked from commit bb239841670f9bf87576c8196c41fdf295d5eac2)

11 days agoImprove diagnostic of type mismatch in 'setopt'
Eli Zaretskii [Sun, 8 Sep 2024 06:19:34 +0000 (09:19 +0300)]
Improve diagnostic of type mismatch in 'setopt'

* lisp/cus-edit.el (setopt--set): Name the variable in the warning
message.  (Bug#73084)

* test/lisp/cus-edit-tests.el (test-setopt): Adjust test.

(cherry picked from commit 2ce0d397b12cafcb3e1ac5630bc3fbca61bd6b87)

11 days ago; Edit the latest NEWS entry
Dmitry Gutov [Sun, 8 Sep 2024 02:14:02 +0000 (05:14 +0300)]
; Edit the latest NEWS entry

(cherry picked from commit 79805652af1dd881b77f75fc1e32eb6487f03da5)

11 days agoKeep local keymap out of vc-git-stash-get-at-point
James Thomas [Fri, 23 Aug 2024 05:13:39 +0000 (10:43 +0530)]
Keep local keymap out of vc-git-stash-get-at-point

* lisp/vc/vc-git.el (vc-git-stash-get-at-point):
Return the substring without text properties (bug#72768).

(cherry picked from commit 2aef1acc4d2e34fc63b4d9cfd2b0a6a9c08602fb)

11 days agoFix a typo in ediff-init.el
Eli Zaretskii [Sat, 7 Sep 2024 09:41:29 +0000 (12:41 +0300)]
Fix a typo in ediff-init.el

* lisp/vc/ediff-init.el (ediff-nonempty-string-p): Fix typo.
Reported by Jurgen De Backer
<jurgen.de-backer.ext@eurocontrol.int> (bug#73042).

(cherry picked from commit b420e149b1ebc41dd183ab460930d78321e2e339)

11 days agoFix 'chart-space-usage' on MS-Windows
Eli Zaretskii [Sat, 7 Sep 2024 09:17:24 +0000 (12:17 +0300)]
Fix 'chart-space-usage' on MS-Windows

* lisp/emacs-lisp/chart.el (chart--file-size)
(chart--directory-size): New functions.
(chart-space-usage): Invoke 'du' correctly on MS-Windows.  Provide
alternative implementation in Lisp when 'du' is not installed,
using 'chart--directory-size' and 'chart--file-size'.  (Bug#72919)

(cherry picked from commit e1304e9b1bbb62ff3e3680c84bd1fad4922b41eb)

11 days agoFix alignment and documentation of vtable.el
Eli Zaretskii [Sat, 7 Sep 2024 08:27:03 +0000 (11:27 +0300)]
Fix alignment and documentation of vtable.el

* lisp/emacs-lisp/vtable.el (vtable--insert-header-line): Ensure
proper alignment between the columns in header-line and in the
body of the table.  (Bug#73032)

* doc/misc/vtable.texi (Making A Table): Document the defaults of
the various keyword parameters.

(cherry picked from commit 04c44405bf604380c575fa2a4d9611af0f3bc0d9)

11 days agoRemove low-level keyboard hook when attaching GDB to Emacs on Windows
Eli Zaretskii [Sat, 7 Sep 2024 08:15:43 +0000 (11:15 +0300)]
Remove low-level keyboard hook when attaching GDB to Emacs on Windows

This fixes the problem whereby attaching GDB to a running Emacs
on MS-Windows would slow down keyboard input, because the
low-level keyboard hook installed by Emacs at startup was still
installed, but with Emacs stopped, the hook code couldn't run,
and therefore the OS would time-out waiting for the hook to
return.  Now when GDB is attached to Emacs, it will remove the
hook right away.
* src/.gdbinit: Call 'remove_w32_kbdhook' if the keyboard hook is
already installed.
* src/alloc.c (defined_WINDOWSNT): New enum.
(gdb_make_enums_visible): Add 'defined_WINDOWSNT'.

(cherry picked from commit 358208dfaa374cc71c4a1c081c2d5bff9127c55a)

11 days agoFix multisession.el when SQLite becomes unavailable
Eli Zaretskii [Sat, 7 Sep 2024 07:42:01 +0000 (10:42 +0300)]
Fix multisession.el when SQLite becomes unavailable

This is for the case when the user customizes multisession
to use SQLite, but then built-in SQLite support becomes
unavailable for some reason (e.g., upgrade the OS).
* lisp/emacs-lisp/multisession.el (multisession-backend-value)
(multisession--backend-set-value, multisession--backend-values)
(multisession--backend-delete): Call next method if built-in
SQLite support is not available.  Suggested by Stefan Monnier
<monnier@iro.umontreal.ca>.  (Bug#72788)

(cherry picked from commit e2154c63761add6063a719ba6253c8e6e8133814)

11 days agoFix discrepancies in auth-source-pass vs netrc behavior
F. Jason Park [Mon, 12 Aug 2024 04:55:32 +0000 (21:55 -0700)]
Fix discrepancies in auth-source-pass vs netrc behavior

The option `auth-source-pass-extra-query-keywords' aims to make its
back end hew as close to the other built-in ones as possible, except
WRT features not yet implemented, such as arbitrary "attribute"
retrieval and new entry creation.  This change only concerns behavior
exhibited when the option is enabled.

* lisp/auth-source-pass.el (auth-source-pass--match-parts): Account
for the case in which a query lacks a reference parameter for a
`:port' or `:user' but still requires one or both via the `:require'
keyword.  Previously, such a query would fail even when an entry met
this requirement by simply specifying a field with any non-null value
corresponding to the required parameter.
(auth-source-pass--find-match-many): Account for the baseline case
where a matching entry lacks a secret and the user doesn't require
one.  Although this function doesn't currently return so-called
"attributes" from the contents of a matching decrypted file, were it
to eventually, this case would no longer be academic.
* test/lisp/auth-source-pass-tests.el
(auth-source-pass-extra-query-keywords--req-noparam-miss-netrc)
(auth-source-pass-extra-query-keywords--req-noparam-miss)
(auth-source-pass-extra-query-keywords--req-param-netrc)
(auth-source-pass-extra-query-keywords--req-param): New tests.
(auth-source-pass-extra-query-keywords--netrc-baseline): New test
asserting behavior of netrc backend when passed a lone `:host' as a
query parameter.
(auth-source-pass-extra-query-keywords--baseline): Reverse expected
outcome to match that of the netrc reference implementation.
(bug#72441)

(cherry picked from commit 80228d1f6eded7a042dfd29c3614b3214934b5c3)

11 days ago; * lisp/progmodes/project.el (project-find-file-in-root): Doc fix.
Eli Zaretskii [Fri, 6 Sep 2024 17:43:33 +0000 (20:43 +0300)]
; * lisp/progmodes/project.el (project-find-file-in-root): Doc fix.

(cherry picked from commit 6cc87d07dd8aea1d1a1669df51a872adb7ccf9c5)

11 days ago* etc/NEWS: Mention it.
Spencer Baugh [Thu, 5 Sep 2024 13:56:50 +0000 (09:56 -0400)]
* etc/NEWS: Mention it.

Add project-find-file-in-root (bug#73044)

Several users have asked me for a command which is just
find-file, but starting from the project root.  In large
projects, where project-files is expensive, this will have
substantially better performance than project-find-file.

Also, it allows opening files which aren't included in
project-files without paying the further cost of running
project--files-in-directory (which is what happens when passing
INCLUDE-ALL=t to project-find-file).

Also, it may help with user confusion about why
project-find-file doesn't behave like find-file (which I've
encountered a few times).

This command is equivalent to C-x p o C-x C-f, but it's nice to
be able to bind it to a specific key.

Overall, this is easy enough to provide, so let's just do that.

* lisp/progmodes/project.el (project-find-file-in-root): Add.

* etc/NEWS: Mention it.

(cherry picked from commit d879c40f68c078bdba15122e4e886a2052fbddf4)

11 days ago; * lisp/which-key.el: Fix ':package-version' (bug#73072).
Eli Zaretskii [Fri, 6 Sep 2024 16:02:50 +0000 (19:02 +0300)]
; * lisp/which-key.el: Fix ':package-version' (bug#73072).

(cherry picked from commit 4d6fadb8d2146218fd573dc8b6ccfcab59fbfb93)

11 days agoRework fix of MinGW build due to Gnulib update
Eli Zaretskii [Fri, 6 Sep 2024 06:34:20 +0000 (09:34 +0300)]
Rework fix of MinGW build due to Gnulib update

This commit finishes the rework started by reverting changes
to lib/sig2str.h, by adding Emacs-private additions to
signal.h.
* nt/inc/signal.h: New file, defines SIG2STR_MAX and
prototypes of 'sig2str' and 'str2sig'.

(cherry picked from commit 658715c977c78c312685cd6c594a2cbc0d31fc7d)

11 days agoRevert "Fix MinGW build broken by recent update from Gnulib"
Eli Zaretskii [Fri, 6 Sep 2024 06:24:56 +0000 (09:24 +0300)]
Revert "Fix MinGW build broken by recent update from Gnulib"

This reverts commit b737c6125d69497ad5d2a29d4b5a2b17698992e5.
It is no longer needed with the introduction of nt/inc/signal.h.

(cherry picked from commit 266e321d966367f9bd9523a0dee901d8c905a0b4)

11 days agoRevert "; Fix last change in lib/sig2str.h."
Eli Zaretskii [Fri, 6 Sep 2024 06:24:30 +0000 (09:24 +0300)]
Revert "; Fix last change in lib/sig2str.h."

This reverts commit 91e7b47d6c56e7963be232de8057e1a3f710f1b5.
It is no longer needed with the introduction of nt/inc/signal.h.

(cherry picked from commit e218d090876d9bffca06284247cc4cba89677ec9)

11 days agoRevert "; Another fix for str2sig.h"
Eli Zaretskii [Fri, 6 Sep 2024 06:23:55 +0000 (09:23 +0300)]
Revert "; Another fix for str2sig.h"

This reverts commit df57e44a08fd5c7dc159254a40f5d2e4d008e8df.
It is no longer needed with introduction of nt/inc/signal.h.

(cherry picked from commit 42da79c07583648b8677f2bcc880fad3244ac32e)

11 days ago; Improve doc strings of 'tab-bar-mode' and 'tab-line-mode'
Eli Zaretskii [Thu, 5 Sep 2024 19:09:40 +0000 (22:09 +0300)]
; Improve doc strings of 'tab-bar-mode' and 'tab-line-mode'

* lisp/tab-line.el (tab-line-mode):
* lisp/tab-bar.el (tab-bar-mode): Doc fixes (bug#73049)

(cherry picked from commit 54071b9cef287ac6826d67534d0c5c935bbca78c)

11 days agoFix test failure in erc-networks-tests
Ulrich Müller [Wed, 4 Sep 2024 11:35:51 +0000 (13:35 +0200)]
Fix test failure in erc-networks-tests

* test/lisp/erc/erc-networks-tests.el
(erc-networks--id-sort-buffers): Make sure that buffers have
different timestamps.  (Bug#73036)

(cherry picked from commit 87a8b12a0c45cd92665978e63cb56354d61cc076)

11 days ago; * doc/emacs/building.texi (Lisp Libraries): Update (bug#72961).
Eli Zaretskii [Thu, 5 Sep 2024 06:23:23 +0000 (09:23 +0300)]
; * doc/emacs/building.texi (Lisp Libraries): Update (bug#72961).

(cherry picked from commit dad0935cfcbed67b5f538ba26531eeefce356c12)

11 days ago; Skip commit e4dc6711b02bf459c1e64794107c5046f9e3c054
Eshel Yaron [Sun, 8 Sep 2024 11:22:31 +0000 (13:22 +0200)]
; Skip commit e4dc6711b02bf459c1e64794107c5046f9e3c054

11 days ago; * doc/lispref/modes.texi (Mode Line Data): Fox wording.
Eli Zaretskii [Wed, 4 Sep 2024 14:14:25 +0000 (17:14 +0300)]
; * doc/lispref/modes.texi (Mode Line Data): Fox wording.

(cherry picked from commit c1cd036d27a8b078278619a356830521c6ffa6f2)

11 days ago; Caveats about using :eval in 'mode-line-format'
Eli Zaretskii [Tue, 3 Sep 2024 14:33:28 +0000 (17:33 +0300)]
; Caveats about using :eval in 'mode-line-format'

* doc/lispref/modes.texi (Mode Line Data): Warn against more
infinite-recursion cases in ':eval' in mode line.  Reported by
Nicolas P. Rougier <nicolas.rougier@inria.fr>.

(cherry picked from commit ae2463796f236b8ee2cef3b5e38bffa13abd2233)

11 days agoUpdate FSF's address
Stefan Kangas [Mon, 2 Sep 2024 18:56:59 +0000 (20:56 +0200)]
Update FSF's address

* doc/emacs/emacs.texi (Distrib):
* doc/lispintro/emacs-lisp-intro.texi:
* doc/lispref/elisp.texi:
* doc/misc/org.org (Link Abbreviations):
* etc/tutorials/TUTORIAL.eo:
* lisp/elide-head.el:
* lisp/textmodes/page-ext.el: Update the FSF address to 31 Milk Street.

(cherry picked from commit 4047072c7d847afb5027dab27e97606a49c1d62e)

11 days agoSupport the new option in ruby-ts-mode too
Dmitry Gutov [Mon, 2 Sep 2024 18:02:21 +0000 (21:02 +0300)]
Support the new option in ruby-ts-mode too

* etc/NEWS: Describe it here.

* lisp/progmodes/ruby-ts-mode.el (ruby-ts--parent-call-or-bol):
Support the option ruby-bracketed-args-indent here too (bug#60321).

* test/lisp/progmodes/ruby-ts-mode-tests.el: Include
ruby-bracketed-args-indent.rb as test examples.

* test/lisp/progmodes/ruby-mode-resources/ruby-bracketed-args-indent.rb:
Extend examples for better regression testing.

(cherry picked from commit 24f12bdd77ee3dd1f2254bdc6cb5cbf7be488c36)

11 days agoAdd new option ruby-bracketed-args-indent
Aaron Jensen [Sat, 31 Aug 2024 23:31:20 +0000 (19:31 -0400)]
Add new option ruby-bracketed-args-indent

* lisp/progmodes/ruby-mode.el (ruby-bracketed-args-indent): New option.
(ruby-smie-rules): Use it (bug#60321).
* test/lisp/progmodes/ruby-mode-resources/ruby-bracketed-args-indent.rb:
New file.
* test/lisp/progmodes/ruby-mode-tests.el: Use it for new case.

(cherry picked from commit 6c15b7710d4bfc201afbafd2daec74c2baec9102)

11 days agoFix Rmail base64 and qp decoding of MIME payloads
Eli Zaretskii [Mon, 2 Sep 2024 14:14:29 +0000 (17:14 +0300)]
Fix Rmail base64 and qp decoding of MIME payloads

* lisp/mail/rmailmm.el (rmail-mime-insert-decoded-text)
(rmail-mime-insert-html): Remove ^M characters left from DOS EOLs.
This is what 'rmail-decode-region' does for non-MIME messages.

(cherry picked from commit 7799ef43354d756d7144cab3437f38496199522c)

11 days agoUpdate to Org 9.7.11
Kyle Meyer [Sun, 1 Sep 2024 21:51:22 +0000 (17:51 -0400)]
Update to Org 9.7.11

(cherry picked from commit 0def396fa8f4806226c4d010daa86ce5f8f9eb13)

11 days ago; Fix recent changes in documentation
Eli Zaretskii [Sun, 1 Sep 2024 17:57:03 +0000 (20:57 +0300)]
; Fix recent changes in documentation

* doc/lispref/positions.texi (List Motion): Fix indexing.
* doc/emacs/mini.texi (Completion Options): Fix wording.

(cherry picked from commit 8c044bd97266b42973abb3343eeb4ea48d0949a0)

11 days ago; Skip commit e0d8879bcd58c9eb5001cdc5294c126f742db63c
Eshel Yaron [Sun, 8 Sep 2024 11:21:13 +0000 (13:21 +0200)]
; Skip commit e0d8879bcd58c9eb5001cdc5294c126f742db63c

11 days ago; Small doc fixes
Juri Linkov [Sun, 1 Sep 2024 16:53:52 +0000 (19:53 +0300)]
; Small doc fixes

* doc/emacs/dired.texi (Operating on Files): Add indexed function
'dired-do-open' to the text.

* doc/emacs/mini.texi (Completion Options): Add indexed functions
'previous-line-completion' and 'next-line-completion' to the text.

* doc/lispref/minibuf.texi (Completion Variables): Remove self-reference.

* doc/lispref/positions.texi (List Motion): Add indexed function
'treesit-forward-sexp' to the text.  Add @vindex for
'forward-sexp-function'.

* etc/NEWS: Group tab-bar and tab-line items separately.
Move two Buffer-menu items to separate outline.

(cherry picked from commit 4ff4b78f922353236cb2970270dd175c8011ba8f)

11 days ago; Reword some "allows Xing"
Sean Whitton [Sun, 1 Sep 2024 10:20:25 +0000 (11:20 +0100)]
; Reword some "allows Xing"

* doc/emacs/anti.texi (Antinews):
* etc/NEWS:
* etc/NEWS.29:
* lisp/tab-bar.el (tab-bar-select-restore-windows):
* lisp/vc/vc-git.el (vc-git-print-log-follow): Reword to avoid
"allows Xing".  This is reported to be better for non-native
readers.  Based on suggestions of Eli Zaretskii <eliz@gnu.org>.

(cherry picked from commit da980ad838e404460da8e284a62a35395833a96c)

11 days ago; More accurate text about how `equal` compares various objects
Mattias Engdegård [Sat, 31 Aug 2024 16:39:46 +0000 (18:39 +0200)]
; More accurate text about how `equal` compares various objects

* doc/lispref/objects.texi (Equality Predicates):
Attempt at improving the text further (bug#72888).

(cherry picked from commit 2ca7d5649c69efbc65a4c7c074c52d8f4f0d4a21)

2 weeks ago; Another fix for str2sig.h
Eli Zaretskii [Thu, 5 Sep 2024 05:38:16 +0000 (08:38 +0300)]
; Another fix for str2sig.h

(cherry picked from commit df57e44a08fd5c7dc159254a40f5d2e4d008e8df)

2 weeks ago; Fix last change in lib/sig2str.h.
Eli Zaretskii [Thu, 5 Sep 2024 05:26:00 +0000 (08:26 +0300)]
; Fix last change in lib/sig2str.h.

(cherry picked from commit 91e7b47d6c56e7963be232de8057e1a3f710f1b5)

2 weeks agoFix MinGW build broken by recent update from Gnulib
Eli Zaretskii [Thu, 5 Sep 2024 05:20:59 +0000 (08:20 +0300)]
Fix MinGW build broken by recent update from Gnulib

Gnulib moved the prototypes of 'sig2str' and 'str2sig' from
sig2str.h to signal.h, but MinGW does not use the Gnulib
signal.h header, and doesn't have these functions in its
own signal.h.
* lib/sig2str.h (SIG2STR_MAX, sig2str, str2sig): Define and
prototype if not already defined.

(cherry picked from commit b737c6125d69497ad5d2a29d4b5a2b17698992e5)

2 weeks agoBetter port to Android 35
Po Lu [Thu, 5 Sep 2024 02:47:51 +0000 (10:47 +0800)]
Better port to Android 35

* java/INSTALL: Don't refer users to build-tools 33.0.x.

* java/res/values-v35/styles.xml: New dark theme; define status
bar colors properly for this release.

(cherry picked from commit 73367ea5c1821e46cea57fda424a8a65ac5e586a)

2 weeks ago; Update from Gnulib
Po Lu [Thu, 5 Sep 2024 00:41:11 +0000 (08:41 +0800)]
; Update from Gnulib

* configure.ac:

* src/conf_post.h: Remove workarounds now rendered redundant by
Gnulib.

(cherry picked from commit 1a13c5e63e1eb8fcf15c53ae4ed0caca8b928a3b)

2 weeks agoPort to Android 35
Po Lu [Wed, 4 Sep 2024 09:24:34 +0000 (17:24 +0800)]
Port to Android 35

* configure.ac: Temporary workaround for Gnulib bug.  Verify
that the provided android.jar corresponds to Android 35, or any
later version.

* cross/ndk-build/Makefile.in (NDK_BUILD_SO_LDFLAGS): New
variable.

* cross/ndk-build/ndk-resolve.mk
(NDK_LOCAL_A_NAMES_$(LOCAL_MODULE)): Define to
NDK_BUILD_SO_LDFLAGS by default to enable building binaries
with support for 16 kb page sizes.

* java/AndroidManifest.xml.in: Target SDK 35.

* java/INSTALL (16KB PAGE SIZES): New section.  Replace
references to Android 34 with 35.

* java/org/gnu/emacs/EmacsActivity.java (onCreate): Restore
pre-SDK 35 inset-relative placement.

* java/org/gnu/emacs/EmacsFillPolygon.java (perform): Suppress
deprecation warnings, and document why.

* m4/ndk-build.m4 (ndk_INIT, ndk_LATE): Check for and enable
toolchain support for 16 KB page sizes, if available.
(ndk_CONFIG_FILES): Export linker options so derived.

* src/conf_post.h [__ANDROID_API__ < 35]: Include system time.h
and redefine timezone_t to rpl_timezone_t, so that the Gnulib
replacement may not conflict with the useless OS type.

(cherry picked from commit 2847106f3b6174f25ab43551f96612209fe951c8)

2 weeks agoNew variable 'completion-preview-overlay-priority'
Eshel Yaron [Wed, 4 Sep 2024 16:21:13 +0000 (18:21 +0200)]
New variable 'completion-preview-overlay-priority'

* lisp/completion-preview.el: Update commentary.
(completion-preview-overlay-priority): New variable.
(completion-preview--make-overlay): Use it.

2 weeks ago; Skip commit d277123f4bf855f0d055d283a42166f123fa1fde
Eshel Yaron [Tue, 3 Sep 2024 07:45:01 +0000 (09:45 +0200)]
; Skip commit d277123f4bf855f0d055d283a42166f123fa1fde

2 weeks ago; * lisp/menu-bar.el (menu-bar-showhide-menu): Small optimization.
Juri Linkov [Sun, 1 Sep 2024 17:05:02 +0000 (20:05 +0300)]
; * lisp/menu-bar.el (menu-bar-showhide-menu): Small optimization.

Use 'bound-and-true-p' to check for non-nil 'outline-minor-mode'.

(cherry picked from commit 92ea393a16e5c99a8860dab368c6ca3ca6abc3c5)

2 weeks ago* lisp/progmodes/js.el: Improve sexp navigation in js-ts-mode (bug#72573)
Juri Linkov [Sun, 1 Sep 2024 17:02:12 +0000 (20:02 +0300)]
* lisp/progmodes/js.el: Improve sexp navigation in js-ts-mode (bug#72573)

(js--treesit-sexp-nodes): Add "template_string", "template_substitution",
"property_identifier".
(js-ts-mode): Replace "template_string" with "string_fragment"
in 'text' part of 'treesit-thing-settings'.

(cherry picked from commit 0155f2ae2c84c649452b0eaac3fd247a37e4eaff)

2 weeks agoExplicitly include stdlib.h in src/image.c (Bug#72929)
Pip Cet [Sun, 1 Sep 2024 15:37:02 +0000 (15:37 +0000)]
Explicitly include stdlib.h in src/image.c (Bug#72929)

* src/image.c: Add include.

(cherry picked from commit dc2cdd36835cdce9426d0f822590a0d2f47d0bcc)

2 weeks agoDelete cc-compat.el from Makefile.in
Stefan Kangas [Sun, 1 Sep 2024 13:20:49 +0000 (15:20 +0200)]
Delete cc-compat.el from Makefile.in

* lisp/Makefile.in: Delete obsolete file cc-compat.el.  It has been
moved to obsolete/ and is compiled separately.

(cherry picked from commit 99a03ddb2d43d67577814b96e40ec069739b6421)

2 weeks agoFix integer overflow when reading XPM
Stefan Kangas [Mon, 22 Jul 2024 16:23:01 +0000 (18:23 +0200)]
Fix integer overflow when reading XPM

* src/image.c (xpm_str_to_int): New function.
(xpm_load_image): Replace sscanf with strtol, to correctly handle
integer overflow when reading a malformed XPM file.  (Bug#72245)

(cherry picked from commit 73277a4097bb6c0d7c9ec1042f053584b28af1dd)

2 weeks agoFix broken use-package tests
Stefan Kangas [Sun, 1 Sep 2024 09:29:36 +0000 (11:29 +0200)]
Fix broken use-package tests

* lisp/use-package/use-package-core.el (use-package-keywords): Change
keyword order to match the one before adding :pin, :ensure, :delight,
and :diminish directly to this list.  This fixes some broken unit tests.

(cherry picked from commit bca315aa4c44f4dc0feb0324e5e8c2f7b599fec8)

2 weeks agoBetter ad-hoc Emacs release of symbol introduction override
Mattias Engdegård [Mon, 26 Aug 2024 15:18:25 +0000 (17:18 +0200)]
Better ad-hoc Emacs release of symbol introduction override

The file etc/symbol-releases.eld now contains explicit version
information for selected symbols that our NEWS* scraper doesn't
resolve correctly.

* etc/NEWS.unknown: Remove this file, replaced with...
* etc/symbol-releases.eld: ...this new file.
* lisp/help-fns.el (help-fns--first-release-override)
(help-fns--mention-first-function-release)
(help-fns--mention-first-variable-release): New.
(help-fns--mention-first-release): Try the override information first
before scraping the NEWS* files.

(cherry picked from commit 59e0b82776ade72680e7c369f6089eab4a74dc4a)

2 weeks ago; Skip commit ca8170d906f99f40a953c399a94bf99e6466abed
Eshel Yaron [Mon, 2 Sep 2024 10:58:47 +0000 (12:58 +0200)]
; Skip commit ca8170d906f99f40a953c399a94bf99e6466abed