From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Gerd_M=C3=B6llmann?= Newsgroups: gmane.emacs.devel Subject: Qeustion about Ftreesit_pattern_expand Date: Mon, 24 Jun 2024 23:26:39 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32942"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) To: Emacs Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jun 24 23:30:26 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sLrGb-0008PS-19 for ged-emacs-devel@m.gmane-mx.org; Mon, 24 Jun 2024 23:30:25 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sLrD7-0006sN-N5; Mon, 24 Jun 2024 17:26:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sLrD2-0006ZH-68 for emacs-devel@gnu.org; Mon, 24 Jun 2024 17:26:44 -0400 Original-Received: from mail-ej1-x62a.google.com ([2a00:1450:4864:20::62a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sLrD0-0006se-ES for emacs-devel@gnu.org; Mon, 24 Jun 2024 17:26:43 -0400 Original-Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-a724a8097deso201921166b.1 for ; Mon, 24 Jun 2024 14:26:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719264400; x=1719869200; darn=gnu.org; h=mime-version:user-agent:message-id:date:subject:to:from:from:to:cc :subject:date:message-id:reply-to; bh=+MxTf6yH0TqMLOEVm8W5PvAggKrC42virZX+wD3p8fI=; b=byHwEMQxzcLJO72lUw/KZHO0Z7jJq4EQGmiNVVhpXHJ8kmqV34KMTyBI29AOMuT3RZ rhwyYYkXOFyeyCCS86pjPvShCrmmCysJRCH4l/NuPU/+lu9356Wp+MoXPnpokUMayhqG hOFfKYL/MO4J+ARPVLNmULH+H/ApYL32S1yjZUsu9bKr6M6q+t59RXhqcdcDetlvf8qC ZR8LXgJUtBq6MWAbJggMvGNY5MNOVLpsxSdY7G5UfmBsihJqt/ukyCwSZ055pz4rjDOf fjCVDSmb8QfiZUY2WUiRTeYzTf2lFRs/m4qZAeKgMH6cHiRdhnqhibAViXJmKC6fw2g2 +GaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719264400; x=1719869200; h=mime-version:user-agent:message-id:date:subject:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=+MxTf6yH0TqMLOEVm8W5PvAggKrC42virZX+wD3p8fI=; b=MjV7ZU4e2zXqC49MEjTeMEKwWhyBAiBmtnXMGTq1Ukxes2cJ/PfLoDz4swrcbfC2zw blrltg0tqwrhL/99nFIGBx0QN2bvpZk87cmGYPG/7LsDi8weANmpnDWEJXaICaE7fQc1 bP0cVXl14gPWYtHADH10Fx9+D9ZB4bdljmGZQA0DICPphAqrcgX8FVyBkhhDAsatYVz4 Br/ki0nesTSnr83lWnts4FrgtRvNJ0M2sYqjL6Wa/eOGmpKLnn8t1D2fnJU7l/QtCoZu w8miJ+Z6qu2tTjn7RxYc3XkNXGhysgQRf80HbzYrmg5ignOCkmS6u1dkwPfyc04+6p61 JaRw== X-Gm-Message-State: AOJu0Yww74INpWS4gcYejj+MQtCXUwbBFX20fkfNHNlLdUvrg7nFrDRf muTRpzauReBjIBp2ZaAoBug0AVXSVwz++rNxzuMd10J004kAjDGJ+EAKug== X-Google-Smtp-Source: AGHT+IGdDRdnMmpRH5BVktihs9y+a89e2tGbDZBDTjuyVR1nGFfH/UwD+AwXmuL1AAYwYG1867vHqA== X-Received: by 2002:a17:906:7c49:b0:a68:b557:76f5 with SMTP id a640c23a62f3a-a7242e12fd3mr361155466b.69.1719264400145; Mon, 24 Jun 2024 14:26:40 -0700 (PDT) Original-Received: from pro2.fritz.box (p4fe3a079.dip0.t-ipconnect.de. [79.227.160.121]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6fcf560754sm447008666b.161.2024.06.24.14.26.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jun 2024 14:26:39 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::62a; envelope-from=gerd.moellmann@gmail.com; helo=mail-ej1-x62a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:320620 Archived-At: 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?