<feed xmlns='http://www.w3.org/2005/Atom'>
<title>emacs/src/treesit.c, branch scratch/cedet-object-name</title>
<subtitle>Emacs is the extensible, customizable, self-documenting real-time display editor. 
</subtitle>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/'/>
<entry>
<title>Remove parent-node field from tree-sitter parsers</title>
<updated>2025-03-11T08:06:39+00:00</updated>
<author>
<name>Yuan Fu</name>
</author>
<published>2025-03-11T03:15:39+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=03a6d4256f861d71e09206ac09d48f16efd52b64'/>
<id>03a6d4256f861d71e09206ac09d48f16efd52b64</id>
<content type='text'>
* src/treesit.c (make_treesit_parser): Remove field.
(Ftreesit_parser_parent_node):
(Ftreesit_parser_set_parent_node): Remove
* src/treesit.h (Lisp_TS_Parser): Remove field.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/treesit.c (make_treesit_parser): Remove field.
(Ftreesit_parser_parent_node):
(Ftreesit_parser_set_parent_node): Remove
* src/treesit.h (Lisp_TS_Parser): Remove field.
</pre>
</div>
</content>
</entry>
<entry>
<title>Avoid defining unneeded variables on Cygw32</title>
<updated>2025-03-06T14:04:51+00:00</updated>
<author>
<name>Kazuhiro Ito</name>
</author>
<published>2025-02-23T13:47:00+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=64b3ad5c763ed3d2a9978fce06c0ccbdd085fe35'/>
<id>64b3ad5c763ed3d2a9978fce06c0ccbdd085fe35</id>
<content type='text'>
lisp/term/w32-win.el contained definitions of variables which
were not used on Cygw32.  It is now to split into two files,
common part and Windows native build specific part. The latter
is a new file, lisp/term/w32-nt.el.
* src/image.c (Qlibpng_version, Qlibgif_version)
(Qlibjpeg_version): Don't define on Cygw32 build.
* src/treesit.c (Qtree_sitter__library_abi): Ditto.

