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#68824: treesitter support for outline-minor-mode Date: Mon, 5 Feb 2024 23:21:28 -0800 Message-ID: <537E80BD-8A61-41D3-9EE4-AB372C5DF700@gmail.com> References: <86le8667u7.fsf@mail.linkov.net> <865xza39vp.fsf@gnu.org> <86y1c6q7oh.fsf@mail.linkov.net> <868r44ryzb.fsf@mail.linkov.net> <3D859057-3DE9-470A-80A4-E0F734A0A622@gmail.com> <86r0hsxiaf.fsf@mail.linkov.net> <86eddrl6jj.fsf@mail.linkov.net> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\)) 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="584"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 68824@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 06 08:24:01 2024 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 1rXFoG-000ASY-F7 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 06 Feb 2024 08:24:00 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rXFnQ-00030c-2g; Tue, 06 Feb 2024 02:23:08 -0500 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 1rXFnB-0002vh-DU for bug-gnu-emacs@gnu.org; Tue, 06 Feb 2024 02:22:53 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rXFn8-0006xC-4m for bug-gnu-emacs@gnu.org; Tue, 06 Feb 2024 02:22:53 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rXFnK-0002qS-GQ for bug-gnu-emacs@gnu.org; Tue, 06 Feb 2024 02:23:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Yuan Fu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Feb 2024 07:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68824 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 68824-submit@debbugs.gnu.org id=B68824.170720412810874 (code B ref 68824); Tue, 06 Feb 2024 07:23:02 +0000 Original-Received: (at 68824) by debbugs.gnu.org; 6 Feb 2024 07:22:08 +0000 Original-Received: from localhost ([127.0.0.1]:53166 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rXFmO-0002pH-LB for submit@debbugs.gnu.org; Tue, 06 Feb 2024 02:22:08 -0500 Original-Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]:43119) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rXFmJ-0002ok-IC for 68824@debbugs.gnu.org; Tue, 06 Feb 2024 02:22:03 -0500 Original-Received: by mail-pj1-x1030.google.com with SMTP id 98e67ed59e1d1-296a5863237so229081a91.0 for <68824@debbugs.gnu.org>; Mon, 05 Feb 2024 23:21:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707204100; x=1707808900; darn=debbugs.gnu.org; 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=ERAvGwSPTtWNSPxBDB6iwhBvCsZVS+oWtCZmVls+BFY=; b=REG7O+qLmmIRxJ5o5mP9d7209EZUPSceQUTY+9xp9rsZkSVTTxyLr2INq43VUEWSEQ okX0svfJE4fTmLgEXAAuqsDRbll/AkVPI2rxKM3pYlWJrX9bCHIXwBGTxJacinSiSupA W8MI3x56Gqf8jx8zMKDWARzj2sGy9MzBWw1aW6T1XlF6zTMduIfLS9z29mbXwmkwCM/6 xA3Q+arWF2vJ0F1JBFMrWpKFeKhuc04l1XzBSZU8B7B8GJhH3CpE7r6VR8DvKUKbHNrj CkBNKMe43UWBYPCQNiqNAGOEoaA5KgxLqodfy6ZXWp1KPmWt4i+nOFQMb1VKAYUOwGEz lhrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707204100; x=1707808900; 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=ERAvGwSPTtWNSPxBDB6iwhBvCsZVS+oWtCZmVls+BFY=; b=wLReRRWjZlCjue+o9E8FUMeDnm7sY+JB0Zw2O++lYD5N890fjj7EoQSyiHiiTT/1vI bX0+68+03Hi7fX+xHTo13QB6L7yrKMPg6iEZCFWbJct8Z4bCsK40FvDfVXoH2SR8yNPF qKfZDtWTC4JwAEaaCmIyw7VpPwCqLR9sK4zzT/0XthyOVkFetEiWKdO9simXeSJP0uCQ gZy75L5cD984hTaDTlN/P72oHdmauP7xsL7sXwt8Fx7BIKRkJuYwe3n+LHtQJq9Hmi+p 8aJe6pEV9l0bknbRXEx5zK5J/QDT3NLgTxV/Pd7mfSkcxnoQfdgxG5i79owyDgDfMWU1 0hhA== X-Gm-Message-State: AOJu0Yy9L+sslINbiKULslzhtJSHeoAjJzAGmIfXKQmUwQxc6fcH2lHC 8lQ2vIYhGTgOa4dEfdT2IvhgTu9piM7tF6071emZSwc32BBc/qN4iTtLTihn X-Google-Smtp-Source: AGHT+IHM44DN4RgepaZxxgcV1N56f/g3Kg4Xtd1e/SDI6Kp3ztlgybxtkJW9VmIS7pDguH/s8Z3XpA== X-Received: by 2002:a17:90a:6c63:b0:296:6931:e70c with SMTP id x90-20020a17090a6c6300b002966931e70cmr2908593pjj.19.1707204100626; Mon, 05 Feb 2024 23:21:40 -0800 (PST) Original-Received: from smtpclient.apple (172-117-161-177.res.spectrum.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id sw6-20020a17090b2c8600b00296c7877978sm761976pjb.7.2024.02.05.23.21.39 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Feb 2024 23:21:40 -0800 (PST) In-Reply-To: <86eddrl6jj.fsf@mail.linkov.net> X-Mailer: Apple Mail (2.3731.700.6) 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:279479 Archived-At: > On Feb 4, 2024, at 11:22 PM, Juri Linkov wrote: >=20 >>> Also a remaining question: why treesit-parent-until simply calls >>> =E2=80=98(funcall pred node)=E2=80=99 instead of supporting the = standard format >>> that includes a regexp by using treesit-node-match-p? >>>=20 >>> This causes such an inconvenience that for treesit-outline-level >>> that uses treesit-parent-until there is a need to wrap a regexp >>> in a lambda such as for html-ts-mode below. >>=20 >> Nothing other than my oversight :-) >> I pushed a change to master that fixes this. >=20 > Thanks. It seems you forgot to replace 'funcall' > in 'treesit-parent-while' as well? ;-) Ah, yes. For some reason I thought it calls treesit-parent-until. Fixed = it on master. Yuan=