From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#60623: 30.0.50; Add forward-sentence with tree sitter support Date: Mon, 09 Jan 2023 09:49:55 +0200 Organization: LINKOV.NET Message-ID: <86o7r86tho.fsf@mail.linkov.net> References: <87o7ratva2.fsf@thornhill.no> <86bkn9whgl.fsf@mail.linkov.net> <86k01xue5z.fsf@mail.linkov.net> <878ricu941.fsf@thornhill.no> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12839"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) Cc: "60623@debbugs.gnu.org" <60623@debbugs.gnu.org>, "casouri@gmail.com" , "eliz@gnu.org" , Drew Adams , "monnier@iro.umontreal.ca" To: Theodor Thornhill Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 09 08:57:26 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 1pEn26-00039f-EK for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 09 Jan 2023 08:57:26 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pEn1r-0005Nc-0R; Mon, 09 Jan 2023 02:57:11 -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 1pEn1j-0005NI-4G for bug-gnu-emacs@gnu.org; Mon, 09 Jan 2023 02:57:03 -0500 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 1pEn1i-0007Am-HQ for bug-gnu-emacs@gnu.org; Mon, 09 Jan 2023 02:57:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pEn1i-0004RI-7b for bug-gnu-emacs@gnu.org; Mon, 09 Jan 2023 02:57:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 Jan 2023 07:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60623 X-GNU-PR-Package: emacs Original-Received: via spool by 60623-submit@debbugs.gnu.org id=B60623.167325096916990 (code B ref 60623); Mon, 09 Jan 2023 07:57:02 +0000 Original-Received: (at 60623) by debbugs.gnu.org; 9 Jan 2023 07:56:09 +0000 Original-Received: from localhost ([127.0.0.1]:35681 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pEn0r-0004Py-DM for submit@debbugs.gnu.org; Mon, 09 Jan 2023 02:56:09 -0500 Original-Received: from relay8-d.mail.gandi.net ([217.70.183.201]:43457) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pEn0n-0004PS-Ps for 60623@debbugs.gnu.org; Mon, 09 Jan 2023 02:56:08 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 8657C1BF209; Mon, 9 Jan 2023 07:55:54 +0000 (UTC) In-Reply-To: <878ricu941.fsf@thornhill.no> (Theodor Thornhill's message of "Sun, 08 Jan 2023 20:19:58 +0100") 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:252994 Archived-At: >>> So is this to be considered an improvement to forward-sexp too, then? >> >> Sorry, I can't find where a lambda is set to forward-sexp-function. >> I only see this: >> >> (defvar forward-sexp-function nil >> >> But if it will be set to a function later, it would be nice >> to define a default function as well. > > I meant the way we did with 'transpose-sexps', where there now is a > 'transpose-sexps-function' variable containing the factored-out earlier > implementation. And by if "this is an improvement" I meant declaring a > specific defun as the default value for the defvar in question. Maybe I > should add the same change which is now developing here there too. > > What do you think? I agree that 'transpose-sexps-function' could benefit from the same improvement.