From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: dalanicolai Newsgroups: gmane.emacs.bugs Subject: bug#63626: [PATCH] Make forward and backward-to-word arg optional Date: Mon, 29 May 2023 17:24:14 +0200 Message-ID: References: <83zg5rjpyf.fsf@gnu.org> <837csujly8.fsf@gnu.org> <83ttvxhw6y.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000093a11c05fcd6aeb6" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26374"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Zaz Brown , 63626@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 29 17:25:15 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 1q3ekF-0006i1-92 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 29 May 2023 17:25:15 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q3ek3-0004mF-GO; Mon, 29 May 2023 11:25:03 -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 1q3ek2-0004m2-KJ for bug-gnu-emacs@gnu.org; Mon, 29 May 2023 11:25:02 -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 1q3ek2-0005p9-Cd for bug-gnu-emacs@gnu.org; Mon, 29 May 2023 11:25:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q3ek2-0002WF-84 for bug-gnu-emacs@gnu.org; Mon, 29 May 2023 11:25:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: dalanicolai Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 29 May 2023 15:25:02 +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.16853738749635 (code B ref 63626); Mon, 29 May 2023 15:25:02 +0000 Original-Received: (at 63626) by debbugs.gnu.org; 29 May 2023 15:24:34 +0000 Original-Received: from localhost ([127.0.0.1]:58909 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q3ejZ-0002VL-LI for submit@debbugs.gnu.org; Mon, 29 May 2023 11:24:33 -0400 Original-Received: from mail-wm1-f48.google.com ([209.85.128.48]:58628) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q3ejX-0002V5-L7 for 63626@debbugs.gnu.org; Mon, 29 May 2023 11:24:32 -0400 Original-Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-3f6e68cc738so22578635e9.1 for <63626@debbugs.gnu.org>; Mon, 29 May 2023 08:24:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685373866; x=1687965866; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Bc70R+GRoHwvV2hKMRggjVtIOmyrEqxuVEgzGRZk7P0=; b=Mnf4SYm57QryHWv1uRqaRPDakgKmInw5WrcFSeStg3MFlkpv4+a34NYA3wHAujx2Yi mfKtcgRvGDUZ9CsVsdlnro31UOuw5UGc7Co7Y6tP+uT/VSG1Cmf9RzutWX7HHiHhi2Mc 3bP8C2huOrFqGjyON0rqODiidla22gd8wm9K7KevQKpJTyEwgkBNkka3gduPhZuuToH0 z04cAAFglnOXG/pyLcEBaY7vctWMlHLKFG76hXqLxy1HHqs1jXXikdc+0CWZk4JIU258 Z2fVkqC2Vum3kuqTtVU6Y9RITYkVNYfjS6/EMpoc4YmxHwVD92vPs5L62OZrxFJBQuAN DToA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685373866; x=1687965866; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Bc70R+GRoHwvV2hKMRggjVtIOmyrEqxuVEgzGRZk7P0=; b=h4TFOJKRhCKVptvTa4xQCzI8GBqkd3S+xyEv5eFfS6+kcZM07YW73eW6lMxQRJol15 6YngUuYNRVvTuPBYZ0jaNxRJ3BEcjv2xeOec3sJQGjNgbPH8pJa9LkxtHTmeM7/jaJW0 62a/+06nY+t7vD9f6jM75MZcX9VCMK3bsUJqI8FALgyrYmdnIkUOEjnft7KR5ooCOvgC 3ZzfS4FLA8nlTZjZDTEuOFUXoySS1EsFf8v5JCXRY6u0tMzudBR9G90QCgL4at0YT/8S 44NcegHfrIxVxgc/BtbdXsQY39Zn8mUbABJlk0xTdUB15+VPI6iLpvgBoE9GcufynID7 PifQ== X-Gm-Message-State: AC+VfDzmoG1Hyqnyf14V9yLEAxaC/rujFcMCOJfNRlumdcbSLBxO8dFO pCbC9XmWsL62SkQyaJJsAvlbZFry3sJBqE4pRPnB8Q8UZ4kh7g== X-Google-Smtp-Source: ACHHUZ7iZq91Jt9g75uuPlR1aYzwIaHKo7TM+8FVGE4r0adHOj5oV/wh+3B7ECU7FdvTCfQjSq1smEj68ho2olk6JYw= X-Received: by 2002:a7b:c449:0:b0:3f6:7e6:44ea with SMTP id l9-20020a7bc449000000b003f607e644eamr9750698wmi.18.1685373865663; Mon, 29 May 2023 08:24:25 -0700 (PDT) In-Reply-To: <83ttvxhw6y.fsf@gnu.org> 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:262593 Archived-At: --00000000000093a11c05fcd6aeb6 Content-Type: text/plain; charset="UTF-8" I have no opinion about how this 'should work'. I was just confused by the docstring, and I assumed from the docstring, that the intention was for the argument to be optional like in forward-word/line (the docstring does not say that this command is meant for interactive use only). My idea was just to report this very low priority issue about the 'confusing' docstring (and ask if maybe that argument was intended to be optional). Here is the motive for this patch. It is used in an evil function, so I guess we could just have used `evil-forward-WORD-begin` instead, and it is not necessary to change the `forward-to-word` function. --00000000000093a11c05fcd6aeb6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I have no opinion about how this 'should work'= ;.
I was just confused by the docstring, and I assumed from t= he docstring,
that the intention was for the argument to be optio= nal like in forward-word/line
(the docstring does not say that th= is command is meant for interactive use only).

My = idea was just to report this very low priority issue about the 'confusi= ng' docstring
(and ask if maybe that argument was intended to= be optional).

Here is the motive for this patch. It is used in= an evil function, so I guess we could
just have used `evil-forwa= rd-WORD-begin` instead, and it is not necessary to change
the `fo= rward-to-word` function.


--00000000000093a11c05fcd6aeb6--