emacs.git
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.

15 months agoImprove php-ts-mode font lock and support latest grammar (bug#72796)
Vincenzo Pupillo [Sat, 24 Aug 2024 21:16:09 +0000 (23:16 +0200)]
Improve php-ts-mode font lock and support latest grammar (bug#72796)

* lisp/progmodes/php-ts-mode.el:
(php-ts-mode--language-source-alist): Update the parser version.
(php-ts-mode--parent-html-heuristic): Fix commentary.
(php-ts-mode--keywords): Add "exit" keyword.
(php-ts-mode--predefined-constant): Added math constant.
(php-ts-mode--font-lock-settings): New and improved rules.

15 months agoFix tree-sitter local parser overlay cleanup routine
Yuan Fu [Mon, 26 Aug 2024 00:59:51 +0000 (17:59 -0700)]
Fix tree-sitter local parser overlay cleanup routine

Sorry for sneaking in a sizable commit so late.  But I just found out
about this bug and it has to be fixed.  Before this change, we weren't
properly cleaning up overlays that store local parsers.  And in the case
of doxygen local parser in C files, the doxygen local parser overlay
sometimes bleeds out of comments and into other code, and interferes
with font-lock and indentation.

This commit adds a cleanup function that'll cleanup any overlays that
aren't being used.  I tested with doxygen in C files and everything
works smoothly now, including tricky tests like removing the ending "*/"
of a doxygen comment and adding it back.

The idea is simple, at the end of each call to (treesit-update-ranges
BEG END), we remove any overlay within BEG and END that wasn't touched
by the range setting code.

* lisp/treesit.el (treesit--cleanup-local-range-overlays): New function.
(treesit--update-ranges-local): Remove code for cleaning up zero-length
overlays since we have the cleanup function now.
(treesit-update-ranges): Wrap the function body inside a let form, which
defines modified-tick; and add a call to
treesit--cleanup-local-range-overlays at the very end.

15 months agoFix copyright years by hand (Bug#72809)
Stefan Kangas [Mon, 26 Aug 2024 00:46:02 +0000 (02:46 +0200)]
Fix copyright years by hand (Bug#72809)

These are dates that admin/update-copyright did not update.

15 months agoRevert a recent change that caused redisplay slowdown
Eli Zaretskii [Sun, 25 Aug 2024 18:43:59 +0000 (21:43 +0300)]
Revert a recent change that caused redisplay slowdown

* src/xfaces.c (recompute_basic_faces): Revert the change which
caused recalculation of all the faces, as it made cursor motion
too slow.  Reported by Juri Linkov <juri@linkov.net> (bug#72692).

15 months ago; * doc/lispref/display.texi (Low-Level Font): Fix wording (bug#72771).
Eli Zaretskii [Sun, 25 Aug 2024 17:47:51 +0000 (20:47 +0300)]
; * doc/lispref/display.texi (Low-Level Font): Fix wording (bug#72771).

15 months agoIndent ERT failure explanations rigidly
F. Jason Park [Fri, 9 Aug 2024 23:49:28 +0000 (16:49 -0700)]
Indent ERT failure explanations rigidly

This also affects the listing of `should' forms produced by hitting
the L key on a test button in an ERT buffer.

* lisp/emacs-lisp/ert.el (ert--pp-with-indentation-and-newline):
Indent the pretty-printed result to match the caller's current column
as a reference indentation.
* test/lisp/emacs-lisp/ert-tests.el
(ert--pp-with-indentation-and-newline): New test.  (Bug#72561)

15 months ago[Eglot] Stricter "expand common" behavior
Dmitry Gutov [Sun, 25 Aug 2024 15:23:51 +0000 (18:23 +0300)]
[Eglot] Stricter "expand common" behavior

* lisp/progmodes/eglot.el (eglot--dumb-tryc): Check that the
expanded string matches every completion strictly (bug#72705).
And in the fallback case, check whether the table matches the
original prefix at all.  Return nil otherwise.

* test/lisp/progmodes/eglot-tests.el
(eglot-test-stop-completion-on-nonprefix)
(eglot-test-try-completion-nomatch): Corresponding tests.

* etc/EGLOT-NEWS: New entry.

15 months agoeglot-tests.el: New tests for existing completion behavior
Dmitry Gutov [Sun, 25 Aug 2024 15:05:28 +0000 (18:05 +0300)]
eglot-tests.el: New tests for existing completion behavior

* test/lisp/progmodes/eglot-tests.el
(eglot-test-common-prefix-completion)
(eglot-test-try-completion-inside-symbol)
(eglot-test-rust-completion-exit-function): New tests.
(eglot--wait-for-rust-analyzer): New function.

15 months agoRemove dangerous HTML edit from admin.el
Eli Zaretskii [Sun, 25 Aug 2024 12:46:05 +0000 (15:46 +0300)]
Remove dangerous HTML edit from admin.el

* admin/admin.el (manual-html-fix-index-2): Avoid lax matches with
"<ul>" which could mistakenly edit unrelated parts of HTML.
(Bug#72761)

15 months ago; Fix bad references to other manuals
Eli Zaretskii [Sun, 25 Aug 2024 10:55:35 +0000 (13:55 +0300)]
; Fix bad references to other manuals

* doc/misc/bovine.texi (top, Optional Lambda Expression)
(Starting Rules, Bovine Grammar Rules, How Lexical Tokens Match):
* doc/misc/eudc.texi (Overview, Creating BBDB Records)
(Inline Query Expansion):
* doc/misc/dbus.texi (Top):
* doc/misc/efaq.texi (Top):
* doc/misc/wisent.texi (Wisent Semantic, Wisent Lex): Fix
cross-references to other manuals.  Remove redundant pointers from
Top node.  (Bug#72761)

(cherry picked from commit 7319f5e078b6c98379414a4601a269e6581ec206)

15 months ago; Mention in PROBLEMS issues with long popup menus
Eli Zaretskii [Sun, 25 Aug 2024 06:04:21 +0000 (09:04 +0300)]
; Mention in PROBLEMS issues with long popup menus

* etc/PROBLEMS: Problems with very long popup menus on Lucid
builds.  (Bug#72791)

15 months ago* etc/emacs_lldb.py (Lisp_Object): PVEC_COMPILED -> PVEC_CLOSURE
Mattias Engdegård [Sat, 24 Aug 2024 12:27:26 +0000 (14:27 +0200)]
* etc/emacs_lldb.py (Lisp_Object): PVEC_COMPILED -> PVEC_CLOSURE

15 months agoFix rare segfaults due to freed fontsets
Eli Zaretskii [Sat, 24 Aug 2024 09:07:02 +0000 (12:07 +0300)]
Fix rare segfaults due to freed fontsets

* src/xfaces.c (recompute_basic_faces): Force complete
recalculation of all the faces.  (Bug#72692)

15 months ago; Fix infloop in checkdoc-next-docstring
Eshel Yaron [Fri, 23 Aug 2024 15:15:32 +0000 (17:15 +0200)]
; Fix infloop in checkdoc-next-docstring

* lisp/emacs-lisp/checkdoc.el (checkdoc-next-docstring): Use
'beginning-of-defun-raw' instead of 'beginning-of-defun', as the latter
always moves back to beginning of line and thus is not guaranteed to
advance point when 'open-paren-in-column-0-is-defun-start' is non-nil.
(Bug#72759)

15 months agoAvoid putting a dead buffer in the minibuffer window (Bug#72487)
Martin Rudalics [Fri, 23 Aug 2024 08:27:12 +0000 (10:27 +0200)]
Avoid putting a dead buffer in the minibuffer window (Bug#72487)

* src/minibuf.c (minibuffer_unwind): Make sure that the buffer
referenced by the first element of the list of previous buffers
of the minibuffer window is live before assigning it to the
minibuffer window (Bug#72487).
* src/window.c (set_window_buffer): Assert that BUFFER is live.

15 months agoEglot: bump version to 1.17.30 and update EGLOT-NEWS
João Távora [Thu, 22 Aug 2024 16:27:20 +0000 (17:27 +0100)]
Eglot: bump version to 1.17.30 and update EGLOT-NEWS

This is a change specific to emacs-30.  Don't merge to master.

* lisp/progmodes/eglot.el (Version): Mark it 1.17.30.

* etc/EGLOT-NEWS (1.17.30): Fill in section.

15 months ago; * admin/authors.el (authors-aliases): Escape periods.
Eli Zaretskii [Thu, 22 Aug 2024 11:09:11 +0000 (14:09 +0300)]
; * admin/authors.el (authors-aliases): Escape periods.

15 months agoUpdate 'ldefs-boot.el' (don't merge)
Andrea Corallo [Tue, 20 Aug 2024 20:48:16 +0000 (22:48 +0200)]
Update 'ldefs-boot.el' (don't merge)

* lisp/ldefs-boot.el: Update.

15 months ago* doc/man/emacsclient.1: Bump date.
Andrea Corallo [Tue, 20 Aug 2024 20:46:40 +0000 (22:46 +0200)]
* doc/man/emacsclient.1: Bump date.

15 months agoBump Emacs version to 30.0.90
Andrea Corallo [Sun, 18 Aug 2024 10:22:38 +0000 (12:22 +0200)]
Bump Emacs version to 30.0.90

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

15 months agoUpdate Changelogs
Andrea Corallo [Tue, 20 Aug 2024 10:56:36 +0000 (12:56 +0200)]
Update Changelogs

* ChangeLog.4: Re-generate.
* ChangeLog.3: Fix some type and style.

15 months agoUpdate AUTHORS
Andrea Corallo [Sun, 18 Aug 2024 09:49:22 +0000 (11:49 +0200)]
Update AUTHORS

* etc/AUTHORS: Re-generate.
* admin/authors.el (authors-fixed-entries): Add entry.

15 months ago* admin/authors.el (authors-aliases, authors-ignored-files): Update.
Andrea Corallo [Tue, 20 Aug 2024 10:56:11 +0000 (12:56 +0200)]
* admin/authors.el (authors-aliases, authors-ignored-files): Update.

15 months ago* admin/authors.el: Pick-up version from emacs-29.
Andrea Corallo [Sun, 18 Aug 2024 10:35:15 +0000 (12:35 +0200)]
* admin/authors.el: Pick-up version from emacs-29.

15 months agoAdd missing :version tags in use-package
Stefan Kangas [Tue, 20 Aug 2024 18:11:08 +0000 (20:11 +0200)]
Add missing :version tags in use-package

* lisp/use-package/use-package-core.el (use-package-keywords)
(use-package-deferring-keywords, use-package-ignore-unknown-keywords)
(use-package-use-theme, use-package-verbose)
(use-package-check-before-init, use-package-always-defer)
(use-package-always-demand, use-package-defaults)
(use-package-merge-key-alist, use-package-hook-name-suffix)
(use-package-minimum-reported-time, use-package-inject-hooks)
(use-package-expand-minimally, use-package-form-regexp-eval)
(use-package-enable-imenu-support, use-package-compute-statistics):
* lisp/use-package/use-package-ensure.el (use-package-always-ensure)
(use-package-always-pin, use-package-ensure-function): Add missing
:version tags.

15 months agoSuppress shallow cloning on emba
Michael Albinus [Tue, 20 Aug 2024 17:23:48 +0000 (19:23 +0200)]
Suppress shallow cloning on emba

* test/infra/gitlab-ci.yml (variables): Set GIT_DEPTH to 0 in
order to avoid shallow cloning.

15 months agoCorrect Android failure to open an old CJK font
Po Lu [Tue, 20 Aug 2024 13:56:41 +0000 (21:56 +0800)]
Correct Android failure to open an old CJK font

* src/sfnt.c (sfnt_read_cmap_format_2): Properly compute
subtable count, and append the empty table at position 0.
(sfnt_lookup_glyph_2): Update commentary.

15 months ago* lisp/help-fns.el (help-definition-prefixes): Don't delete the hashtable
Stefan Monnier [Tue, 20 Aug 2024 12:09:54 +0000 (08:09 -0400)]
* lisp/help-fns.el (help-definition-prefixes): Don't delete the hashtable

Fixes bug#72511.

15 months ago; Fix documentation of secure-hash functions
Eli Zaretskii [Mon, 19 Aug 2024 14:51:50 +0000 (17:51 +0300)]
; Fix documentation of secure-hash functions

* src/fns.c (Fsecure_hash):
* doc/lispref/text.texi (Checksum/Hash):
* lisp/subr.el (sha1): Fix documentation wrt to the number of
bytes 'secure-hash' and its variants return when BINARY is
non-nil.  Reported by Pip Cet <pipcet@protonmail.com>.

15 months ago; * lisp/subr.el (sha1): Fix typo in docstring.
Ulrich Müller [Mon, 19 Aug 2024 13:49:47 +0000 (15:49 +0200)]
; * lisp/subr.el (sha1): Fix typo in docstring.

15 months ago; * etc/NEWS: Fix wording of last change.
Michael Albinus [Mon, 19 Aug 2024 07:37:55 +0000 (09:37 +0200)]
; * etc/NEWS: Fix wording of last change.

16 months agoUpdate to Org 9.7.10
Kyle Meyer [Mon, 19 Aug 2024 00:54:39 +0000 (20:54 -0400)]
Update to Org 9.7.10

16 months ago; * etc/NEWS: Announce 'shr-fill-text'.
Jim Porter [Sun, 18 Aug 2024 21:33:43 +0000 (14:33 -0700)]
; * etc/NEWS: Announce 'shr-fill-text'.

16 months ago; * lisp/emacs-lisp/compat.el: Fix header style.
Andrea Corallo [Sun, 18 Aug 2024 09:12:08 +0000 (11:12 +0200)]
; * lisp/emacs-lisp/compat.el: Fix header style.

16 months ago* test/infra/gitlab-ci.yml (.tree-sitter-template): Adapt changes.
Michael Albinus [Sun, 18 Aug 2024 09:29:05 +0000 (11:29 +0200)]
* test/infra/gitlab-ci.yml (.tree-sitter-template): Adapt changes.