From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#60623: 30.0.50; Add forward-sentence with tree sitter support Date: Mon, 09 Jan 2023 01:20:50 -0500 Message-ID: References: <87o7ratva2.fsf@thornhill.no> <86bkn9whgl.fsf@mail.linkov.net> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3453"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: "casouri@gmail.com" , "60623@debbugs.gnu.org" <60623@debbugs.gnu.org>, Theodor Thornhill , "eliz@gnu.org" , Juri Linkov To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 09 07:22:33 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 1pElYH-0000il-6J for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 09 Jan 2023 07:22:33 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pElXx-0004aN-MW; Mon, 09 Jan 2023 01:22:13 -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 1pElXn-0004Zw-Ap for bug-gnu-emacs@gnu.org; Mon, 09 Jan 2023 01:22: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 1pElXm-0004p1-5D for bug-gnu-emacs@gnu.org; Mon, 09 Jan 2023 01:22:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pElXl-0001wf-QO for bug-gnu-emacs@gnu.org; Mon, 09 Jan 2023 01:22:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 Jan 2023 06:22:01 +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.16732452637412 (code B ref 60623); Mon, 09 Jan 2023 06:22:01 +0000 Original-Received: (at 60623) by debbugs.gnu.org; 9 Jan 2023 06:21:03 +0000 Original-Received: from localhost ([127.0.0.1]:35606 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pElWp-0001vU-59 for submit@debbugs.gnu.org; Mon, 09 Jan 2023 01:21:03 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:37671) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pElWl-0001uc-ER for 60623@debbugs.gnu.org; Mon, 09 Jan 2023 01:21:02 -0500 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 1324A440617; Mon, 9 Jan 2023 01:20:54 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 5EA3E4404AD; Mon, 9 Jan 2023 01:20:52 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1673245252; bh=LAp6EA/J2fkgqCecfQc4qqk6D5jAXldG6qFd/9BgKK8=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=PNoyMr/IXh/r+i+ZaO4MSxTADSuLmFqD+mkP/ySCOn3OeQjJ5d+sZLJpPKMVnbvgE AbIMZ4Jot5p90gMKZ5XX07xUam1Mxu9zwtIPmuVZn6KYuqLpKsbcP4GeacGsFtp8Al koQbpCdr855o/YHhbHmj4/IItmha5TKOjr0TRiBW283ePKFwtCztVp82mQ8AtZx0lt cpq4icVK/joLzi5nYK0TrsTWkv0h9i3vldRw7YrFWwRSjb0RdzDGXnjLnpgQLxxgUJ dNk+w6VHZVNhtg2PwmINzwXZux9NqjbfNPsSC8GW/eTCoPbLjRefJQOaGldGjUcLh0 6QZLyBh+oXrJQ== Original-Received: from pastel (unknown [45.72.200.228]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id E3F20120CC5; Mon, 9 Jan 2023 01:20:51 -0500 (EST) In-Reply-To: (Drew Adams's message of "Sun, 8 Jan 2023 16:41:05 +0000") 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:252987 Archived-At: > Exactly. IMO, if the variable can have a > nonfunction value, especially nil, then Bad idea. That precludes changing the value of the variable with `add-function`, whereas `add-function` is often the best way for a major/minor mode to change that variable (actually, the "only" way to do it with some hope that it will interact correctly with other modes that may change it as well). > there's no need (nothing gained, and even possible > confusion/misunderstanding added) by adding "-default-" to the name. Instead we should strive to make the name of the default function simply irrelevant. If all goes well, nobody should ever need to explicitly call "the default value" of that variable. Instead the function they added via `add-function` will receive the "previous" value as argument. > On the other hand, if the value must always be a function, then having > "-default-" in the name makes sense. Agreed. It's also helpful when you look at the var's value, it lets you know that it hasn't been modified. Stefan