summaryrefslogtreecommitdiff
path: root/src/treesit.h
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2023-12-30 04:51:17 -0500
committerEli Zaretskii <eliz@gnu.org>2023-12-30 04:51:17 -0500
commit3b7198dc4703671fa8b00ed3bf159cb56d4d7ba3 (patch)
tree13db74148b39c017ea6932c6572e1aa3c73a2259 /src/treesit.h
parentaa0037aaf7c2cd7052925fdeca73c77c91254de1 (diff)
parent530315287254da2e6b0767ad343fa55f79be8536 (diff)
downloademacs-3b7198dc4703671fa8b00ed3bf159cb56d4d7ba3.tar.gz
emacs-3b7198dc4703671fa8b00ed3bf159cb56d4d7ba3.tar.bz2
emacs-3b7198dc4703671fa8b00ed3bf159cb56d4d7ba3.zip
Merge from origin/emacs-29
53031528725 Revert "Fix treesit-node-field-name and friends (bug#66674)" fa0bb88302b ; * src/buffer.c (syms_of_buffer) <default-directory>: Do... 44517037aed ; Fix typo ccf46acefd2 ; Fix last change. c86b039dffc ; * etc/DEBUG: Improve advice for debugging native-compil... 9afba605bbc Explain status "r" in `epa-list-keys` 62714221968 ; * lisp/dired.el (dired--make-directory-clickable): Refo... fcbb0044899 Fix mouse clicks on directory line in Dired be8a7155b48 Fix 'split-root-window-right' and 'split-root-window-below' eb19984c4db Mark icalendar.el as maintained by emacs-devel 03dc914fd37 ; Fix footnotes in ELisp Intro manual ceacf753958 Fix usage of `setq-default' and offer more suggestions 2701da0eee5 Fix python-ts-mode triple quote syntax (bug#67262) 683c7c96871 Increment parser timestamp when narrowing changes (bug#67... 8ae42c825e1 ruby-ts-mode: Fix indentation for string_array closer 9cfa498e0ab treesit-major-mode-setup: Use 'treesit--syntax-propertize... da2e440462b ruby-ts-mode: Fix an out-of-bounds error with heredoc at eob 6ea507296a7 Correctly refontify changed region in tree-sitter modes (...
Diffstat (limited to 'src/treesit.h')
-rw-r--r--src/treesit.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/treesit.h b/src/treesit.h
index ef7e2e15317..75d3ed778c4 100644
--- a/src/treesit.h
+++ b/src/treesit.h
@@ -61,7 +61,9 @@ struct Lisp_TS_Parser
/* Re-parsing an unchanged buffer is not free for tree-sitter, so we
only make it re-parse when need_reparse == true. That usually
means some change is made in the buffer. But others could set
- this field to true to force tree-sitter to re-parse. */
+ this field to true to force tree-sitter to re-parse. When you
+ set this to true, you should _always_ also increment
+ timestamp. */
bool need_reparse;
/* These two positions record the buffer byte position (1-based) of
the "visible region" that tree-sitter sees. Before re-parse, we