emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: treesit-query-validate


From: Theodor Thornhill
Subject: Re: treesit-query-validate
Date: Sat, 17 Dec 2022 20:25:38 +0100

Hi, Perry!

Perry Smith <pedz@easesoftware.com> writes:

> I must not know how this function is intended to be used.
>
> What I use to do is go to *scratch*, type in my query and hit C-j and
> that use to work.  But now it puts *scratch* into view-mode and errors
> off — this is after the message "QUERY is valid” comes out.
>
> This change was at commit 4bccb7b211e465310a34493dea8a66ce395956fc.
>
> I’m perfectly happy changing my mean and ugly ways :-) but how is this
> function suppose to be used?

I usually just do it in the minibuffer, but yes this is a bug.

>
> It might be that the (view-mode) is nested too far out. ?

Yep, you are completely correct.  Can you test this patch, Perry?

If reported back positive, can you apply, Yuan?

Theo

Attachment: 0001-Add-view-mode-to-the-treesit-query-validate-buffer.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]