From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.bugs Subject: bug#64017: Wrong conversion from Emacs to Tree-sitter S-expression syntax Date: Thu, 15 Jun 2023 15:13:12 -0700 Message-ID: <0583F162-026C-4469-8DD6-69B78549F563@gmail.com> References: <43D49A55-2C3F-4EA4-8DF8-0CD9A516573E@gmail.com> <195848A8-37EA-4F1C-AFDB-C1BB4F30BEA1@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.600.7\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22891"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Basil Contovounesios , 64017@debbugs.gnu.org To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jun 16 00:14:21 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1q9vES-0005oV-TZ for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 16 Jun 2023 00:14:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q9vEC-0003EW-AU; Thu, 15 Jun 2023 18:14:04 -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 1q9vEA-0003E9-7Y for bug-gnu-emacs@gnu.org; Thu, 15 Jun 2023 18:14:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q9vE9-0007g7-Uj for bug-gnu-emacs@gnu.org; Thu, 15 Jun 2023 18:14:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q9vE9-0003fX-O0 for bug-gnu-emacs@gnu.org; Thu, 15 Jun 2023 18:14:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Yuan Fu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Jun 2023 22:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64017 X-GNU-PR-Package: emacs Original-Received: via spool by 64017-submit@debbugs.gnu.org id=B64017.168686721214059 (code B ref 64017); Thu, 15 Jun 2023 22:14:01 +0000 Original-Received: (at 64017) by debbugs.gnu.org; 15 Jun 2023 22:13:32 +0000 Original-Received: from localhost ([127.0.0.1]:48158 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q9vDg-0003eh-8C for submit@debbugs.gnu.org; Thu, 15 Jun 2023 18:13:32 -0400 Original-Received: from mail-pf1-f178.google.com ([209.85.210.178]:42090) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q9vDe-0003eR-5z for 64017@debbugs.gnu.org; Thu, 15 Jun 2023 18:13:30 -0400 Original-Received: by mail-pf1-f178.google.com with SMTP id d2e1a72fcca58-666b0fab552so149377b3a.0 for <64017@debbugs.gnu.org>; Thu, 15 Jun 2023 15:13:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686867204; x=1689459204; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=RU5Lie9mTdmhjxzbIVoSTTn7ej1W1ZKG9j6BeVapQmo=; b=k7VMIC/pJHMdH4HLiNLkkDOe12XejR4QuXm4mm5OhU+bsb6zRlp+7ZDG2hqZkUZN1M uKZJcTZKM1z7UdldFtOL6MdRcc/ddQocRW+13yobHRteOXuHPGdn0h3EAMukUipWJtd+ x+C5j8V252OyThalWsLmqA27NKB8i1tXDt512sB/2b5YAMhfdoDxN4SHe95ma0PvQ/uJ b0ApzPvitDKYLWopIHTV3F5hpuJrRioy7Qubv0skw7h0IiFonw67pkN0NcaAHMpfnXWF nmCvadt5nuD2lL4fzpj+pFBlBJyAxNSLmuBCBKL4Qg85ywHDKNIb4XS5/YJb5f7aEkLz Y23Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686867204; x=1689459204; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=RU5Lie9mTdmhjxzbIVoSTTn7ej1W1ZKG9j6BeVapQmo=; b=TrY/jdeZsadAoEs+//4RuwkF2028k+FhpBqPbGRQOcOaJeqGGd1lBA2oDVm6G2OLD9 EmPOwuqE0tXs7byNialMn2WiAhkK0kW9G9/ExZqFzScYmXmG3sFI9kxDCmp4cA4TmogA Qi/DwDTRRfrG35VT7wLfNKTxc+zG7bLSji+h03ySRa7Pgl7EzrbX/m64vEZnOQ2quxKx MmbK07TYSKwDoo6foRjevqCGS3FhdoAjGm9OXjpgjD26/pOfwh/7rgru0huifv3CHv5D cG8n00wyZwhqUHHJ/eeFcjVpRbAAxGU4V1TcWW0Utb+X8pgTYFuwkIIb1go+wTJlvxNw 9oeQ== X-Gm-Message-State: AC+VfDzHPgEdlRmEcTtM38/HEYeNrIsl9TofjWaNvqeohEDrljCdoAd1 DaGH/uRPrlq7HXh5/oZgT1E= X-Google-Smtp-Source: ACHHUZ4q52ErqWrH1x7/Ar6qM0U17bLBUQywtL9JOzdak41N5o+gkKP0wmnSGtBqx03rJFPU4rsDNg== X-Received: by 2002:a17:902:d4d2:b0:1ae:9105:10a5 with SMTP id o18-20020a170902d4d200b001ae910510a5mr6968579plg.2.1686867203862; Thu, 15 Jun 2023 15:13:23 -0700 (PDT) Original-Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id kg14-20020a170903060e00b001b06361a38dsm1391913plb.116.2023.06.15.15.13.23 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Jun 2023 15:13:23 -0700 (PDT) In-Reply-To: <195848A8-37EA-4F1C-AFDB-C1BB4F30BEA1@gmail.com> X-Mailer: Apple Mail (2.3731.600.7) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:263441 Archived-At: > On Jun 15, 2023, at 3:45 AM, Mattias Engdeg=C3=A5rd = wrote: >=20 > I also propose that we change the documentation to describe the = (Elisp) sexp-based query syntax only, or at least first and foremost, = since that is what all existing code uses and is more convenient. = Currently the manual starts by describing the string syntax and only = then the Elisp sexp syntax. >=20 The difference between tree-sitter syntax and Elisp sexp syntax is petty = small (anchor, predicates), so the text describing the tree-sitter = syntax is basically describing Elisp sexp syntax. With that said if = someone makes it describe Elisp sexp syntax first, I wouldn=E2=80=99t = mind. Yuan=