> On Aug 27, 2024, at 5:09 AM, Eli Zaretskii wrote: > >> From: Yuan Fu >> Date: Mon, 26 Aug 2024 18:58:13 -0700 >> Cc: Alan Mackenzie , >> Eli Zaretskii , >> 64830@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