1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00
Commit graph

166172 commits

Author SHA1 Message Date
Eli Zaretskii
53e9caa23e ; * doc/emacs/help.texi (Help, Apropos): Improve text and indexing. 2024-06-08 14:10:10 +03:00
Yuan Fu
00360258ca
Fix treesit-parse-string crash (bug#71012)
Parsing a large file with treesit-parse-string and then printing the
returned node crashes Emacs, because with-temp-buffer kills the temp
buffer when treesit-parse-string returns, and print.c tries to access
the node's position in the killed buffer.

* lisp/treesit.el (treesit-parse-string): Don't use with-temp-buffer.
2024-06-01 10:33:18 -07:00
Yuan Fu
20af58d3a1
Check for buffer liveness when accessing tree-sitter node (bug#71012)
* src/treesit.h (treesit_node_buffer_live_p): Declare function.
* src/print.c (print_vectorlike): Print node without position if
buffer is killed.
* src/treesit.c (treesit_node_buffer_live_p): New function.
(treesit_check_node): Add buffer liveness check.
(syms_of_treesit): New error treesit-node-buffer-killed.
2024-06-01 10:29:55 -07:00
Eli Zaretskii
bf50aa38f9 Improve documentation of case-conversion commands
* doc/emacs/text.texi (Case): Include the commands with negative
arguments.  (Bug#71220)
2024-05-28 15:39:13 +03:00
Stefan Kangas
225b426f25 ; Fix typos 2024-05-27 10:11:15 +02:00
Eli Zaretskii
21b2954c90 ; Fix markup in manuals
* doc/emacs/files.texi (Visiting):
* doc/lispref/processes.texi (Filter Functions, Sentinels): Fix
markup and punctuation.  Reported by Andrés Ramírez
<rrandresf@hotmail.com>.
2024-05-26 09:49:52 +03:00
Eli Zaretskii
4f0121f8db Avoid assertion violations in displaying under 'outline-minor-mode'
* src/xdisp.c (init_from_display_pos): Initialize BYTEPOS
correctly, since 'init_iterator' no longer computes it from
CHARPOS as needed.  This fixes a change made on Mar 13, 2013.
(Bug#71194)
2024-05-25 14:23:43 +03:00
Eli Zaretskii
1bf6583662 Improve documentation of 'no-special-glyphs' frame parameter
* doc/lispref/frames.texi (Layout Parameters): Document
limitations of support for 'no-special-glyphs' frame parameter.
(Bug#71163)
* doc/lispref/display.texi (Truncation): Update for when
'fringe-mode' is off.
2024-05-25 13:22:45 +03:00
kobarity
3647645e94 Fix Python font lock of chained assignment statement
* lisp/progmodes/python.el
(python-font-lock-keywords-maximum-decoration): Allow chaining
of single assignment statements.
* test/lisp/progmodes/python-tests.el
(python-font-lock-assignment-statement-20): New test.
(Bug#71093)
2024-05-24 17:53:34 +03:00
Brad Knotwell
3291dea441 Fix example in Calc manual
* doc/misc/calc.texi (Defining Simple Commands): Fix typo in
command names.  (Bug#71166)

Copyright-paperwork-exempt: yes
2024-05-24 10:43:40 +03:00
Eli Zaretskii
350ae75f5c Avoid crashes on MS-Windows due to invalid UNC file names
* src/w32.c (parse_root): Avoid crashes due to invalid (too short)
UNC names, such as "\\".  (Bug#70914)

* test/src/fileio-tests.el (fileio-tests-invalid-UNC): New test.
2024-05-22 14:10:53 +03:00
Eli Zaretskii
ccf8dba44a ; * lisp/face-remap.el (text-scale-adjust): Doc fix. 2024-05-21 15:40:51 +03:00
Eli Zaretskii
5ab144c77c ; Improve documentation of backing up files
* doc/emacs/files.texi (Backup Copying): Mention that
'backup-by-copying' is safer.  Document 'file-precious-flag'.
(Bug#71074)
2024-05-21 15:34:50 +03:00
Eli Zaretskii
a4828155d8 ; * doc/lispintro/emacs-lisp-intro.texi (nthcdr): Whitespace (bug#71033). 2024-05-18 14:38:29 +03:00
Eli Zaretskii
df1a9e42ba Document :box attribute caveats when used on display strings
* doc/lispref/display.texi (Replacing Specs, Face Attributes):
Mention special considerations when a display string has a
':box' face attribute identical to the surrounding buffer text.
Suggested by JD Smith <jdtsmith@gmail.com>.  (Bug#70637)
2024-05-18 12:15:21 +03:00
Eli Zaretskii
ca17bc8dd0 Improve documentation of 'movemail'
* doc/emacs/rmail.texi (Movemail): Fix the name of the Mailutils
manual in the printed version.  Add index entries.  Move the
description of remote mailboxes to...
(Remote Mailboxes): ...here, to avoid duplication.
2024-05-18 09:12:54 +03:00
Jakub Ječmínek
d47aa33bcd Replace incorrect link in Rmail chapter of Emacs manual
* doc/emacs/rmail.texi (Movemail): Fix cross-reference to a node
in the Mailutils manual.  (Bug#71018)
2024-05-18 08:50:48 +03:00
Eli Zaretskii
35138b90dd ; * doc/lispref/parsing.texi (Parsing Program Source): Improve indexing. 2024-05-17 19:03:39 +03:00
Eli Zaretskii
3dd09516c9 ; Improve documentation of 'set-fontset-font'
* doc/lispref/display.texi (Fontsets):
* src/fontset.c (Fset_fontset_font): Doc fix (bug#70993).
2024-05-17 10:18:35 +03:00
Eli Zaretskii
042b58b5ff ; * doc/emacs/search.texi (Word Search): Add index entry. 2024-05-16 18:42:43 +03:00
Eli Zaretskii
60b1768dc5 ; * src/window.c (Fwindow_scroll_bars): Doc fix. 2024-05-13 08:00:38 +03:00
Eli Zaretskii
0ec9a02a0d ; Fix doc strings of two scroll-bar functions.
* lisp/scroll-bar.el (toggle-horizontal-scroll-bar): Fix typo and
wording.  (Bug#70864).
(toggle-scroll-bar): Fix wording.
2024-05-11 08:29:22 +03:00
Eli Zaretskii
2f8bccf9d8 ; * doc/emacs/frames.texi (Scroll Bars): Improve formatting. 2024-05-10 08:52:33 +03:00
Eli Zaretskii
f9832e80b8 ; * lisp/textmodes/ispell.el (ispell-message): Add commentary. 2024-05-09 20:44:52 +03:00
Eli Zaretskii
a7d247be90 ; * etc/PROBLEMS: Document macOS problems with Emacs.clr (bug#70836). 2024-05-09 09:05:22 +03:00
Illia Ostapyshyn
8560ee7b5c ; * doc/misc/auth.texi (The Unix password store): Fix variable name.
(Bug#70767)

Copyright-paperwork-exempt: yes
2024-05-08 16:16:40 -07:00
Eli Zaretskii
74c6b59af1 ; Advertise scroll bars some more
* doc/emacs/display.texi (Scrolling, Horizontal Scrolling):
Mention the scroll bars as alternative means of scrolling.
2024-05-08 16:44:05 +03:00
Eli Zaretskii
3d65d4306b Avoid errors in 'image-dired-tag-thumbnail'
* lisp/image/image-dired.el (image-dired-tag-thumbnail)
(image-dired-tag-thumbnail-remove): Move here from
image-dired-tags.el.  (Bug#70821)
2024-05-08 16:13:27 +03:00
Eli Zaretskii
b392169e54 ; * doc/lispref/commands.texi (Event Mod): Add motivation (bug#70596). 2024-05-02 12:20:09 +03:00
Eli Zaretskii
e272fd3da9 ; Update description of 'mail-mode'
* doc/emacs/sending.texi (Mail Methods): More accurate description
of mail-mode's deficiencies.
2024-04-30 16:04:26 +03:00
Eli Zaretskii
cf839129ce Fix last change
* test/lisp/progmodes/csharp-mode-tests.el
(csharp-ts-mode-test-indentation): If need to skip the tree-sitter
test, do so silently.  (Bug#70345)
2024-04-27 22:12:14 +03:00
john muhl
3e68d413c1 ; Skip 'csharp-ts-mode' test if grammar is missing
* test/lisp/progmodes/csharp-mode-tests.el
(csharp-ts-mode-test-indentation): Skip test instead of
failing.  (Bug#70345)
2024-04-27 22:08:45 +03:00
Brad Howes
f37f01b504 Fix a typo in Introduction to Emacs Lisp (bug#70571).
Copyright-paperwork-exempt: yes
2024-04-27 12:43:58 +03:00
Eli Zaretskii
d8687fd6cd Fix last change
* test/lisp/progmodes/csharp-mode-tests.el
(csharp-ts-mode-test-indentation): Move the test to here.
* test/lisp/progmodes/csharp-ts-mode-tests.el: Remove file.
* test/lisp/progmodes/csharp-ts-mode-resources/indent.erts: Move
to test/lisp/progmodes/csharp-mode-resources/indent-ts.erts.
2024-04-25 18:59:25 +03:00
Jacob Leeming
494dfd9cf2 Fix indentation of if/else in 'csharp-ts-mode' (bug#70345)
* lisp/progmodes/csharp-mode.el (csharp-ts-mode--indent-rules):
Fix indentation rules for 'if' and 'else'.

* test/lisp/progmodes/csharp-ts-mode-tests.el:
* test/lisp/progmodes/csharp-ts-mode-resources/indent.erts: New
test files.

Copyright-paperwork-exempt: yes
2024-04-25 18:53:06 +03:00
Eli Zaretskii
1cc6322e61 ; * etc/PROBLEMS: Document crashes due to tree-sitter ABI (bug#70438). 2024-04-25 12:39:36 +03:00
Ulrich Müller
42766f95e5 * build-aux/make-info-dir: Avoid bashism (bug#70484). 2024-04-23 21:08:02 +02:00
Eli Zaretskii
81476fa19e Improve documentation of selection and navigation in *xref* buffers
* doc/emacs/maintaining.texi (Looking Up Identifiers): More
detailed description of 'xref-auto-jump-to-first-definition'.
Improve indexing.  Describe the use of 'next-error' and
'previous-error' in conjunction with the *xref* buffer.
(Identifier Search): More detailed description of
'xref-auto-jump-to-first-xref'.  Describe the use of 'next-error'
and 'previous-error'.
2024-04-23 10:40:50 +03:00
Stephen Berman
2a53351492 Fix Widget manual typos, markup and omissions (bug#70502)
* doc/misc/widget.texi (Widgets and the Buffer): Correct typos and
texinfo markup, add equivalent key bindings and make minor changes
in wording.
(Customization): Correct names of two faces and add documentation
of remaining widget faces.
2024-04-22 11:32:10 +02:00
Eli Zaretskii
90be3015b4 ; Document bookmark fringe mark in the user manual
* doc/emacs/regs.texi (Bookmarks): Document
'bookmark-fringe-mark'.
2024-04-22 10:37:18 +03:00
Prateek Sharma
afd0b548fc
Fix python-ts-mode built-in functions and attributes (bug#70478)
* lisp/progmodes/python.el (python--treesit-settings): Change the
treesitter query to fetch the correct type of node for built-in
functions and attributes and highlight them with corresponding
font-lock face.
2024-04-21 16:37:15 -07:00
Eli Zaretskii
dc720decc3 Fix markup and indexing in the Calendar chapter of user manual
* doc/emacs/calendar.texi (Calendar Unit Motion)
(Scroll Calendar, Writing Calendar Files, Holidays)
(Sunrise/Sunset, Lunar Phases, Calendar Systems)
(To Other Calendar, Displaying the Diary, Date Formats)
(Adding to Diary, Special Diary Entries): Fix markup, style, and
indexing.
2024-04-21 19:49:14 +03:00
Gautier Ponsinet
f593bf79a9 Fix the user manual for `calendar-time-zone-style'
* doc/emacs/calendar.texi (Sunrise/Sunset): Refer to the
variable `calendar-time-zone-style' explicitly.  (Bug#70498)
2024-04-21 19:01:10 +03:00
Eli Zaretskii
aed2b7a3d8 Avoid assertion violations in 'push_prefix_prop'
* src/xdisp.c (push_prefix_prop): Set the
'string_from_prefix_prop_p' flag for any valid value of the
'line-prefix' or 'wrap-prefix' property/variable.  (Bug#70495)
2024-04-21 16:06:34 +03:00
Basil L. Contovounesios
c929532b46 Remove ert-equal-including-properties from manual
* doc/misc/ert.texi (Useful Techniques): Mention only
equal-including-properties in place of the now obsolete
ert-equal-including-properties.
2024-04-20 16:01:49 +02:00
Eli Zaretskii
e3aae5fd38 ; Document 'filtered-frame-list'
* doc/lispref/frames.texi (Finding All Frames): Document
'filtered-frame-list'.
2024-04-20 14:52:02 +03:00
Eli Zaretskii
ecb80e0e8a ; Improve wording in documentation of 'not and 'null'
* doc/lispref/control.texi (Combining Conditions):
* doc/lispref/lists.texi (List-related Predicates): Clarify
wording of 'not' vs 'null'.  (Bug#70392)
2024-04-15 14:52:03 +03:00
Eli Zaretskii
5971aa1fd3 * lisp/dnd.el (dnd-handle-movement): Avoid errors (bug#70311). 2024-04-14 13:16:29 +03:00
Stefan Kangas
bbc5204a0f * doc/misc/calc.texi: Improve indexing. 2024-04-13 23:46:31 +02:00
Basil L. Contovounesios
f0300fb059 ; Tweak "(emacs)Bug Reference" formatting/wording. 2024-04-13 10:36:50 +02:00