emacs.git
17 months ago; * src/fns.c (value_cmp): ASCIIfy.
Eli Zaretskii [Mon, 1 Jul 2024 18:58:17 +0000 (21:58 +0300)]
; * src/fns.c (value_cmp): ASCIIfy.

17 months ago; * etc/NEWS: Fix level of several entrries.
Eli Zaretskii [Mon, 1 Jul 2024 17:33:52 +0000 (20:33 +0300)]
; * etc/NEWS: Fix level of several entrries.

17 months ago; * etc/NEWS: Fix typo.
Eli Zaretskii [Mon, 1 Jul 2024 17:30:23 +0000 (20:30 +0300)]
; * etc/NEWS: Fix typo.

17 months ago; * src/search.c (Fmatch_beginning, Fmatch_end): Doc fix.
Eli Zaretskii [Mon, 1 Jul 2024 12:59:05 +0000 (15:59 +0300)]
; * src/search.c (Fmatch_beginning, Fmatch_end): Doc fix.

17 months ago; * etc/NEWS: Clarify.
Mattias Engdegård [Mon, 1 Jul 2024 08:43:12 +0000 (10:43 +0200)]
; * etc/NEWS: Clarify.

17 months ago; * src/treesit.c (Ftreesit_query_capture): Fix typo.
Yuan Fu [Mon, 1 Jul 2024 05:36:11 +0000 (22:36 -0700)]
; * src/treesit.c (Ftreesit_query_capture): Fix typo.

17 months ago* java/res/mipmap-v26/emacs_icon.xml: Define monospace icon.
Po Lu [Mon, 1 Jul 2024 01:31:34 +0000 (09:31 +0800)]
* java/res/mipmap-v26/emacs_icon.xml: Define monospace icon.

17 months agoImprove `sentence-end-double-space` docstring
Stefan Kangas [Mon, 1 Jul 2024 00:33:05 +0000 (02:33 +0200)]
Improve `sentence-end-double-space` docstring

* lisp/textmodes/paragraphs.el (sentence-end-double-space):
Improve and expand docstring.

17 months agoBackport file backup FAQ item to Emacs <28
Stefan Kangas [Sun, 30 Jun 2024 23:44:38 +0000 (01:44 +0200)]
Backport file backup FAQ item to Emacs <28

* doc/misc/efaq.texi (Not writing files to the current directory):
Backport recommendation to Emacs 27 or older.
Problem reported by David Hedlund <davidh@gnu.org>.

17 months agoMore updates of documentation for Emacs 30
Eli Zaretskii [Sun, 30 Jun 2024 19:25:31 +0000 (22:25 +0300)]
More updates of documentation for Emacs 30

* etc/NEWS: Improve wording and move/mark entries.

* doc/lispref/positions.texi (List Motion): Document
'forward-sentence-function'.
* doc/lispref/functions.texi (What Is a Function): Document
'primitive-function-p' and 'cl-functionp'.
* doc/emacs/misc.texi (Saving Emacs Sessions): Improve wording and
indexing.
* doc/lispref/tips.texi (Documentation Tips): Adapt to the new
value of 'emacs-lisp-docstring-fill-column'.
* doc/emacs/fixit.texi (Spelling): Document
'flyspell-check-changes'.

17 months ago; * etc/NEWS: Copy-edit.
Mattias Engdegård [Sun, 30 Jun 2024 15:11:55 +0000 (17:11 +0200)]
; * etc/NEWS: Copy-edit.

17 months agoRevert "; * etc/NEWS: Move items to "Incompatible Lisp Changes"."
Mattias Engdegård [Sun, 30 Jun 2024 15:06:30 +0000 (17:06 +0200)]
Revert "; * etc/NEWS: Move items to "Incompatible Lisp Changes"."

This reverts commit 000ef8876ae9e2098cf98e1b1c468c09be3acd43.
Most of the moved items weren't actually incompatible changes.

17 months agoImprove Android "adaptive icon"
Po Lu [Sun, 30 Jun 2024 15:11:19 +0000 (23:11 +0800)]
Improve Android "adaptive icon"

* java/res/drawable/emacs_background.xml:

* java/res/drawable/emacs_foreground.xml: Transform borders and
gradient colors to better align with the original.

17 months agoFix documentation for Emacs 30
Eli Zaretskii [Sun, 30 Jun 2024 14:42:38 +0000 (17:42 +0300)]
Fix documentation for Emacs 30

* etc/NEWS: Mark entries and improve wording.

* doc/emacs/dired.texi (Operating on Files): Document
'dired-do-open'.  Fix indexing.
* doc/emacs/files.texi (Diff Mode): Document 'diff-apply-buffer'.
Fix indexing.
* doc/emacs/maintaining.texi (Project File Commands)
(Project Buffer Commands): Document 'project-any-command'.
* doc/emacs/building.texi (Other GDB Buffers): Document the user
option 'gdb-display-io-buffer'.
(Grep Searching): Document 'grep-use-headings'.
* doc/emacs/text.texi (Outline Visibility): Document Outline
commands that hide/show by heading regexp.
* doc/emacs/killing.texi (Kill Options): Document
'kill-ring-deindent-mode'.
* doc/emacs/basic.texi (Continuation Lines): Improve wording.

