[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#69952: [PATCH] Support pdumping compiled queries by dumping their so
From: |
Eli Zaretskii |
Subject: |
bug#69952: [PATCH] Support pdumping compiled queries by dumping their source |
Date: |
Sat, 04 May 2024 12:39:05 +0300 |
> From: Yuan Fu <casouri@gmail.com>
> Date: Sun, 21 Apr 2024 23:25:10 -0700
> Cc: dancol@dancol.org,
> serg.foo@gmail.com,
> 69952@debbugs.gnu.org
>
> > On Apr 21, 2024, at 11:18 PM, Eli Zaretskii <eliz@gnu.org> wrote:
> >
> >
> > We cannot safely signal an error at that point, I think, so just
> > keeping the query as a string should do, as it will then signal an
> > error at run time when that query is used, is that right?
>
> Yes, most likely a function-undefined signal, since all the treesit.c
> functions like treesit-query-capture or treesit-query-compile will be
> nonexistent. And usually the Lisp program trying to use the query would check
> for tree-sitter availability with treesit-available-p before trying to use
> any tree-sitter functions; so that signal will be usually avoided as well.
Can you suggest such an addition to the patch?
- bug#69952: [PATCH] Support pdumping compiled queries by dumping their source,
Eli Zaretskii <=