emacs.git
15 months ago* admin/update-copyright: Print reminder to do manual updates.
Stefan Kangas [Sat, 14 Sep 2024 15:34:09 +0000 (17:34 +0200)]
* admin/update-copyright: Print reminder to do manual updates.

15 months ago* admin/notes/years: Update.
Stefan Kangas [Sat, 14 Sep 2024 15:19:23 +0000 (17:19 +0200)]
* admin/notes/years: Update.

15 months ago* etc/TODO: New item "support indentation guides".
Stefan Kangas [Sat, 14 Sep 2024 14:34:11 +0000 (16:34 +0200)]
* etc/TODO: New item "support indentation guides".

Ref:
https://lists.gnu.org/r/emacs-devel/2024-07/msg01062.html

15 months agoFix regression in widget-move (bug#72995)
Stephen Berman [Sat, 14 Sep 2024 10:42:49 +0000 (12:42 +0200)]
Fix regression in widget-move (bug#72995)

* lisp/wid-edit.el (widget-move): Avoid advancing point only if it
is at the start of a widget at BOB.

* test/lisp/wid-edit-tests.el (widget-test-widget-move-bug72995): New test.

15 months ago; * lisp/cus-edit.el (setopt): Doc fix. (Bug#73098)
Eli Zaretskii [Sat, 14 Sep 2024 09:33:36 +0000 (12:33 +0300)]
; * lisp/cus-edit.el (setopt): Doc fix.  (Bug#73098)

15 months ago; * lisp/minibuffer.el (completion-pcm--merge-completions): Fix comments.
Eli Zaretskii [Sat, 14 Sep 2024 09:26:54 +0000 (12:26 +0300)]
; * lisp/minibuffer.el (completion-pcm--merge-completions): Fix comments.

15 months agoCorrectly include fixed strings before a prefix wildcard in PCM
Spencer Baugh [Mon, 26 Aug 2024 14:12:51 +0000 (10:12 -0400)]
Correctly include fixed strings before a prefix wildcard in PCM

In 03ac16ece40ba3e3ba805d6a61cc457d84bf3792 I fixed a bug with the
PCM implementation of substring completion, relating to the handling
of PCM wildcards.
However, this fix was incomplete.  This change completes the fix by
also including a fixed string if it appears before a 'prefix'
wildcard, even if 'try-completion' doesn't discover that fixed
string grows to a unique completion.
I discovered this bug while working on enhancements to PCM
completion related to 'completion-pcm-leading-wildcard'.
* lisp/minibuffer.el (completion-pcm--merge-completions): Include
fixed strings before 'prefix wildcard.  (Bug#72819)
* test/lisp/minibuffer-tests.el (completion-substring-test-5): Add a
test for this behavior.

15 months ago; * lisp/treesit.el (treesit-major-mode-setup): Doc fix.
Eli Zaretskii [Sat, 14 Sep 2024 09:02:56 +0000 (12:02 +0300)]
; * lisp/treesit.el (treesit-major-mode-setup): Doc fix.

15 months ago; Improve documentation of 'easy-menu-define'
Eli Zaretskii [Sat, 14 Sep 2024 08:55:08 +0000 (11:55 +0300)]
; Improve documentation of 'easy-menu-define'

* doc/lispref/keymaps.texi (Easy Menu):
* lisp/emacs-lisp/easymenu.el (easy-menu-define): Document that
SYMBOL is also defined as a variable.  (Bug#73108)

15 months agoSet treesit-primary-parser for c and elixir ts mode
Yuan Fu [Sat, 14 Sep 2024 07:46:05 +0000 (00:46 -0700)]
Set treesit-primary-parser for c and elixir ts mode

For buffers with multiple parsers, it's important to set this variable
so font-lock invalidation works smoothly.

* lisp/progmodes/c-ts-mode.el (c-ts-mode): Set treesit-primary-parser.
* lisp/progmodes/elixir-ts-mode.el (elixir-ts-mode): Set
treesit-primary-parser.

15 months ago; Minor doc fix in treesit.el
Yuan Fu [Sat, 14 Sep 2024 07:19:47 +0000 (00:19 -0700)]
; Minor doc fix in treesit.el

* lisp/treesit.el (treesit-outline-search): Mention parameters.
(treesit-major-mode-setup): Mention outline setup.

15 months agoFix range handling so it works for multibyte buffer (bug#73204)
Yuan Fu [Sat, 14 Sep 2024 04:42:17 +0000 (21:42 -0700)]
Fix range handling so it works for multibyte buffer (bug#73204)

Here by multibyte buffer I mean buffer that includes non-ASCII
characters.

The problem is illustrated by this comment, which I copied from the
source:

======================================================================
(ref:bytepos-range-pitfall) Suppose we have the following buffer
content ([ ] is a unibyte char, [    ] is a multibyte char):

    [a][b][c][d][e][ f  ]

and the following ranges (denoted by braces):

    [a][b][c][d][e][ f  ]
    {       }{    }

So far so good, now user deletes a unibyte char at the beginning:

    [b][c][d][e][ f  ]
    {       }{    }

Oops, now our range cuts into the multibyte char, bad!
======================================================================

* src/treesit.c (treesit_debug_print_parser_list): Minor fix.
(treesit_sync_visible_region): Change the way we fixup ranges, instead
of using the bytepos ranges from tree-sitter, we use the cached lisp
charpos ranges.
(treesit_make_ts_ranges): New function.
(Ftreesit_parser_set_included_ranges): Refactor out the new function
treesit_make_ts_ranges.
(Ftreesit_parser_included_ranges): Rather than getting the ranges from
tree-sitter, just return the cached lisp ranges.

* src/treesit.h (Lisp_TS_Parser): Add some comment.
* test/src/treesit-tests.el (treesit-range-fixup-after-edit): New test.

15 months agoRevert "Read more on each call to treesit's buffer reader"
Yuan Fu [Sat, 14 Sep 2024 05:53:06 +0000 (22:53 -0700)]
Revert "Read more on each call to treesit's buffer reader"

This reverts commit bf23382f1f2d6ea072db4e4750f8a345f77a3ef2.

We move around the gap, narrow regions, ralloc, etc, and don't have a
way to invalidate previously given range.  So tree-sitter can't be given
the full range.

15 months agoFix tree-sitter indent preset prev-adaptive-prefix
Yuan Fu [Fri, 13 Sep 2024 07:23:13 +0000 (00:23 -0700)]
Fix tree-sitter indent preset prev-adaptive-prefix

* lisp/treesit.el (treesit-simple-indent-presets): Use looking-at so the
call to match-string has the match data to work with.

15 months ago; * CONTRIBUTE: Minor copyedits.
Eli Zaretskii [Sat, 14 Sep 2024 06:52:59 +0000 (09:52 +0300)]
; * CONTRIBUTE: Minor copyedits.

15 months agoImprove NEWS entries
Robert Pluim [Fri, 13 Sep 2024 13:42:39 +0000 (15:42 +0200)]
Improve NEWS entries

* etc/NEWS: Fix typos, and add information about default values of new
  user options.

15 months agoDon't fail uniquify-tests in non-version-controlled source trees
Mattias Engdegård [Fri, 13 Sep 2024 10:13:53 +0000 (12:13 +0200)]
Don't fail uniquify-tests in non-version-controlled source trees

* test/lisp/uniquify-tests.el (uniquify-project-transform):
Skip test if there is no project (bug#73205).

15 months ago; * etc/ORG-NEWS: Fix typo.
Robert Pluim [Fri, 13 Sep 2024 07:50:01 +0000 (09:50 +0200)]
; * etc/ORG-NEWS: Fix typo.

15 months ago* doc/misc/auth.texi: Minor copy edits.
Stefan Kangas [Thu, 12 Sep 2024 22:17:35 +0000 (00:17 +0200)]
* doc/misc/auth.texi: Minor copy edits.

15 months ago; * admin/MAINTAINERS: Remove some entries for Artur Malabarba.
Stefan Kangas [Thu, 12 Sep 2024 21:01:08 +0000 (23:01 +0200)]
; * admin/MAINTAINERS: Remove some entries for Artur Malabarba.

Change agreed with Artur Malabarba <arturmalabarba@gmail.com>.

15 months 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)

15 months agoBump Emacs version to 30.0.91
Andrea Corallo [Wed, 11 Sep 2024 20:14:09 +0000 (22:14 +0200)]
Bump Emacs version to 30.0.91

* nt/README.W32: Update Emacs version.
* msdos/sed2v2.inp: Likewise.
* exec/configure.ac: Likewise.
* configure.ac: Likewise.
* README: Likewise.

15 months ago; * ChangeLog.4: Update.
Andrea Corallo [Wed, 11 Sep 2024 19:52:56 +0000 (21:52 +0200)]
; * ChangeLog.4: Update.

15 months ago; * etc/AUTHORS: Update.
Andrea Corallo [Wed, 11 Sep 2024 19:49:52 +0000 (21:49 +0200)]
; * etc/AUTHORS: Update.

15 months 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.

15 months 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.

15 months 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.

15 months 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.

15 months ago* lisp/ldefs-boot.el: Update.
Andrea Corallo [Tue, 10 Sep 2024 21:39:34 +0000 (23:39 +0200)]
* lisp/ldefs-boot.el: Update.

15 months 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)

15 months 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)

15 months ago; * etc/NEWS: Fix indentation.
Michael Albinus [Tue, 10 Sep 2024 07:24:33 +0000 (09:24 +0200)]
; * etc/NEWS: Fix indentation.

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

15 months 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

15 months agoClarify the semantics of 'string-pixel-width'
Eli Zaretskii [Mon, 9 Sep 2024 11:28:12 +0000 (14:28 +0300)]
Clarify the semantics of 'string-pixel-width'

* doc/lispref/display.texi (Size of Displayed Text):
* lisp/emacs-lisp/subr-x.el (string-pixel-width):
* src/xdisp.c (Fwindow_text_pixel_size, Fbuffer_text_pixel_size):
Doc fixes.  (Bug#73129)

15 months 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.

15 months 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.

15 months 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.

15 months 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.

15 months 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.

15 months agoFix the range handling in treesit.c
Yuan Fu [Mon, 9 Sep 2024 00:50:52 +0000 (17:50 -0700)]
Fix the range handling in treesit.c

1. In treesit_sync_visible_region, reduce the ranges for a parser so it
doesn't go beyond the visible range.

2. To avoid possible infinite recursion, add a within_reparse field to
parsers.  Previously we were using the need_reparse field to avoid
infinite recursion, but lisp programs in a parser's after change hook
might make some buffer edit which turns need_reparse to true. To avoid
that, we now use an explicit field.  If a parser's after change function
makes a buffer edit, lisp program ends up with a desynced parse tree,
but that's better than possible infinite recursion.  Also after change
function shouldn't edit the buffer.

3. In treesit_make_ranges, use parser's visible_beg instead of buffer's
BEGV.  I mean technically whenever we make ranges, buffer's BEGV should
be equal to parser's visible_beg, but better not take that uncertainty,
also makes the code more readable.

4. In Ftreesit_parser_included_ranges, move visible region sync code
before the body of the function.

* src/treesit.c (treesit_sync_visible_region): Minimally fix ranges so
it doesn't exceed parser's visible range.
(treesit_call_after_change_functions): Update calling sigature to
treesit_make_ranges.
(treesit_ensure_parsed, make_treesit_parser): Use the new field
within_reparse.
(treesit_make_ranges): Use parser's visible_beg instead of buffer's
BEGV.
(Ftreesit_parser_included_ranges): Move visible region check before
function body.
* src/treesit.h (Lisp_TS_Parser): Add new field within_reparse.

15 months 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.

15 months 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.

15 months 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)

15 months 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.

15 months 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.

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

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

15 months 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)

15 months 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.

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

15 months 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)

15 months 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)

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

15 months agoFix :hook in 'use-package'
Eli Zaretskii [Wed, 4 Sep 2024 17:43:25 +0000 (20:43 +0300)]
Fix :hook in 'use-package'

* lisp/use-package/use-package-core.el
(use-package-handler/:hook): Support mode variables in :hook
declarations.  (Bug#72993)

15 months 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.

15 months 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>.

15 months 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.

15 months 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.

15 months 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.

15 months 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.

15 months 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

15 months 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.

15 months ago* test/lisp/emacs-lisp/tabulated-list-tests.el: Add missing test.
Juri Linkov [Sun, 1 Sep 2024 17:17:03 +0000 (20:17 +0300)]
* test/lisp/emacs-lisp/tabulated-list-tests.el: Add missing test.

(tabulated-list-groups-with-path): Add test for tabulated-list-groups.

15 months 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.

15 months 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>.

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

15 months agoMake 'python-shell--with-environment' respect buffer-local vars
Evgenii Klimov [Thu, 29 Aug 2024 22:36:12 +0000 (23:36 +0100)]
Make 'python-shell--with-environment' respect buffer-local vars

* lisp/progmodes/python.el (python-shell--with-environment):
Make `with-temp-buffer' respect buffer-local values of
`process-environment' and `exec-path', if set.  (Bug#72849)

15 months agoAvoid ANSI escape characters in Python output (bug#45938)
Evgenii Klimov [Sun, 25 Feb 2024 20:12:38 +0000 (20:12 +0000)]
Avoid ANSI escape characters in Python output (bug#45938)

* lisp/progmodes/python.el (python-shell-completion-native-setup):
Prevent Readline from emitting escape characters in comint output.

15 months agoFix handling of hook variables in 'use-package'
John Wiegley [Mon, 26 Aug 2024 18:47:25 +0000 (11:47 -0700)]
Fix handling of hook variables in 'use-package'

* lisp/use-package/use-package-core.el
(use-package-handler/:hook): Append "-hook" to the symbol's name
only if the named hook variable has no 'symbol-value'.
(Bug#72818)

15 months agoWork around Gnuplot bug in displaying plots
Eli Zaretskii [Sat, 31 Aug 2024 09:58:39 +0000 (12:58 +0300)]
Work around Gnuplot bug in displaying plots

* lisp/calc/calc-graph.el (calc-gnuplot-command): Prepend newline
to Gnuplot command.  Suggested by Visuwesh <visuweshm@gmail.com>.
(Bug#72778)

15 months agoRevert "* lisp/help-fns.el (help-definition-prefixes): Don't delete the hashtable"
Eli Zaretskii [Sat, 31 Aug 2024 09:51:59 +0000 (12:51 +0300)]
Revert "* lisp/help-fns.el (help-definition-prefixes): Don't delete the hashtable"

This reverts commit 45ae4de0e7ce99c88c62f940f605bca693b8e33f.
It did not fix a regression or even a user-visible bug, and
it caused bug#72787.

Do not merge to master.

15 months agoMake Python skeletons available in 'python-ts-mode' as well
kobarity [Sat, 24 Aug 2024 11:13:16 +0000 (20:13 +0900)]
Make Python skeletons available in 'python-ts-mode' as well

* lisp/progmodes/python.el (python-base-mode-abbrev-table):
Renamed from 'python-mode-abbrev-table' to be available for both
'python-mode' and 'python-ts-mode'.  (Bug#72298)

15 months agoMerge branch 'emacs-30' of git.savannah.gnu.org:/srv/git/emacs into emacs-30
Eli Zaretskii [Fri, 30 Aug 2024 17:33:11 +0000 (20:33 +0300)]
Merge branch 'emacs-30' of git.savannah.gnu.org:/srv/git/emacs into emacs-30

15 months ago; * etc/NEWS: Fix typos.
Michael Albinus [Fri, 30 Aug 2024 12:00:47 +0000 (14:00 +0200)]
; * etc/NEWS: Fix typos.

15 months agoMore accurate documentation of 'equal' in ELisp Reference
Eli Zaretskii [Fri, 30 Aug 2024 10:57:29 +0000 (13:57 +0300)]
More accurate documentation of 'equal' in ELisp Reference

* doc/lispref/objects.texi (Equality Predicates): Add lists and
conses.  (Bug#72888)

15 months ago; Fix some ungrammatical uses of "allows to"
Sean Whitton [Fri, 30 Aug 2024 10:43:35 +0000 (11:43 +0100)]
; Fix some ungrammatical uses of "allows to"

* doc/emacs/anti.texi (Antinews):
* etc/NEWS:
* etc/NEWS.29:
* lib/cdefs.h:
* lisp/tab-bar.el (tab-bar-select-restore-windows):
* lisp/vc/vc-git.el (vc-git-print-log-follow):
* m4/gnulib-common.m4 (gl_CHECK_FUNCS_SET_RESULTS):
(gl_CHECK_FUNCS_ANDROID): Fix ungrammatical uses of "allows to".

15 months agoSupport "/dev/null" as a target when creating Eshell handles
Jim Porter [Thu, 29 Aug 2024 02:12:29 +0000 (19:12 -0700)]
Support "/dev/null" as a target when creating Eshell handles

Previously, you could only use this when setting the handle afterwards.

Do not merge to master.

* lisp/eshell/esh-io.el (eshell-set-output-handle): Don't catch
'eshell-null-device' here...
(eshell-get-target): ... catch it here.

15 months agoFix redirecting Eshell output to symbols in some places
Jim Porter [Thu, 29 Aug 2024 01:53:03 +0000 (18:53 -0700)]
Fix redirecting Eshell output to symbols in some places

Do not merge to master.

* lisp/eshell/esh-io.el (eshell-output-object-to-target): Don't require
TARGET to be bound.

* lisp/eshell/em-script.el (eshell-execute-file): Quote the output/error
targets.

* test/lisp/eshell/em-script-tests.el (eshell-execute-file-output): New
variable.
(em-script-test/execute-file/output-file)
(em-script-test/execute-file/output-symbol): New tests.

* test/lisp/eshell/esh-io-tests.el (eshell-test-file-string): Move to...
* test/lisp/eshell/eshell-tests-helpers.el (eshell-test-file-string):
... here.

15 months ago; * lisp/progmodes/flymake.el: Fix "Maintainer" header
Philip Kaludercic [Thu, 29 Aug 2024 20:30:38 +0000 (22:30 +0200)]
; * lisp/progmodes/flymake.el: Fix "Maintainer" header

Functions such as 'lm-maintainer' assume there to be only a
single header, and won't return the second value.  By João's
request, this change fixes the issue by unmarking him as the
maintainer of Flymake.

See https://lists.gnu.org/archive/html/emacs-devel/2024-08/msg00943.html

15 months ago; * etc/AUTHORS: Update.
Eli Zaretskii [Thu, 29 Aug 2024 18:43:45 +0000 (14:43 -0400)]
; * etc/AUTHORS: Update.

15 months ago; Revert "; * admin/authors.el (authors-valid-file-names): Ignore Unicode files."
Eli Zaretskii [Thu, 29 Aug 2024 18:26:54 +0000 (21:26 +0300)]
; Revert "; * admin/authors.el (authors-valid-file-names): Ignore Unicode files."

This reverts commit 6734b60c0c325cf4e7e0614fe67ed24fafc9dd9a.
Existing files cannot be ignored.

15 months ago; Revert "Revert "; * admin/authors.el (authors-ignored-files): Add removed files.""
Eli Zaretskii [Thu, 29 Aug 2024 18:26:10 +0000 (21:26 +0300)]
; Revert "Revert "; * admin/authors.el (authors-ignored-files): Add removed files.""

This reverts commit 2d723a280b3846de9cad8561b971a44ec95c7961.
It mistakenly reverted the wrong commit.

15 months agoRevert "; * admin/authors.el (authors-ignored-files): Add removed files."
Eli Zaretskii [Thu, 29 Aug 2024 18:16:12 +0000 (21:16 +0300)]
Revert "; * admin/authors.el (authors-ignored-files): Add removed files."

This reverts commit d809d53afc007574b3054027ff2eaf6c8d66996c.
Not useful, for the same reason as the previously reverted
commit.

15 months agoRevert "; * admin/authors.el (authors-ignored-files): Ignore Unicode files."
Eli Zaretskii [Thu, 29 Aug 2024 18:15:08 +0000 (21:15 +0300)]
Revert "; * admin/authors.el (authors-ignored-files): Ignore Unicode files."

This reverts commit 0db53f14a2974de5209439326d4a9e4749462f42.
It doesn't help, since existing files are considered worthy
of mentioning regardless of the other lists.

15 months ago; * admin/authors.el (authors-ignored-files): Ignore Unicode files.
Eli Zaretskii [Thu, 29 Aug 2024 17:59:37 +0000 (20:59 +0300)]
; * admin/authors.el (authors-ignored-files): Ignore Unicode files.

15 months ago; * admin/authors.el (authors-valid-file-names): Ignore Unicode files.
Eli Zaretskii [Thu, 29 Aug 2024 17:37:29 +0000 (20:37 +0300)]
; * admin/authors.el (authors-valid-file-names): Ignore Unicode files.

15 months ago; * admin/authors.el (authors-ignored-files): Add removed files.
Eli Zaretskii [Thu, 29 Aug 2024 16:40:26 +0000 (19:40 +0300)]
; * admin/authors.el (authors-ignored-files): Add removed files.

15 months ago; * etc/NEWS: Announce VC-dir "Tracking" header. (bug#68183)
Kévin Le Gouguec [Thu, 22 Aug 2024 06:34:03 +0000 (08:34 +0200)]
; * etc/NEWS: Announce VC-dir "Tracking" header. (bug#68183)

15 months ago; * admin/authors.el (authors-aliases): Fix regexps.
Eli Zaretskii [Thu, 29 Aug 2024 16:22:11 +0000 (19:22 +0300)]
; * admin/authors.el (authors-aliases): Fix regexps.

15 months ago; * admin/MAINTAINERS: Spencer Baugh maintains flymake.el.
Eli Zaretskii [Thu, 29 Aug 2024 12:20:07 +0000 (15:20 +0300)]
; * admin/MAINTAINERS: Spencer Baugh maintains flymake.el.

15 months agoxwidget: Fix xwidget-at misinterpreting non-xwidget text-properties
George Huebner [Sun, 14 Jul 2024 06:46:07 +0000 (01:46 -0500)]
xwidget: Fix xwidget-at misinterpreting non-xwidget text-properties

'xwidget-open' wrongly assumed the the text-property at
min-position is an xwidget, if it exists; the fix is just
returning nil if the text-property isn't an xwidget.
* lisp/xwidget.el (xwidget-at): Use 'ignore-errors'.  (Bug#72848)

Copyright-paperwork-exempt: yes

15 months agoFix rare segfaults due to freed fontsets
Eli Zaretskii [Thu, 29 Aug 2024 09:56:27 +0000 (12:56 +0300)]
Fix rare segfaults due to freed fontsets

* src/xfaces.c (recompute_basic_faces): Force complete
recalculation of non-ASCII faces and their fontsets if any
non-ASCII faces are in the frame's face cache.  (Bug#72692)

15 months ago; * lisp/simple.el (use-region-beginning, use-region-end): Doc fix.
Eli Zaretskii [Thu, 29 Aug 2024 09:33:30 +0000 (12:33 +0300)]
; * lisp/simple.el (use-region-beginning, use-region-end): Doc fix.

15 months ago; Fix typos
Stefan Kangas [Wed, 28 Aug 2024 22:17:10 +0000 (00:17 +0200)]
; Fix typos

15 months agoEglot: fix completion highlighting (bug#72824)
Dmitry Gutov [Tue, 27 Aug 2024 23:20:33 +0000 (02:20 +0300)]
Eglot: fix completion highlighting (bug#72824)

* lisp/progmodes/eglot.el (eglot-completion-at-point):
Make sure to refer to 'completion-ignore-case' in the
'all-completions' method.

15 months ago; * admin/make-tarball.txt: Document gotcha.
Eli Zaretskii [Tue, 27 Aug 2024 12:50:14 +0000 (15:50 +0300)]
; * admin/make-tarball.txt: Document gotcha.

15 months agoDiscuss commit log messages on feature branches
Sean Whitton [Tue, 27 Aug 2024 04:22:01 +0000 (12:22 +0800)]
Discuss commit log messages on feature branches

* admin/notes/git-workflow (Long-lived feature branches): New
section, discussing commit log messages on feature branches.

15 months ago* admin/authors.el (authors-fixed-entries): Update docstring.
Sean Whitton [Tue, 27 Aug 2024 04:13:31 +0000 (12:13 +0800)]
* admin/authors.el (authors-fixed-entries): Update docstring.

15 months agoMore consistent treesit-forward-sexp around comments (bug#72525)
Yuan Fu [Tue, 27 Aug 2024 02:43:00 +0000 (19:43 -0700)]
More consistent treesit-forward-sexp around comments (bug#72525)

* lisp/treesit.el (treesit-forward-sexp): Check if point is strictly
inside a comment or string, only then use the default forward-sexp
function; otherwise use tree-sitter's forward-sexp routine.