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.devel Subject: Help with hideshow Date: Sun, 25 Dec 2022 09:59:29 -0800 Message-ID: <39D3A23B-ED1C-47D7-9798-F29EE7B55F55@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) 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="36779"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Dec 25 19:00:14 2022 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 1p9VID-0009Sa-Vl for ged-emacs-devel@m.gmane-mx.org; Sun, 25 Dec 2022 19:00:13 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p9VHd-0001u9-IO; Sun, 25 Dec 2022 12:59:37 -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 1p9VHa-0001tE-RS for emacs-devel@gnu.org; Sun, 25 Dec 2022 12:59:34 -0500 Original-Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p9VHX-0001aJ-UB for emacs-devel@gnu.org; Sun, 25 Dec 2022 12:59:33 -0500 Original-Received: by mail-pl1-x62e.google.com with SMTP id u7so9132657plq.11 for ; Sun, 25 Dec 2022 09:59:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:from:to:cc:subject:date:message-id:reply-to; bh=tbygj1ALvommcDSw/pAXW5+H4/NWGvn67TSsIviIbt4=; b=VE18I1/xrmC0qzcZH2AqAcw1O0ZZBci88O/277VYXkgWiuZwKqAh0BoxXZGR87qusT WfRoUiqu0+f/cdjqjY+lB1o+SxYWCain8lZ+703spj/+YEjBE9HG+NoThzR58iE+h1cu 1hyQh5HQGXVZC73B7xDnC//nKbm1UCAaBANlrOsYvuVD8kwfgozhjdBXBq/vn1i/5McS OD3bK7Qxcx8WXW6eLWHKzPo5/u7rtwAJMhMMYvuFnfUb9RbP2D6MTPYJBzRi0r3/TyE6 DK4ItZHO4XyXNRlyrxqBxZCCZyfwr8b4VCtVHToqMaewG5y6sSfZEH9e3o+wE9v395is 0UtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=tbygj1ALvommcDSw/pAXW5+H4/NWGvn67TSsIviIbt4=; b=Dh9ow44SLA3PoE/pxk516Qu0vaB8UBRBOftDsOMsRfzbdNmFL77WkP9fowsegNl0ly Lq7PwJMIANYNeHQBi1xulHw8hd9/V480MuXUIifdqjkBwUk2+D7uq/8toW0hp/N4xQTq SLcJFinvwHzlH70WqdJCwGbrAPVKgcuepWn6ngDZNaeCCSSRtFJnHGHaSiCGsUaIjSG1 hmfSNpqksc54pJ1n4u0dVSaHpfNLS71OaJToKGYwYo745YeqQkDPF6rUFkYZmtkt2tzQ noRJ1xl2iwpklapBcv1ErKScxc2Ydypzl4WLMpDj/Ex2ukuIJHL2tNajSAOlQ4K7fL/5 uJJw== X-Gm-Message-State: AFqh2krXHdISTUDaDU0mSpwFgSoeCXkb3So2PaXKXOWupsmHcL2lPEyI 4o0eOTlQI5REUGxlaUIp48nddDTuXqc= X-Google-Smtp-Source: AMrXdXt/znHavecqETKR6iYyiq2nSdiNLzds8C3uHMUdzHTSlkztxXV05HL+IGUSCx7YKpBoM9qR2w== X-Received: by 2002:a17:903:31d5:b0:191:4539:d2c1 with SMTP id v21-20020a17090331d500b001914539d2c1mr17613607ple.47.1671991170200; Sun, 25 Dec 2022 09:59:30 -0800 (PST) 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 i7-20020a17090332c700b001801aec1f6bsm5630539plr.141.2022.12.25.09.59.29 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 25 Dec 2022 09:59:29 -0800 (PST) X-Mailer: Apple Mail (2.3696.120.41.1.1) Received-SPF: pass client-ip=2607:f8b0:4864:20::62e; envelope-from=casouri@gmail.com; helo=mail-pl1-x62e.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:301913 Archived-At: Is anyone familiar with hideshow? I tried to add tree-sitter support for = it but didn=E2=80=99t quite make it.=20 I just generalized some defun functions so that one can define a = =E2=80=9Cthing=E2=80=9D with a regexp that matches node types. So now it = should be relatively straightforward for each major mode to define a = =E2=80=9Cblock=E2=80=9D thing, like they do for defun, and a = hideshow-treesitter bridge can use treesit-thing-at-point, = treesit-beginning-of-thing, etc, to support hideshow. It would be great if someone familiar with hideshow would like to give = it a try, or educate me how to set hs-special-modes-alist. Thanks, Yuan=