From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#63626: [PATCH] Make forward and backward-to-word arg optional Date: Sat, 27 May 2023 10:02:55 +0300 Message-ID: <837csujly8.fsf@gnu.org> References: <83zg5rjpyf.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10430"; mail-complaints-to="usenet@ciao.gmane.io" Cc: dalanicolai@gmail.com, 63626@debbugs.gnu.org To: Zaz Brown Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 27 09:03:30 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 1q2nxa-0002Tn-5c for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 27 May 2023 09:03:30 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q2nxA-00040T-Ee; Sat, 27 May 2023 03:03:04 -0400 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 1q2nx8-0003zA-V5 for bug-gnu-emacs@gnu.org; Sat, 27 May 2023 03:03:03 -0400 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 1q2nx8-0005t8-Eo for bug-gnu-emacs@gnu.org; Sat, 27 May 2023 03:03:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q2nx7-0003zQ-TA for bug-gnu-emacs@gnu.org; Sat, 27 May 2023 03:03:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 May 2023 07:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 63626-submit@debbugs.gnu.org id=B63626.168517097815326 (code B ref 63626); Sat, 27 May 2023 07:03:01 +0000 Original-Received: (at 63626) by debbugs.gnu.org; 27 May 2023 07:02:58 +0000 Original-Received: from localhost ([127.0.0.1]:51313 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q2nx3-0003z7-IJ for submit@debbugs.gnu.org; Sat, 27 May 2023 03:02:57 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:35988) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q2nx1-0003ys-1I for 63626@debbugs.gnu.org; Sat, 27 May 2023 03:02:55 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q2nwu-0005rj-CP; Sat, 27 May 2023 03:02:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=HKXIFuKpIzBd2Q8q+Na0BT5cIkIjrXWIHzqa+Q5OZFs=; b=Gi+qqVbLxfe0 tp/0lp4lm1aayvwMgMezCHMweU/xuXrF8n8jtdfhn9GlgIGskReFQ+JKhlhPV0I10lxNi8yx3dER6 F+mpD4DM72oXsijWK4K3Fdp/9j1hRqQHibDiQnvwjuL+HtCldx/PJVbEZoqMNOOIBlaw0N21h24c3 /GDiyNzQTg0qumcu/VCsNwnf3KtAk+skLKTNjxy2zyLjWjiKpt792b8G5feqadCA3O6mxXz3ENkdl er96nkOTOxjgs6FSArlJ7AwRYDceTM0ecdpiqZp+X/ldT38SUVU0xEomUNnpkT1wbpfbUmg2fg+Ye HKVNE6kcZD1DtG3Mdy1Uug==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q2nwT-00058M-7a; Sat, 27 May 2023 03:02:48 -0400 In-Reply-To: (message from Zaz Brown on Fri, 26 May 2023 12:54:19 -0700) 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:262467 Archived-At: [Please use Reply All to reply, to keep everyone on the CC list.] > From: Zaz Brown > Date: Fri, 26 May 2023 12:54:19 -0700 > > It's more convenient to be able to use forward-to-word without the > argument. For example, this would allow passing the function > forward-to-word without having to use a lambda. > > Most importantly, though, the current definition of forward-to-word > does not match the doc string. The doc string implies that with no > argument, it goes forward 1 word. And this has already caused > confusion. The doc string says "with argument", most probably meaning "with prefix numeric argument". IOW, it talks about interactive invocation. In any case, the doc string is easy to fix/clarify. But I'm still not convinced we need to change the signature of the function. What are the use cases where you'd want to pass forward-to-word as a function argument to another function?