GNU bug report logs - #64830
29.1; C++ treesitter mode no coloration

Previous Next

Package: emacs;

Reported by: David Come <david.come <at> ageagle.com>

Date: Mon, 24 Jul 2023 10:34:01 UTC

Severity: normal

Merged with 64818

Found in versions 29.1, 30.0.50

Done: Yuan Fu <casouri <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #85 received at 64830 <at> debbugs.gnu.org (full text, mbox):

From: Yuan Fu <casouri <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 64830 <at> debbugs.gnu.org, Alan Mackenzie <acm <at> muc.de>,
 Stefan Kangas <stefankangas <at> gmail.com>
Subject: Re: bug#64830: 30.0.50 C++ treesitter mode no coloration
Date: Tue, 27 Aug 2024 22:36:46 -0700
[Message part 1 (text/plain, inline)]

> On Aug 27, 2024, at 5:09 AM, Eli Zaretskii <eliz <at> gnu.org> wrote:
> 
>> From: Yuan Fu <casouri <at> gmail.com>
>> Date: Mon, 26 Aug 2024 18:58:13 -0700
>> Cc: Alan Mackenzie <acm <at> muc.de>,
>> Eli Zaretskii <eliz <at> gnu.org>,
>> 64830 <at> debbugs.gnu.org
>> 
>> I also want a lisp function that can return the location of a loaded grammar file, would that be an overkill if we have the aforementioned printing?
> 
> Where/when would such a function be used?

For debugging. Eg, to verify that Emacs loaded the grammar file I think it loaded. Something like

(treesit-grammar-location 'c) ; => “/opt/local/lib/libtree-sitter-c.dylib”.

Yuan

[show-location.patch (application/octet-stream, attachment)]

This bug report was last modified 254 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.