1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-23 04:53:12 -08:00
emacs/doc/lispref
Yuan Fu ef87c75566
Make sure NODE is not the root node in tree-sitter indent (bug#60602)
There are two possible ways to solve the problem raised in the bug
report: either make sure NODE is never the root (so that parent is
never nil), or allow parent to be nil.

If we go with the latter, a lot of matcher and anchor functions need
change (they need to guard against a null parent).  I tried it, and
needing to check for null parent is pretty annoying.  In comparison,
if NODE is never the root, it is very convenient for the user, and it
doesn't complicate the rule that much (and it's rather intuitive,
people usually don't think of the case where NODE is the root node).
So that's what I choose.

* doc/lispref/modes.texi (Parser-based Indentation): Update manual.
* lisp/treesit.el (treesit-indent-function): Update docstring.
(treesit--indent-1): Make sure NODE is not the root.
2023-01-08 21:22:06 -08:00
..
abbrevs.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
anti.texi Rewrite Antinews in ELisp manual for Emacs 29 2023-01-01 19:37:22 +02:00
back.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
backups.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
book-spine.texi
buffers.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
ChangeLog.1 ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
commands.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
compile.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
control.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
customize.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
debugging.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
display.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
doclicense.texi
edebug.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
elisp.texi ; Fix tree-sitter manual title case 2023-01-02 14:25:54 -08:00
errors.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
eval.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
files.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
frames.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
functions.texi Document the 'definition-name' property. 2023-01-07 19:57:30 +02:00
gpl.texi
hash.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
help.texi ; Fix description of etc/DOC 2023-01-07 19:16:47 +02:00
hooks.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
index.texi
internals.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
intro.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
keymaps.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
lay-flat.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
lists.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
loading.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
macros.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
Makefile.in ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
maps.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
markers.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
minibuf.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
modes.texi Make sure NODE is not the root node in tree-sitter indent (bug#60602) 2023-01-08 21:22:06 -08:00
nonascii.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
numbers.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
objects.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
os.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
package.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
parsing.texi ; Minor rewording of tree-sitter terminology 2023-01-07 11:25:52 +02:00
positions.texi ; * doc/lispref/positions.texi (List Motion): Minor wording fix. 2023-01-03 15:16:42 +02:00
processes.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
README ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
records.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
searching.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
sequences.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
spellfile Rewrites of Elisp manual including tab-bar and tab-line changes 2021-10-18 09:58:48 +02:00
streams.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
strings.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
symbols.texi Document the 'definition-name' property. 2023-01-07 19:57:30 +02:00
syntax.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
text.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
threads.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
tips.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
two-volume-cross-refs.txt ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
two-volume.make ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
variables.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
windows.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Copyright (C) 2001-2023 Free Software Foundation, Inc.  -*- outline -*-
See the end of the file for license conditions.


README for the Emacs Lisp Reference Manual.

* This directory contains the texinfo source files for the Emacs Lisp
Reference Manual.

* Report bugs in the Lisp Manual (or in Emacs) using M-x report-emacs-bug.
To ask questions, use the help-gnu-emacs mailing list.

* The Emacs Lisp Reference Manual is quite large.  It totals around
1100 pages in smallbook format; the info files total around 3.0 megabytes.

* You can format this manual for Info, for printing hardcopy using TeX,
or for HTML.

* You can buy nicely printed copies from the Free Software Foundation.
Buying a manual from the Free Software Foundation helps support our GNU
development work.  See <https://shop.fsf.org/>.
(At time of writing, this manual is out of print.)

* The master file for formatting this manual for Tex is called 'elisp.texi'.
It contains @include commands to include all the chapters that make up
the manual.

* This distribution contains a Makefile that you can use with GNU Make.

** To make an Info file, you need to install Texinfo, then run 'make info'.

** Use 'make elisp.pdf' or 'make elisp.html' to create PDF or HTML versions.


This file is part of GNU Emacs.

GNU Emacs is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

GNU Emacs is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with GNU Emacs.  If not, see <https://www.gnu.org/licenses/>.