unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Qeustion about Ftreesit_pattern_expand
@ 2024-06-24 21:26 Gerd Möllmann
  2024-06-26  4:54 ` Yuan Fu
  0 siblings, 1 reply; 7+ messages in thread
From: Gerd Möllmann @ 2024-06-24 21:26 UTC (permalink / raw)
  To: Emacs Devel

Not important, just as context: I wanted to see if igc works with
treesit Lisp objects, built with treesitter, and finally even got
grammars for C and C++ installed :-/. Font-locking didn't work in my
fork (CL packages), which I fixed.

My question:

Function Ftreesit_pattern_expand uses this to print Lisp objects:

  return Fprin1_to_string (pattern, Qnil, Qt);

where prin1 prints readably, and second arg nil means add escapes as
needed to that the result can be read back, by function read.

Why is it printing readably with escapes?

I know tree-sitter doesn't understand Lisp escaping because that was my
problem with the font-locking. Or, in other words, should the second arg
be Qt for don't escape?



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-06-26  6:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-24 21:26 Qeustion about Ftreesit_pattern_expand Gerd Möllmann
2024-06-26  4:54 ` Yuan Fu
2024-06-26  5:05   ` Gerd Möllmann
2024-06-26  5:13     ` Yuan Fu
2024-06-26  5:34       ` Gerd Möllmann
2024-06-26  6:04         ` Yuan Fu
2024-06-26  6:16           ` Gerd Möllmann

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).