17 months ago; Update NEWS and corresponding manuals
Eli Zaretskii [Sun, 30 Jun 2024 12:06:06 +0000 (15:06 +0300)]
; Update NEWS and corresponding manuals

* etc/NEWS: Improve wording and mark entries as approriate.

* doc/emacs/buffers.texi (Kill Buffer): Document new commands.
* doc/emacs/mini.texi (Completion Options, Completion Commands):
Document new completion options and behaviors.

17 months agoAdd D-Bus test
Robert Church [Sun, 30 Jun 2024 10:16:20 +0000 (12:16 +0200)]
Add D-Bus test

* test/lisp/net/dbus-tests.el (dbus-test05-register-signal-with-nils):
New test.  (Bug#69926)

17 months ago; Repair corruption in etc/DEBUG
Po Lu [Sun, 30 Jun 2024 09:37:46 +0000 (17:37 +0800)]
; Repair corruption in etc/DEBUG

* etc/DEBUG: Repair corruption reported by Eli Zaretskii
<eliz@gnu.org>.

17 months ago; * etc/DEBUG: Advice for debugging Emacs on OpenBSD (bug#71712).
Eli Zaretskii [Sun, 30 Jun 2024 09:18:22 +0000 (12:18 +0300)]
; * etc/DEBUG: Advice for debugging Emacs on OpenBSD (bug#71712).

17 months agoMerge remote-tracking branch 'savannah/scratch/windows-98' into emacs-30
Po Lu [Sun, 30 Jun 2024 02:08:22 +0000 (10:08 +0800)]
Merge remote-tracking branch 'savannah/scratch/windows-98' into emacs-30

* configure.ac (W32_LIBS): Don't link with -lusp10 on non-Cygwin
systems.

* src/emacs.c (main): Call globals_of_w32 before the startup
directory is initialized.

* src/w32.c (maybe_load_unicows_dll): Call
load_unicows_dll_for_w32fns.

* src/w32.h: Update prototypes.

* src/w32fns.c (Fx_create_frame, w32_create_tip_frame): Do not
register the Uniscribe font driver when unavailable.
(pfnSHFileOperationW): New function pointer.
(Fsystem_move_file_to_trash): Load UNICOWS.DLL if not yet
loaded.  Call SHFileOperationW through said function pointer.
(pfnShellExecuteExW): New function pointer.
(Fw32_shell_execute) [!CYGWIN]: Load UNICOWS.DLL if not yet
loaded.  Call ShellExecuteExW through said function pointer.
(pfnShell_NotifyIconW): New function pointer.
(add_tray_notification, delete_tray_notification): Call
Shell_NotifyIconW through said function pointer.
(Fw32_notification_notify): Load UNICOWS.DLL.
(Fw32_notification_close): Return if Shell_NotifyIconW is
unavailable, as when UNICOWS.DLL has yet to be loaded.
(load_unicows_dll_for_w32fns): New function.

* src/w32notify.c (pfnReadDirectoryChangesW): New function
pointer.
(watch_completion, remove_watch, Fw32notify_add_watch)
(Fw32notify_rm_watch, Fw32notify_valid_p): Call
ReadDirectoryChangesW through said function pointer, and assert
its presence.
(globals_of_w32notify): Load ReadDirectoryChangesW from
KERNEL32.DLL.

* src/w32uniscribe.c (pfnScriptItemize, pfnScriptShape)
(pfnScriptPlace, pfnScriptGetGlyphABCWidth, pfnScriptFreeCache)
(pfnScriptGetCMap): New function pointers.
(uniscribe_close, uniscribe_shape, uniscribe_encode_char)
(uniscribe_check_otf_1): Call Uniscribe functions through the
same.
(syms_of_w32uniscribe_for_pdumper): Load Uniscribe library and
required functions from the same, and if unavailable, return
while leaving uniscribe_available intact.  On Cygwin, simply
assign USP10.DLL functions to the said new function pointers.

17 months agoInaccuracy in efaq.texi
Po Lu [Sun, 30 Jun 2024 02:04:43 +0000 (10:04 +0800)]
Inaccuracy in efaq.texi

; * doc/misc/efaq.texi (New in Emacs 30): Mention GNUStep and
Mac OS separately.

17 months ago; Fix typos in DOS Makefile scripts
Po Lu [Sun, 30 Jun 2024 01:58:09 +0000 (09:58 +0800)]
; Fix typos in DOS Makefile scripts

* msdos/sedlibmk.inp (NEXT_AS_FIRST_DIRECTIVE_ENDIAN_H)
(NEXT_ENDIAN_H): Use a different command deliminter character
from `/'.

17 months ago; * etc/NEWS: Explain Nextstep.
Stefan Kangas [Sun, 30 Jun 2024 01:54:17 +0000 (03:54 +0200)]
; * etc/NEWS: Explain Nextstep.

17 months agoFix treesit crash (bug#71681)
Yuan Fu [Sat, 29 Jun 2024 07:16:36 +0000 (00:16 -0700)]
Fix treesit crash (bug#71681)

To reproduce the problem:

0. emacs -Q
1. eval: (add-to-list 'major-mode-remap-alist '(c-mode . c-ts-mode))
2. C-x v L
3. in the *vc-change-log* buffer move point to the commit 20af58d3a13
4. type D
5. crash caused by diff-font-lock-syntax fontification that uses treesit

Emacs: 6f2036243f2 (2024-06-23, latest master)
Tree-sitter: 3da7deed (2024-06-08, version 0.22.6)

The immediate cause of the crash is that tree-sitter accessed a node's
tree, but the tree is already deleted.  Commenting out the
ts_tree_delete line in treesit_ensure_parsed can "fix" the crash.

What happended, I think, is this:

1. Buffer modified, parser->need_reparse set to true,
parser->timestamp incremented.
2. A node is created from the parser, this node has the old tree but
the new timestamp (bad!).
3. Parser re-parses (treesit_ensure_parsed), new tree created, old
tree deleted.
4. Ftreesit_query_capture accessed the old node, and the old tree,
crash.

We shouldn't bump the parser timestamp when we set
parser->need_reparse to true; instead, we should bump the timestamp
when we actually reparsed and created a new tree.

* src/treesit.c (treesit_record_change): Don't bump parser timestamp.
(treesit_sync_visible_region): Don't bump parser timestamp.
(Ftreesit_parser_set_included_ranges): Don't bump parser timestamp.
(treesit_ensure_parsed): Bump parser timestamp.
(Ftreesit_query_capture): Add node check.

17 months ago; Fix SHR test on MS-Windows
Jim Porter [Fri, 28 Jun 2024 17:40:05 +0000 (10:40 -0700)]
; Fix SHR test on MS-Windows

* test/lisp/net/shr-tests.el (shr-test/zoom-image): Ensure the image URL
is properly formatted: it should always have 3 slashes after "file:".

17 months agoDelete redundant mention of `with-eval-after-load'
Stefan Kangas [Sat, 29 Jun 2024 19:15:46 +0000 (21:15 +0200)]
Delete redundant mention of `with-eval-after-load'

* lisp/progmodes/dcl-mode.el (dcl-mode): Delete redundant mention of
`with-eval-after-load'.

17 months ago* doc/misc/efaq.texi (New in Emacs 30): Fix typos.
Michael Albinus [Sat, 29 Jun 2024 16:42:13 +0000 (18:42 +0200)]
* doc/misc/efaq.texi (New in Emacs 30): Fix typos.

17 months ago; Fix typos in symbols
Stefan Kangas [Sat, 29 Jun 2024 15:29:38 +0000 (17:29 +0200)]
; Fix typos in symbols

17 months agoDocument security fixes in FAQ
Stefan Kangas [Sat, 29 Jun 2024 14:48:49 +0000 (16:48 +0200)]
Document security fixes in FAQ

* doc/misc/efaq.texi (New in Emacs 29): Recommend using Emacs 29.4.
* doc/misc/efaq.texi (Security risks with Emacs): New item with a
recommendation to upgrade Emacs for improved security.

17 months agoAdd "New in Emacs 30" to FAQ
Stefan Kangas [Sat, 29 Jun 2024 14:41:18 +0000 (16:41 +0200)]
Add "New in Emacs 30" to FAQ

* doc/misc/efaq.texi (New in Emacs 30): New section.

17 months ago; * etc/NEWS: Move "Minibuffer and Completions"
Stefan Kangas [Sat, 29 Jun 2024 14:37:07 +0000 (16:37 +0200)]
; * etc/NEWS: Move "Minibuffer and Completions"

As a generally applicable feature, it belongs under "Changes" rather
than under "Changes in Specialized Modes and Packages".

17 months ago; * etc/NEWS: Move item to "Lisp Changes".
Stefan Kangas [Sat, 29 Jun 2024 14:36:17 +0000 (16:36 +0200)]
; * etc/NEWS: Move item to "Lisp Changes".

17 months ago; * etc/NEWS: Move keyboard macro items closer together.
Stefan Kangas [Sat, 29 Jun 2024 14:34:28 +0000 (16:34 +0200)]
; * etc/NEWS: Move keyboard macro items closer together.

17 months ago; * etc/NEWS: More copy-edits.
Stefan Kangas [Sat, 29 Jun 2024 14:34:05 +0000 (16:34 +0200)]
; * etc/NEWS: More copy-edits.

17 months ago; * etc/NEWS: Move items to "Incompatible Lisp Changes".
Stefan Kangas [Sat, 29 Jun 2024 13:58:33 +0000 (15:58 +0200)]
; * etc/NEWS: Move items to "Incompatible Lisp Changes".

17 months ago; * etc/NEWS: Rearrange "Incompatible Lisp Changes".
Stefan Kangas [Sat, 29 Jun 2024 13:50:57 +0000 (15:50 +0200)]
; * etc/NEWS: Rearrange "Incompatible Lisp Changes".

17 months ago; * lisp/epg.el (epg--start): Add commentary about encoding.
Eli Zaretskii [Sat, 29 Jun 2024 12:53:11 +0000 (15:53 +0300)]
; * lisp/epg.el (epg--start): Add commentary about encoding.

17 months agoFix non-ASCII filename operatiion on EasyPG (bug#71500)
Kazuhiro Ito [Sat, 29 Jun 2024 11:56:02 +0000 (20:56 +0900)]
Fix non-ASCII filename operatiion on EasyPG (bug#71500)

* lisp/epg.el (epg--start): Don't encode command-line arguments for
gpg2 program in raw-text.

17 months agoSilence warning with global minor mode :predicate
Stefan Kangas [Sat, 29 Jun 2024 12:38:57 +0000 (14:38 +0200)]
Silence warning with global minor mode :predicate

* lisp/emacs-lisp/easy-mmode.el (define-globalized-minor-mode):
Silence byte-compiler warning when :predicate is used.

17 months ago; * etc/NEWS: Move an item to "Startup Changes"
Stefan Kangas [Sat, 29 Jun 2024 12:15:34 +0000 (14:15 +0200)]
; * etc/NEWS: Move an item to "Startup Changes"

17 months ago; * etc/NEWS: Move some Lisp items to better place.
Stefan Kangas [Sat, 29 Jun 2024 12:11:20 +0000 (14:11 +0200)]
; * etc/NEWS: Move some Lisp items to better place.

17 months ago; * etc/NEWS: Rearrange "Editing Changes in Emacs 30.1"
Stefan Kangas [Sat, 29 Jun 2024 12:05:45 +0000 (14:05 +0200)]
; * etc/NEWS: Rearrange "Editing Changes in Emacs 30.1"

17 months ago; * etc/NEWS: Make touch screen support more prominent.
Stefan Kangas [Sat, 29 Jun 2024 12:01:48 +0000 (14:01 +0200)]
; * etc/NEWS: Make touch screen support more prominent.

17 months ago; * etc/NEWS: Rearrange "Changes in Emacs 30.1".
Stefan Kangas [Sat, 29 Jun 2024 11:53:49 +0000 (13:53 +0200)]
; * etc/NEWS: Rearrange "Changes in Emacs 30.1".

17 months ago; * lisp/thingatpt.el (sexp-at-point): Doc fix (bug#71777).
Eli Zaretskii [Sat, 29 Jun 2024 12:22:38 +0000 (15:22 +0300)]
; * lisp/thingatpt.el (sexp-at-point): Doc fix (bug#71777).

17 months agoFix: make 'xwidget-webkit-scroll-backward' scroll backwards
George Huebner [Tue, 18 Jun 2024 22:14:41 +0000 (17:14 -0500)]
Fix: make 'xwidget-webkit-scroll-backward' scroll backwards

* lisp/xwidget.el (xwidget-webkit-scroll-backward): Move
hyphen out of %-formatter, changing semantics from a padding
specifier to a negative sign.  (Bug#71792)

Copyright-paperwork-exempt: yes

17 months agoMerge branch 'emacs-30' of git.savannah.gnu.org:/srv/git/emacs into emacs-30
Eli Zaretskii [Sat, 29 Jun 2024 12:08:23 +0000 (15:08 +0300)]
Merge branch 'emacs-30' of git.savannah.gnu.org:/srv/git/emacs into emacs-30

17 months agoAdd jsdoc support to php-ts-mode in <script> element
Vincenzo Pupillo [Tue, 25 Jun 2024 09:29:54 +0000 (11:29 +0200)]
Add jsdoc support to php-ts-mode in <script> element

In the <script> element, enable jsdoc embedding in JavaScript.
* lisp/progmodes/php-ts-mode.el
(php-ts-mode--language-source-alist): Add jsdoc to parser recipe.
(php-ts-mode): Add jsdoc parser check and a new rule for
'treesit-range-settings'.  Update the commentary section.
(Bug#71771)

17 months agoUpdate to Transient v0.7.2-4-gf75bc48d
Jonas Bernoulli [Sat, 29 Jun 2024 12:06:12 +0000 (14:06 +0200)]
Update to Transient v0.7.2-4-gf75bc48d

17 months agoFix typo incurring leaks of face structures
Po Lu [Sat, 29 Jun 2024 12:02:45 +0000 (20:02 +0800)]
Fix typo incurring leaks of face structures

* src/xfaces.c (free_realized_face): Always free realized face
structures, and avoid sending X requests when the display is not
available, not when it is.

17 months ago; Fix use of @footnote in cc-mode.texi
Eli Zaretskii [Sat, 29 Jun 2024 08:55:08 +0000 (11:55 +0300)]
; Fix use of @footnote in cc-mode.texi

* doc/misc/cc-mode.texi (Comment Commands, Minor Modes)
(Hungry WS Deletion): Move @footnote's out of @item's, to avoid
warnings from makeinfo.

17 months agoMerge branch 'emacs-30' of git.sv.gnu.org:/srv/git/emacs into emacs-30
Michael Albinus [Sat, 29 Jun 2024 08:14:01 +0000 (10:14 +0200)]
Merge branch 'emacs-30' of git.sv.gnu.org:/srv/git/emacs into emacs-30

17 months agoSync with Tramp 2.7.1
Michael Albinus [Sat, 29 Jun 2024 08:13:32 +0000 (10:13 +0200)]
Sync with Tramp 2.7.1

* doc/misc/trampver.texi:
* lisp/net/trampver.el (tramp-version): Adapt Tramp versions.
(customize-package-emacs-version-alist): Add Tramp version
integrated in Emacs 30.1.

* lisp/net/tramp-compat.el:
* lisp/net/tramp-message.el (tramp-warning): Use `lwarn'.

* test/lisp/net/tramp-tests.el
(tramp--test-deftest-without-file-attributes): New defmacro.
(tramp-test18-file-attributes-without-file-attributes)
(tramp-test19-directory-files-and-attributes-without-file-attributes)
(tramp-test18-file-attributes-without-file-attributes)
(tramp-test42-utf8-without-file-attributes): New tests.

17 months ago; * etc/NEWS: Move the mwheel entry to a better place.
Eli Zaretskii [Sat, 29 Jun 2024 08:12:07 +0000 (11:12 +0300)]
; * etc/NEWS: Move the mwheel entry to a better place.

17 months ago; Sort tree-sitter modes in NEWS
Stefan Kangas [Sat, 29 Jun 2024 03:22:09 +0000 (05:22 +0200)]
; Sort tree-sitter modes in NEWS

* etc/NEWS: Sort tree-sitter modes alphabetically.

17 months ago; * etc/NEWS: Rearrange "New Modes and Packages in Emacs 30.1".
Stefan Kangas [Sat, 29 Jun 2024 02:50:14 +0000 (04:50 +0200)]
; * etc/NEWS: Rearrange "New Modes and Packages in Emacs 30.1".

This places new modes and packages in rough order of
importance (relevance to users) with most important first.
Feel free to amend.

17 months ago; * etc/NEWS: Move many items.
Stefan Kangas [Sat, 29 Jun 2024 02:09:51 +0000 (04:09 +0200)]
; * etc/NEWS: Move many items.

This moves items to more logical places in the hierarchy.
We might want to give this another pass or three.

17 months ago; * etc/NEWS: Copy-edits.
Stefan Kangas [Fri, 28 Jun 2024 23:04:03 +0000 (01:04 +0200)]
; * etc/NEWS: Copy-edits.

17 months agoExpand docstring of which-key-mode
Stefan Kangas [Fri, 28 Jun 2024 22:56:11 +0000 (00:56 +0200)]
Expand docstring of which-key-mode

* lisp/which-key.el (which-key-mode): Expand docstring.

17 months agoImprove documentation of 'remove-overlays' in ELisp manual
Eli Zaretskii [Fri, 28 Jun 2024 11:52:05 +0000 (14:52 +0300)]
Improve documentation of 'remove-overlays' in ELisp manual

* doc/lispref/display.texi (Managing Overlays): Update
documentation of 'remove-overlays'.  (Bug#57534)  (Bug#13648)

17 months agoFix link to major mode variable in docstring
Stefan Kangas [Fri, 28 Jun 2024 10:16:57 +0000 (12:16 +0200)]
Fix link to major mode variable in docstring

* lisp/emacs-lisp/easy-mmode.el (easy-mmode--arg-docstring): Fix link to
major mode variable in docstring.  (Bug#71815)

17 months agoMake `shell-mode' more robust
Michael Albinus [Fri, 28 Jun 2024 09:28:33 +0000 (11:28 +0200)]
Make `shell-mode' more robust

* lisp/shell.el (shell-mode): Ensure that
`comint-input-ring-file-name' is non-nil when calling `file-truename'.

17 months agoCorrect ommissions in rmc.el
Po Lu [Fri, 28 Jun 2024 06:43:58 +0000 (14:43 +0800)]
Correct ommissions in rmc.el

* lisp/emacs-lisp/rmc.el (touch-screen-scroll)
(touch-screen-pinch): Declare functions.
(read-multiple-choice--short-answers): Call the same functions
directly and prevent the on-screen keyboard from being
deactivated immedately before it is reopened.

17 months ago* lisp/hi-lock.el: More fixes related to revert-buffer.
Juri Linkov [Fri, 28 Jun 2024 06:42:43 +0000 (09:42 +0300)]
* lisp/hi-lock.el: More fixes related to revert-buffer.

(hi-lock-set-pattern): Use the same propertized string
for 'overlay-put' property to allow 'remove-overlays'
to remove it while using 'eq' on the property value.
https://lists.gnu.org/archive/html/emacs-devel/2024-06/msg01001.html

17 months agoUpdate to Org 9.7.5-9-ga091ca
Kyle Meyer [Fri, 28 Jun 2024 03:55:35 +0000 (23:55 -0400)]
Update to Org 9.7.5-9-ga091ca

17 months ago; Fix typo in lua-ts-mode.el
john muhl [Wed, 12 Jun 2024 15:41:03 +0000 (10:41 -0500)]
; Fix typo in lua-ts-mode.el

* lisp/progmodes/lua-ts-mode.el: Fix typo.  (Bug#71736)

17 months ago; Add 'eglot-ensure' option to 'lua-ts-mode-hook'
john muhl [Wed, 15 Nov 2023 18:45:18 +0000 (12:45 -0600)]
; Add 'eglot-ensure' option to 'lua-ts-mode-hook'

* lisp/progmodes/lua-ts-mode.el (lua-ts-mode-hook): Add an option to
enable Eglot from the lua-ts-mode-hook.  (Bug#71736)

17 months ago; * etc/NEWS: Copy edit.
Stefan Kangas [Thu, 27 Jun 2024 22:32:56 +0000 (00:32 +0200)]
; * etc/NEWS: Copy edit.

17 months agoMerge branch 'emacs-30' of git.savannah.gnu.org:/srv/git/emacs into emacs-30
Eli Zaretskii [Thu, 27 Jun 2024 18:55:54 +0000 (21:55 +0300)]
Merge branch 'emacs-30' of git.savannah.gnu.org:/srv/git/emacs into emacs-30

17 months agoWrite Antinews for Emacs 30 ELisp Reference
Eli Zaretskii [Thu, 27 Jun 2024 18:54:52 +0000 (21:54 +0300)]
Write Antinews for Emacs 30 ELisp Reference

* doc/lispref/anti.texi (Antinews):
* doc/lispref/elisp.texi (Top): Rewrite "Antinews" for Emacs 30.

17 months ago(eval-last-sexp): Fix bug#71774
Stefan Monnier [Thu, 27 Jun 2024 18:39:27 +0000 (14:39 -0400)]
(eval-last-sexp): Fix bug#71774

* lisp/progmodes/elisp-mode.el (eval-last-sexp): Set `values` only
when `eval-expression-debug-on-error` is nil.

17 months ago* lisp/hi-lock.el: More fixes for revert-buffer (bug#57534)
Juri Linkov [Thu, 27 Jun 2024 18:08:28 +0000 (21:08 +0300)]
* lisp/hi-lock.el: More fixes for revert-buffer (bug#57534)

(hi-lock-set-pattern): Put the text property 'regexp' on the lighter string.
(hi-lock-revert-buffer-rehighlight): Get the real regexp from the
text property 'regexp'.  This fixes the case when the original
regexp gets lost after e.g. 'M-s . M-s h r'.

17 months ago* lisp/hi-lock.el (hi-lock-revert-buffer-rehighlight): Improve (bug#57534).
Juri Linkov [Thu, 27 Jun 2024 17:05:58 +0000 (20:05 +0300)]
* lisp/hi-lock.el (hi-lock-revert-buffer-rehighlight): Improve (bug#57534).

Instead of detecting invalidated overlays, use the same condition
as in 'hi-lock-set-pattern', and always re-highlight overlays,
because even when overlays stays on their original positions,
there is a need to highlight more matches possibly added after revert.

17 months ago* lisp/tab-bar.el (tab-bar-select-restore-windows): Improve the docstring.
Juri Linkov [Thu, 27 Jun 2024 16:57:18 +0000 (19:57 +0300)]
* lisp/tab-bar.el (tab-bar-select-restore-windows): Improve the docstring.

Suggested by Kévin Le Gouguec <kevin.legouguec@gmail.com> in bug#71779.

17 months agoWrite Antinews for Emacs 30 user manual
Eli Zaretskii [Thu, 27 Jun 2024 16:36:39 +0000 (19:36 +0300)]
Write Antinews for Emacs 30 user manual

* doc/emacs/anti.texi (Antinews):
* doc/emacs/emacs.texi (Top): Rewrite "Antinews" for Emacs 30.

17 months ago; * lisp/erc/erc-backend.el (erc-server-reconnect-timeout): Doc (bug#71756).
F. Jason Park [Mon, 24 Jun 2024 23:04:37 +0000 (16:04 -0700)]
; * lisp/erc/erc-backend.el (erc-server-reconnect-timeout): Doc (bug#71756).

17 months agoChange ERC version for Emacs 30 to 5.6.0.30.1
F. Jason Park [Mon, 24 Jun 2024 22:55:56 +0000 (15:55 -0700)]
Change ERC version for Emacs 30 to 5.6.0.30.1

* doc/misc/erc.texi: Change ERCVER to 5.6.0.30.1.
* lisp/erc/erc.el: Change Version package header to 5.6.0.30.1.  Don't
bother updating the `customize-package-emacs-version-alist' entry
because no user options are yet affected.
(erc-version): Change version to 5.6.0.30.1.
Do not merge to master.

17 months ago* src/w32uniscribe.c (syms_of_w32uniscribe_for_pdumper): Typos.
Po Lu [Thu, 27 Jun 2024 13:42:19 +0000 (21:42 +0800)]
* src/w32uniscribe.c (syms_of_w32uniscribe_for_pdumper): Typos.

17 months agoFix two tests for --without-all build
Andrea Corallo [Thu, 27 Jun 2024 13:32:03 +0000 (15:32 +0200)]
Fix two tests for --without-all build

* test/src/image-tests.el
(image-tests-image-mask-p/error-on-nongraphical-display)
(image-tests-image-metadata/error-on-nongraphical-display): xpm images
are not supported in all configurations so use xbm for non graphical
display tests.

17 months ago; * etc/PROBLEMS (PGTK): Remove redundant 2nd PGTK section.
Eli Zaretskii [Thu, 27 Jun 2024 10:34:21 +0000 (13:34 +0300)]
; * etc/PROBLEMS (PGTK): Remove redundant 2nd PGTK section.

17 months agoFix handling of non-nil 'dired-movement-style'
Eli Zaretskii [Thu, 27 Jun 2024 09:42:43 +0000 (12:42 +0300)]
Fix handling of non-nil 'dired-movement-style'

* lisp/dired.el (dired--move-to-next-line): Treat any non-nil
value of 'dired-movement-style' except 'cycle' as 'bounded'.
(dired-movement-style): Mention this in the doc string.
(Bug#71770)

17 months ago; * lisp/gnus/message.el (message-idna-to-ascii-rhs): Doc fix (bug#71757).
Eli Zaretskii [Thu, 27 Jun 2024 09:33:47 +0000 (12:33 +0300)]
; * lisp/gnus/message.el (message-idna-to-ascii-rhs): Doc fix (bug#71757).

17 months ago; * etc/NEWS: Fix last change (bug#71720).
Eli Zaretskii [Thu, 27 Jun 2024 08:55:29 +0000 (11:55 +0300)]
; * etc/NEWS: Fix last change (bug#71720).

17 months agoDo not prematurely truncate python eldoc string
James Thomas [Sat, 22 Jun 2024 12:27:00 +0000 (17:57 +0530)]
Do not prematurely truncate python eldoc string

'eldoc-echo-area-use-multiline-p' is there for that.
* lisp/progmodes/python.el (python-eldoc-setup-code):
Make the change.  (Bug#71720)

* etc/NEWS: Announce the change in behavior.

17 months ago; Fix simple-tests as fallout of last change
Eli Zaretskii [Thu, 27 Jun 2024 08:37:15 +0000 (11:37 +0300)]
; Fix simple-tests as fallout of last change

* test/lisp/simple-tests.el
(simple-execute-extended-command--shorter): Fix test broken by new
kill-whole-line tests.  (Bug#65734)

17 months agoAdd tests for `kill-whole-line' (bug#65734)
Sebastian Miele [Wed, 19 Jun 2024 13:58:24 +0000 (15:58 +0200)]
Add tests for `kill-whole-line' (bug#65734)

* test/lisp/simple-tests.el (simple-test-point-tag):
(simple-test-mark-tag):
(simple-test--set-buffer-text-point-mark):
(simple-test--get-buffer-text-point-mark): Add helper functions used by
the tests.
(kill-whole-line-invisible):
(kill-whole-line-read-only):
(kill-whole-line-after-other-kill):
(kill-whole-line-buffer-boundaries):
(kill-whole-line-line-boundaries): Add tests for `kill-whole-line'.

17 months agokill-whole-line: Honor visibility; fix kill-ring when read-only (bug#65734)
Sebastian Miele [Wed, 19 Jun 2024 13:48:59 +0000 (15:48 +0200)]
kill-whole-line: Honor visibility; fix kill-ring when read-only (bug#65734)

* lisp/simple.el (kill-whole-line): Use visibility state before
performing any edits as reference instead of expecting that visibility
cannot change.  First of the two calls to `kill-region' may trigger
`after-change-functions' that might alter the visibility state.
Make sure that we populate the `kill-ring' with the contents of the
whole line when buffer is in `read-only-mode'.

17 months ago* lisp/hi-lock.el (hi-lock-file-patterns-policy): Add value 'always'.
Juri Linkov [Thu, 27 Jun 2024 06:52:06 +0000 (09:52 +0300)]
* lisp/hi-lock.el (hi-lock-file-patterns-policy): Add value 'always'.

(hi-lock-mode): Update docstring.
(hi-lock-find-patterns): Return t for value 'always'.
(hi-lock-revert-buffer-rehighlight): Rewrite to correctly handle
all possible cases (bug#57534).

17 months ago* lisp/progmodes/xref.el (xref-revert-buffer-restore-point): New function.
Juri Linkov [Thu, 27 Jun 2024 06:42:34 +0000 (09:42 +0300)]
* lisp/progmodes/xref.el (xref-revert-buffer-restore-point): New function.

(xref--xref-buffer-mode): Add xref-revert-buffer-restore-point
to revert-buffer-restore-functions (bug#71466).

17 months agoFix Cygwin build
Po Lu [Thu, 27 Jun 2024 01:59:57 +0000 (09:59 +0800)]
Fix Cygwin build

* src/w32uniscribe.c (syms_of_w32uniscribe_for_pdumper): Define
and retrieve handle to USP10.DLL on Cygwin.

17 months agoUse 'revert-function' in *xref* buffer
Eshel Yaron [Wed, 26 Jun 2024 16:51:32 +0000 (18:51 +0200)]
Use 'revert-function' in *xref* buffer

* lisp/progmodes/xref.el (xref--xref-buffer-mode-map): Cease
binding 'g' to 'xref-revert-buffer'.
(xref--xref-buffer-mode): Set 'revert-buffer-function' to...
(xref--revert-buffer): ...this.  New function, renamed from...
(xref-revert-buffer): ...this.  Make it an alias of
'revert-buffer'.
* etc/NEWS: Announce it.
* doc/emacs/maintaining.texi (Xref Commands): Update docs.

17 months agoPrevent crashes and related issues if initial activity is destroyed on Android
Po Lu [Thu, 27 Jun 2024 03:06:59 +0000 (11:06 +0800)]
Prevent crashes and related issues if initial activity is destroyed on Android

* java/org/gnu/emacs/EmacsWindow.java
(EmacsWindow) <initialWindowCreated>: New variable.
(EmacsWindow): If the initial frame has not yet been created,
set attachmentToken to -1.

* java/org/gnu/emacs/EmacsWindowManager.java (registerWindow):
When the window's attachment token is -1 (i.e., it is the
default window), start EmacsActivity rather than
EmacsMultitaskActivity.  Catch exceptions around startActivity.

17 months agoDoc fix in 'php-ts-mode'
Vincenzo Pupillo [Tue, 25 Jun 2024 08:37:40 +0000 (10:37 +0200)]
Doc fix in 'php-ts-mode'

* lisp/progmodes/php-ts-mode.el
(php-ts-mode--custom-html-font-lock-settings): Doc fix.  (Bug#71759)

17 months agoAvoid compiler warnings in the Cygwin-w32 build
Ken Brown [Wed, 26 Jun 2024 19:57:39 +0000 (15:57 -0400)]
Avoid compiler warnings in the Cygwin-w32 build

* src/w32fns.c [DEFAULT_IMAGE_BASE]: Don't define on Cygwin.
* src/cygw32.h (w32_get_resource): Add prototype.  (Bug#71786)

17 months agoAdd new face 'widget-unselected' to wid-edit.el
Stephen Berman [Wed, 26 Jun 2024 06:42:19 +0000 (08:42 +0200)]
Add new face 'widget-unselected' to wid-edit.el

* doc/misc/widget.texi (Customization): Document it.

* etc/NEWS: Announce 'widget-unselected' face.

* lisp/wid-edit.el (widget-unselected): New face.
(widget-specify-unselected, widget-specify-selected): New functions.
(widget-checkbox-action, widget-checklist-add-item)
(widget-radio-add-item, widget-radio-value-set)
(widget-radio-action): Use them.

17 months agoAlways perform Eshell process cleanup runs in the Eshell buffer
Jim Porter [Wed, 26 Jun 2024 04:39:35 +0000 (21:39 -0700)]
Always perform Eshell process cleanup runs in the Eshell buffer

Previously, some code executed in a timer, which could execute in the
wrong buffer, leading to a hang.

* lisp/eshell/esh-proc.el (eshell-sentinel): Use 'with-current-buffer'
in the timer function.

* test/lisp/eshell/esh-proc-tests.el (eshell-test-value): New variable.
(esh-proc-test/sentinel/change-buffer): New test.

(cherry picked from commit da4bc5c9274a6705501e24fb8f2984f5bf5fe099)

17 months agoAvert crash in store_mode_line_string on Android 5.0 and earlier
Po Lu [Wed, 26 Jun 2024 04:08:55 +0000 (12:08 +0800)]
Avert crash in store_mode_line_string on Android 5.0 and earlier

* src/xdisp.c (store_mode_line_string)
[__ANDROID_API__ < 22]: Call strlen on STRING if the limit
would otherwise be SIZE_MAX, or if the address of the string
is within PRECISION bytes of UINTPTR_MAX, in which case it
cannot possibly be larger than PRECISION.

17 months agoUse HarfBuzz in Cygwin-w32 build
Ken Brown [Tue, 25 Jun 2024 15:30:08 +0000 (11:30 -0400)]
Use HarfBuzz in Cygwin-w32 build

* src/w32uniscribe.c (syms_of_w32uniscribe_for_pdumper) [CYGWIN]:
Use cygharfbuzz-0.dll as HarfBuzz DLL name instead of
libharfbuzz-0.dll. (Bug#71766)

17 months ago; * src/buffer.c (syms_of_buffer) <mode-line-format>: ASCIIfy.
Eli Zaretskii [Tue, 25 Jun 2024 13:42:47 +0000 (16:42 +0300)]
; * src/buffer.c (syms_of_buffer) <mode-line-format>: ASCIIfy.

17 months ago; * lisp/treesit.el (treesit--syntax-propertize-start): Fix doc.
Yuan Fu [Tue, 25 Jun 2024 02:27:54 +0000 (19:27 -0700)]
; * lisp/treesit.el (treesit--syntax-propertize-start): Fix doc.

(cherry picked from commit 2ba39a30bf4fbe90b5b5e16a50dc7090a42b759b)
(Bug#71753)

17 months agoFix tabbing between widgets (bug#70594)
Stephen Berman [Tue, 25 Jun 2024 10:38:03 +0000 (12:38 +0200)]
Fix tabbing between widgets (bug#70594)

* lisp/wid-edit.el (widget-move): Don't error when tabbing in a
buffer with only one active widget and 'widget-skip-inactive'
enabled.  Improve code by handling forward and backward movement
in a single loop.