From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.devel Subject: Re: master 1addae07be1: Treesit support for show-paren-mode (bug#75122) Date: Sun, 29 Dec 2024 12:28:32 -0600 Message-ID: References: <173549580968.311898.2285396343331326524@vcs3.savannah.gnu.org> <20241229181010.9D083D98076@vcs3.savannah.gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3926"; mail-complaints-to="usenet@ciao.gmane.io" To: Juri Linkov , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Dec 29 19:29:03 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 1tRy2B-0000se-Iz for ged-emacs-devel@m.gmane-mx.org; Sun, 29 Dec 2024 19:29:03 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tRy1m-0005a7-6d; Sun, 29 Dec 2024 13:28:38 -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 1tRy1k-0005Zk-ED for emacs-devel@gnu.org; Sun, 29 Dec 2024 13:28:36 -0500 Original-Received: from mail-ed1-x536.google.com ([2a00:1450:4864:20::536]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tRy1j-0004Tk-0T for emacs-devel@gnu.org; Sun, 29 Dec 2024 13:28:36 -0500 Original-Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-5d3d0205bd5so12466511a12.3 for ; Sun, 29 Dec 2024 10:28:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735496913; x=1736101713; darn=gnu.org; h=to:subject:message-id:date:mime-version:references:in-reply-to:from :from:to:cc:subject:date:message-id:reply-to; bh=BIV1pCvmOQbksVPFGoHRJLDUNyVRRgP0Gm9OVieJ0B4=; b=UsKDvXuQGuf2AKKblh7Jn0Yx3ABi87FIS9Zjls3pPiJ0NynZhpC4DBwNYBcwXT/a+E TcYTF4tSfHfsRQVDa27s+7NubquoMEpEB9cdZZ0aRTNz8l/iZM0oNgDKFxgMHiB5+tzd Bulbjy+cByn6EUOq5Pj482NaZvzeyVTZ2wWJVDfOlCYMqzoXIccrASwqqMEcE7VU+RAy 3nFZrbyIHhD9iO0DR9ePohoMX91QrG8QZNRzMNDUE0PrvGfE0VB7zfGMwXeIl3grrP8O F+qMBt+dMPwkXqC1vnjtvxzPBmCVxlNCCpzgrYMBvmy+pFim+lpaO7xB2foUAUxqBuuO PGDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735496913; x=1736101713; h=to:subject:message-id:date:mime-version:references:in-reply-to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=BIV1pCvmOQbksVPFGoHRJLDUNyVRRgP0Gm9OVieJ0B4=; b=Y/Wqk6DbkqGzHY/246bpugCNUA4bfjRnlYU4YdTiTvlwZjkjrgc8eq5iQ8GQ9yZUxZ zO8eEWs/6zuo+pbZXM9HgXUDGFD0vZ+5cT5+uYES3SwFSAOjNYEtxnbEPNk30jAfriB9 hTN7JeillHRd7l+JHCO03Js5TKRVcImcC/WzDEI6eiqqNjxb4WzGaAjl3qdRoywhJvBE U3K0dyZHWWkxfg1z061otli3Tv+zf1191ROt0M6FbNOuhF7Uog99ueEzpAHTMl2eI8uv m4jGmcceUCi+lVSxTN8+/nxrLCC3qV0jPjVneaz5/vjW/24IY+lX/CQwg7nNG7RoB7NI BMeA== X-Forwarded-Encrypted: i=1; AJvYcCUytlbt40MPg17pkKq3Eyy16ERYKtzwJq0WKU0bGeFvt0tuxdd0mIEtrBZ3+CCeuIxNUpA2dvDuJdYVWg==@gnu.org X-Gm-Message-State: AOJu0YzycoRNnJ5G4JY8B12crxc/rVrzyVGrUcsu4VPLIVBe9XYebrO/ lG2oeaFkavYl7+X4Pu6/pfOkpR2w6YO+dLT5nah3vA4FNQF1vKx2pWtjXOoT+uZpzmfsra8Nnyg yYwvWUtxgUhOTaZB7FE3YlntSc1I= X-Gm-Gg: ASbGnctDjC126xRumcDuL2uRKM7fQXFL1Nk+COIBSZgXTCi3YN3NlIteoRKPjym5sNV OU9bwKueCXHHTQLk7At8NQCv7iLKQc0YH0kZdmy+N X-Google-Smtp-Source: AGHT+IFwf3qVuUt3Q8rJ7A2u0qrAaMw9Upr0TpX2pPhBTyn4DTFaKdlSxOIER7PB3oO2Dc7s8wUDFmXBnppnif2d56c= X-Received: by 2002:a05:6402:5207:b0:5d0:bcdd:ff8f with SMTP id 4fb4d7f45d1cf-5d81dd5ed91mr29178038a12.4.1735496912365; Sun, 29 Dec 2024 10:28:32 -0800 (PST) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sun, 29 Dec 2024 12:28:32 -0600 In-Reply-To: <20241229181010.9D083D98076@vcs3.savannah.gnu.org> Received-SPF: pass client-ip=2a00:1450:4864:20::536; envelope-from=stefankangas@gmail.com; helo=mail-ed1-x536.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:327356 Archived-At: Juri Linkov writes: > branch: master > commit 1addae07be1982a6cafc0e0b3955b59bd1fb481c > Author: Juri Linkov > Commit: Juri Linkov > > Treesit support for show-paren-mode (bug#75122) Thanks! > diff --git a/etc/NEWS b/etc/NEWS > index 11dfccd0c07..ebb2c2f571d 100644 > --- a/etc/NEWS > +++ b/etc/NEWS > @@ -1017,6 +1017,10 @@ Tree-sitter conditionally sets 'up-list-function' for major modes > that have defined 'sexp-list' in 'treesit-thing-settings' to enable > the 'up-list' motion command. > > +*** New function 'treesit-show-paren-data'. > +Tree-sitter sets 'show-paren-data-function' to this function > +to support 'show-paren-mode'. This seems to describe the implementation details of what, from most users' point of view, will boil down to something like: Tree-sitter enabled modes now properly support show-paren-mode. Is that right? If so, maybe we should just say that instead?