1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-21 12:03:55 -08:00
Commit graph

173849 commits

Author SHA1 Message Date
Mattias Engdegård
dfbdd38f70 Revert "; * etc/NEWS: Move items to "Incompatible Lisp Changes"."
This reverts commit 000ef8876a.
Most of the moved items weren't actually incompatible changes.
2024-06-30 17:27:08 +02:00
Po Lu
64851d101a 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.
2024-06-30 23:11:19 +08:00
Eli Zaretskii
9b294059d7 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.
2024-06-30 17:42:38 +03:00
Eli Zaretskii
f50167ab95 ; 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.
2024-06-30 15:06:06 +03:00
Robert Church
4e22ef870c Add D-Bus test
* test/lisp/net/dbus-tests.el (dbus-test05-register-signal-with-nils):
New test.  (Bug#69926)
2024-06-30 12:16:20 +02:00
Po Lu
f784d946d4 ; Repair corruption in etc/DEBUG
* etc/DEBUG: Repair corruption reported by Eli Zaretskii
<eliz@gnu.org>.
2024-06-30 17:38:07 +08:00
Eli Zaretskii
c750fbb539 ; * etc/DEBUG: Advice for debugging Emacs on OpenBSD (bug#71712). 2024-06-30 12:18:22 +03:00
Po Lu
38179f85f8 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.
2024-06-30 10:08:35 +08:00
Po Lu
72cf9964f3 Inaccuracy in efaq.texi
; * doc/misc/efaq.texi (New in Emacs 30): Mention GNUStep and
Mac OS separately.
2024-06-30 10:04:43 +08:00
Po Lu
fc48e9e8ed ; 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 `/'.
2024-06-30 10:03:53 +08:00
Stefan Kangas
9b8d754579 ; * etc/NEWS: Explain Nextstep. 2024-06-30 03:58:09 +02:00
Yuan Fu
8819e5a45d
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 20af58d3a1
4. type D
5. crash caused by diff-font-lock-syntax fontification that uses treesit

Emacs: 6f2036243f (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.
2024-06-29 16:49:52 -07:00
Jim Porter
eaf2dc96c1 ; 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:".
2024-06-29 14:59:20 -07:00
Stefan Kangas
57880f597c Delete redundant mention of `with-eval-after-load'
* lisp/progmodes/dcl-mode.el (dcl-mode): Delete redundant mention of
`with-eval-after-load'.
2024-06-29 21:16:58 +02:00
Michael Albinus
ea8ce98434 * doc/misc/efaq.texi (New in Emacs 30): Fix typos. 2024-06-29 18:42:13 +02:00
Stefan Kangas
45a20d781a ; Fix typos in symbols 2024-06-29 17:29:38 +02:00
Stefan Kangas
d95f039af4 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.
2024-06-29 17:03:18 +02:00
Stefan Kangas
d063af203c Add "New in Emacs 30" to FAQ
* doc/misc/efaq.texi (New in Emacs 30): New section.
2024-06-29 16:45:23 +02:00
Stefan Kangas
ca6b484162 ; * etc/NEWS: Move "Minibuffer and Completions"
As a generally applicable feature, it belongs under "Changes" rather
than under "Changes in Specialized Modes and Packages".
2024-06-29 16:37:07 +02:00
Stefan Kangas
35c46663e4 ; * etc/NEWS: Move item to "Lisp Changes". 2024-06-29 16:36:17 +02:00
Stefan Kangas
0515b38d28 ; * etc/NEWS: Move keyboard macro items closer together. 2024-06-29 16:34:28 +02:00
Stefan Kangas
22af3a7103 ; * etc/NEWS: More copy-edits. 2024-06-29 16:34:05 +02:00
Stefan Kangas
000ef8876a ; * etc/NEWS: Move items to "Incompatible Lisp Changes". 2024-06-29 16:01:09 +02:00
Stefan Kangas
4088dc8e4c ; * etc/NEWS: Rearrange "Incompatible Lisp Changes". 2024-06-29 15:50:57 +02:00
Eli Zaretskii
179800f36b ; * lisp/epg.el (epg--start): Add commentary about encoding. 2024-06-29 15:53:11 +03:00
Kazuhiro Ito
73898f0214 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.
2024-06-29 15:50:38 +03:00
Stefan Kangas
a65b6aac6b 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.
2024-06-29 14:39:35 +02:00
Stefan Kangas
f5f7343ac4 ; * etc/NEWS: Move an item to "Startup Changes" 2024-06-29 14:30:58 +02:00
Stefan Kangas
c95066bf18 ; * etc/NEWS: Move some Lisp items to better place. 2024-06-29 14:30:58 +02:00
Stefan Kangas
bf7db88ce1 ; * etc/NEWS: Rearrange "Editing Changes in Emacs 30.1" 2024-06-29 14:30:58 +02:00
Stefan Kangas
000424eb9e ; * etc/NEWS: Make touch screen support more prominent. 2024-06-29 14:30:58 +02:00
Stefan Kangas
5b5671587f ; * etc/NEWS: Rearrange "Changes in Emacs 30.1". 2024-06-29 14:30:58 +02:00
Eli Zaretskii
31124abdef ; * lisp/thingatpt.el (sexp-at-point): Doc fix (bug#71777). 2024-06-29 15:22:38 +03:00
George Huebner
44f269d6e6 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
2024-06-29 15:15:01 +03:00
Eli Zaretskii
358085997c Merge branch 'emacs-30' of git.savannah.gnu.org:/srv/git/emacs into emacs-30 2024-06-29 15:08:23 +03:00
Vincenzo Pupillo
736b7cad40 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)
2024-06-29 15:06:59 +03:00
Jonas Bernoulli
5f3d964e39
Update to Transient v0.7.2-4-gf75bc48d 2024-06-29 14:06:12 +02:00
Po Lu
2d8881d526 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.
2024-06-29 20:02:54 +08:00
Eli Zaretskii
219501dd62 ; 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.
2024-06-29 11:55:08 +03:00
Michael Albinus
c7be2dcac4 Merge branch 'emacs-30' of git.sv.gnu.org:/srv/git/emacs into emacs-30 2024-06-29 10:14:01 +02:00
Michael Albinus
f0a4879975 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.
2024-06-29 10:13:32 +02:00
Eli Zaretskii
53dcf2b949 ; * etc/NEWS: Move the mwheel entry to a better place. 2024-06-29 11:12:07 +03:00
Stefan Kangas
a5726782d0 ; Sort tree-sitter modes in NEWS
* etc/NEWS: Sort tree-sitter modes alphabetically.
2024-06-29 05:22:55 +02:00
Stefan Kangas
daa89dc939 ; * 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.
2024-06-29 05:12:09 +02:00
Stefan Kangas
4ddbf4f70e ; * 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.
2024-06-29 05:12:01 +02:00
Stefan Kangas
437b1ced26 ; * etc/NEWS: Copy-edits. 2024-06-29 04:35:47 +02:00
Stefan Kangas
7372b2eb30 Expand docstring of which-key-mode
* lisp/which-key.el (which-key-mode): Expand docstring.
2024-06-29 00:57:10 +02:00
Eli Zaretskii
df0eb5be1e Improve documentation of 'remove-overlays' in ELisp manual
* doc/lispref/display.texi (Managing Overlays): Update
documentation of 'remove-overlays'.  (Bug#57534)  (Bug#13648)
2024-06-28 14:52:05 +03:00
Stefan Kangas
73c1252bb6 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)
2024-06-28 12:18:04 +02:00
Michael Albinus
c4ad54812a Make `shell-mode' more robust
* lisp/shell.el (shell-mode): Ensure that
`comint-input-ring-file-name' is non-nil when calling `file-truename'.
2024-06-28 11:28:33 +02:00