* lisp/term/w32-win.el (dynamic-library-alist, libpng-version)
(libgif-version, libjpeg-version, libgnutls-version)
(tree-sitter--library-abi, gui-backend-set-selection)
(gui-backend-get-selection, gui-backend-selection-owner-p)
(gui-selection-exists-p): Moved to lisp/term/w32-nt.el.
* lisp/term/w32-nt.el: New file, separated Windows native build
specific part from lisp/term/w32-win.el.
* lisp/loadup.el: Load term/w32-nt.el on Windows native build.
(Bug#75926)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
lisp/term/w32-win.el contained definitions of variables which
were not used on Cygw32.  It is now to split into two files,
common part and Windows native build specific part. The latter
is a new file, lisp/term/w32-nt.el.
* src/image.c (Qlibpng_version, Qlibgif_version)
(Qlibjpeg_version): Don't define on Cygw32 build.
* src/treesit.c (Qtree_sitter__library_abi): Ditto.

* lisp/term/w32-win.el (dynamic-library-alist, libpng-version)
(libgif-version, libjpeg-version, libgnutls-version)
(tree-sitter--library-abi, gui-backend-set-selection)
(gui-backend-get-selection, gui-backend-selection-owner-p)
(gui-selection-exists-p): Moved to lisp/term/w32-nt.el.
* lisp/term/w32-nt.el: New file, separated Windows native build
specific part from lisp/term/w32-win.el.
* lisp/loadup.el: Load term/w32-nt.el on Windows native build.
(Bug#75926)
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge from origin/emacs-30</title>
<updated>2025-03-01T14:59:06+00:00</updated>
<author>
<name>Eli Zaretskii</name>
</author>
<published>2025-03-01T14:59:06+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=30cbeaba312410cca0bd92988ffac8a3716ab6a4'/>
<id>30cbeaba312410cca0bd92988ffac8a3716ab6a4</id>
<content type='text'>
2dbf7d0b1b2 Use character position for ranges in treesit_sync_visible...
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
2dbf7d0b1b2 Use character position for ranges in treesit_sync_visible...
</pre>
</div>
</content>
</entry>
<entry>
<title>; Fix documentation of recent treesit changes</title>
<updated>2025-02-28T07:12:05+00:00</updated>
<author>
<name>Eli Zaretskii</name>
</author>
<published>2025-02-28T07:12:05+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=6ed119d3052ffebd20450ec0c7fb3abf863b3a49'/>
<id>6ed119d3052ffebd20450ec0c7fb3abf863b3a49</id>
<content type='text'>
* src/treesit.c (Ftreesit_query_capture)
(Ftreesit_parser_embed_level, Ftreesit_parser_set_embed_level)
(Ftreesit_parser_set_parent_node):
* lisp/treesit.el (treesit-query-range)
(treesit-query-range-by-language, treesit-range-settings)
(treesit-range-rules, treesit--parser-at-level)
(treesit--update-ranges-non-local, treesit--update-ranges-local)
(treesit--update-range-1): Fix wording and typos in doc strings.

* doc/lispref/parsing.texi (Pattern Matching): Fix wording.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/treesit.c (Ftreesit_query_capture)
(Ftreesit_parser_embed_level, Ftreesit_parser_set_embed_level)
(Ftreesit_parser_set_parent_node):
* lisp/treesit.el (treesit-query-range)
(treesit-query-range-by-language, treesit-range-settings)
(treesit-range-rules, treesit--parser-at-level)
(treesit--update-ranges-non-local, treesit--update-ranges-local)
(treesit--update-range-1): Fix wording and typos in doc strings.

* doc/lispref/parsing.texi (Pattern Matching): Fix wording.
</pre>
</div>
</content>
</entry>
<entry>
<title>Enable treesit-query-capture to return grouped captures</title>
<updated>2025-02-28T01:22:03+00:00</updated>
<author>
<name>Yuan Fu</name>
</author>
<published>2025-02-27T11:07:34+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=625b2b02a3c9bad6d7abf57ea7f95ece29855906'/>
<id>625b2b02a3c9bad6d7abf57ea7f95ece29855906</id>
<content type='text'>
This is needed for creating embedded parsers for embedded code
blocks of which language cannot be known ahead of time.  E.g.,
markdown and org mode's code block.

* src/treesit.c (Ftreesit_query_capture): Add parameter GROUPED.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is needed for creating embedded parsers for embedded code
blocks of which language cannot be known ahead of time.  E.g.,
markdown and org mode's code block.

* src/treesit.c (Ftreesit_query_capture): Add parameter GROUPED.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add tree-sitter-parser-embed-level and parent-node</title>
<updated>2025-02-28T01:22:03+00:00</updated>
<author>
<name>Yuan Fu</name>
</author>
<published>2025-02-27T11:05:26+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=30e1508ef2d40e221736cea2c50c64941d7d2f0d'/>
<id>30e1508ef2d40e221736cea2c50c64941d7d2f0d</id>
<content type='text'>
Add parser properties embed-level and parent-node. They'll be
help us implement arbitrarily nested embeded parser, and
navigation across embedded and host parsers, respectively.

* src/treesit.c:
(Ftreesit_parser_embed_level):
(Ftreesit_parser_set_embed_level):
(Ftreesit_parser_parent_node):
(Ftreesit_parser_set_parent_node): New functions.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add parser properties embed-level and parent-node. They'll be
help us implement arbitrarily nested embeded parser, and
navigation across embedded and host parsers, respectively.

* src/treesit.c:
(Ftreesit_parser_embed_level):
(Ftreesit_parser_set_embed_level):
(Ftreesit_parser_parent_node):
(Ftreesit_parser_set_parent_node): New functions.
</pre>
</div>
</content>
</entry>
<entry>
<title>Use character position for ranges in treesit_sync_visible_region</title>
<updated>2025-02-23T08:08:56+00:00</updated>
<author>
<name>Yuan Fu</name>
</author>
<published>2025-02-23T07:24:38+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=2dbf7d0b1b26a9676fbdb56a5955f3f24f521cc4'/>
<id>2dbf7d0b1b26a9676fbdb56a5955f3f24f521cc4</id>
<content type='text'>
* src/treesit.c (treesit_sync_visible_region): Use character position
instead of byte position when comparing to ranges, because the
ranges are in character position.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/treesit.c (treesit_sync_visible_region): Use character position
instead of byte position when comparing to ranges, because the
ranges are in character position.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'scratch/no-purespace' into 'master'</title>
<updated>2025-02-01T03:56:52+00:00</updated>
<author>
<name>Stefan Kangas</name>
</author>
<published>2025-02-01T03:56:52+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=bf97946d7dc460b7d3c3ce03193041b891b51faf'/>
<id>bf97946d7dc460b7d3c3ce03193041b891b51faf</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix tree-sitter language remapping</title>
<updated>2025-01-30T07:20:38+00:00</updated>
<author>
<name>Yuan Fu</name>
</author>
<published>2025-01-30T07:20:38+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=3be04f3dab85348006a8567e172c3dcb0a6831a4'/>
<id>3be04f3dab85348006a8567e172c3dcb0a6831a4</id>
<content type='text'>
* src/treesit.c (resolve_language_symbol): Move forward.
(treesit_ensure_query_compiled): Resolve language remapping
here.
(Ftreesit_parser_list): Don't resolve language remaping here,
because there's no need: parsers now carries the remapped
language.
(Ftreesit_query_compile): Don't resolve language remapping here,
because we resolve language remapping when actually compiling
the query.  Also we want the query to carry the unmapped
language.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/treesit.c (resolve_language_symbol): Move forward.
(treesit_ensure_query_compiled): Resolve language remapping
here.
(Ftreesit_parser_list): Don't resolve language remaping here,
because there's no need: parsers now carries the remapped
language.
(Ftreesit_query_compile): Don't resolve language remapping here,
because we resolve language remapping when actually compiling
the query.  Also we want the query to carry the unmapped
language.
</pre>
</div>
</content>
</entry>
<entry>
<title>; Fix Cygw32 build (bug#75926)</title>
<updated>2025-01-29T16:00:24+00:00</updated>
<author>
<name>Eli Zaretskii</name>
</author>
<published>2025-01-29T15:55:58+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=0c6aa27cde5dc911cfd3646d5789124fecb06f46'/>
<id>0c6aa27cde5dc911cfd3646d5789124fecb06f46</id>
<content type='text'>
(cherry picked from commit cb62a47896bb21420a709c655034e8acfcb08082)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(cherry picked from commit cb62a47896bb21420a709c655034e8acfcb08082)
</pre>
</div>
</content>
</entry>
</feed>
