From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#25439: [External] : Re: bug#40460: 26.3; Make arg of `forward-whitespace' and `forward-symbol' optional Date: Mon, 1 Mar 2021 16:12:06 +0000 Message-ID: References: <218b8b86-40aa-4f43-b967-31a6759db97d@default> <87r1ky51gp.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33636"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "25439@debbugs.gnu.org" <25439@debbugs.gnu.org>, "40460@debbugs.gnu.org" <40460@debbugs.gnu.org> To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 01 17:16:11 2021 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 1lGlDP-0008cA-Br for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 01 Mar 2021 17:16:11 +0100 Original-Received: from localhost ([::1]:49548 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lGlDO-0005wN-7i for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 01 Mar 2021 11:16:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44242) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lGlAL-0002IO-VE for bug-gnu-emacs@gnu.org; Mon, 01 Mar 2021 11:13:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39014) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lGlAL-0003XU-OG for bug-gnu-emacs@gnu.org; Mon, 01 Mar 2021 11:13:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lGlAL-0003yq-Jy for bug-gnu-emacs@gnu.org; Mon, 01 Mar 2021 11:13:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 01 Mar 2021 16:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25439 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: wontfix Original-Received: via spool by 25439-submit@debbugs.gnu.org id=B25439.161461513915246 (code B ref 25439); Mon, 01 Mar 2021 16:13:01 +0000 Original-Received: (at 25439) by debbugs.gnu.org; 1 Mar 2021 16:12:19 +0000 Original-Received: from localhost ([127.0.0.1]:50558 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lGl9f-0003xp-AJ for submit@debbugs.gnu.org; Mon, 01 Mar 2021 11:12:19 -0500 Original-Received: from userp2130.oracle.com ([156.151.31.86]:54460) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lGl9d-0003xY-IW; Mon, 01 Mar 2021 11:12:18 -0500 Original-Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 121G9ah5003112; Mon, 1 Mar 2021 16:12:09 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2020-01-29; bh=lIN2zq+HHqqrDRZw4chzVteICo6eqQqIlzDzutxbW+o=; b=jZSkoyMF5xAr74EK5zZuRpPYFLAr3HLxY9VorL/FRJIhdjInGxcPfO2ZTykZwHnLlx84 GtZu6RTbepkTAwhDrmeVeQMEjbh/FQ1y+UmXfjZco3fYyTjOl9BYAaXlcIFR+sRGLoVi HGU7a0/zYOge27U1qQEAnpZEXSqRnCycobMLi8YwqLW7ztu7WYulO4ObD2hkdruXIZ6D smodAgoN3OPwTPE1WrmTXUB/Zcai8rsfESlhR2Og+ebzGe9/tAuLRPu33ZoeFMJIN05h y3/0xrA1I+hM/nYvAKKXaG57r7DshwLxFdgVKKCoVFeWpt83pUjCm8cZFoNR6sqWfq7B Pw== Original-Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by userp2130.oracle.com with ESMTP id 36ydgr4fd1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 01 Mar 2021 16:12:09 +0000 Original-Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 121GArB0010533; Mon, 1 Mar 2021 16:12:09 GMT Original-Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2175.outbound.protection.outlook.com [104.47.59.175]) by userp3030.oracle.com with ESMTP id 37000vrsf1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 01 Mar 2021 16:12:08 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=U64xRe+9XfjWQgKClS1by1tPLJB8nrigleOnI4vIDjOgNEax5WdiQaJmi85jzgcVXmLswYibFUy3xtT4LqA1athkcn90SkTl1Z5hG+BhJyw9YPl2r74xK0n6EB85YJyzEqEHLKerSmHvNFg6x99quQg80WlcgvnCDOOLuykupoeFPcrHmQVxuw7Y3kSxQi7icYZrdXxnF8vaI7/vrB5Auwvj+AHq7vmoNrq5oDeoIEOBIGD83ZXDyBiFcXpSv1SpHHK5McUqwjg9h8KZSvL2FpN1/OJSjC035p9jY/iz++03eRV2DEuv8aVWF9M+hw8XGhIGeDPq3qQFLHq5t/MpyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lIN2zq+HHqqrDRZw4chzVteICo6eqQqIlzDzutxbW+o=; b=Zy8sUC4Up3iomqqOdzEB/5xTg1zGPsDdUDP7eSkiOgk5FVfHsv6coSjBP7COFby4AmpL3Z4zq9jwJL8124+brxH760ekwWK6JfOMzI2+8UqLg7SyWg6N3CRu5OAT25VH47MZw5q8iZ0Lr94Ao+BfBTVUWFZa/F4VTYJjl+pJIteboVudGaPcrAyqw/KLSXZyLX/XO5pgJMwe7KRW+MFD8nFDX+qBO4xYzztx97TVrmIvhJfXk/MFEnIx9WdwZkkw5fqe1Jg2R/7Avugbi4hAeKzjLUgjQCGV82e3V07SfksvArvR3vgkJ3xOlEgz30B7EWVElRzYK/yIL3Vt4UQSGg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lIN2zq+HHqqrDRZw4chzVteICo6eqQqIlzDzutxbW+o=; b=KIETdVdX5J4kEgiu/BWjlYgERSwANO/G2UOw5K9oUA3cEG8DVwHMQTaG8yAhPoQbKkS4NpxZHikrvaH8m2MWAx8yVG1W8AaLQpYyVlqcEwoyGJzdC3vJjCmM7nZQ0ZYCce8sgLYvdt8y8SrdTRG/XcLe+1lqkptxQwJKR+gyOww= Original-Received: from SA2PR10MB4474.namprd10.prod.outlook.com (2603:10b6:806:11b::15) by SN6PR10MB2799.namprd10.prod.outlook.com (2603:10b6:805:d9::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3890.23; Mon, 1 Mar 2021 16:12:06 +0000 Original-Received: from SA2PR10MB4474.namprd10.prod.outlook.com ([fe80::b8d2:db6d:3e4b:d315]) by SA2PR10MB4474.namprd10.prod.outlook.com ([fe80::b8d2:db6d:3e4b:d315%5]) with mapi id 15.20.3890.028; Mon, 1 Mar 2021 16:12:06 +0000 Thread-Topic: [External] : Re: bug#40460: 26.3; Make arg of `forward-whitespace' and `forward-symbol' optional Thread-Index: AQHXDrDq1Xs/c1Z0dkywiIVxOalIkqpvStFw In-Reply-To: <87r1ky51gp.fsf@gnus.org> Accept-Language: en-US Content-Language: en-US authentication-results: gnus.org; dkim=none (message not signed) header.d=none;gnus.org; dmarc=none action=none header.from=oracle.com; x-originating-ip: [73.170.83.28] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 409135c4-23b0-4fd2-f5e6-08d8dcccc295 x-ms-traffictypediagnostic: SN6PR10MB2799: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: T/7y0wn6VxqX5pmT+/Lux+zdg00tMJvKZPCb8B0yJ+V1nNqruwSDhYSpprjpS+z1ZSz/Ws1rzHDwVgW/ft5rpK5bsheSbroJADTnQgk8UPAYqBPd66wp2cgyTKj38ZYEk1rjdLBMru/1GPaBMjXf8EI1YlRduBL7jQ3acad4SIBFsQpfkkPB5YeEzNtN4s9n8dtVAaZIrfRFeTXFc1vtPINet+cuOn9nAZuBQ0PdcaFW3G0kq3EAUeWMX71mzQ9ErRS9ZRZGaAtdAy8CwjNS60AqV+CFXI1YQv0yCtcy4o99n/FBB0kJA5xnokVb7mgEv/8ZvBzDr+LxamoaJHvimWepvG0I4GhdMPb8CYA6nytdp/r8eZHf+s3Y0jmpx0cH1er9Um52xgtHnNgy621R9tAa+2UaKvNXi5cPcdkXGQxBfT8NBbRnMOg1Y16FRbNgmJFCuYm3HyrhYlslef15KMeIF2ExAiD75FrvjOvWGpobCNdAdR6chou7akyb3LmjrDuYr+FVVHsTqL35X/Pj//GGG7z2kcneZxKkMBLXSJNb5dHbCYGl9/E2D6bV6NCQ x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SA2PR10MB4474.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(39860400002)(136003)(346002)(396003)(376002)(44832011)(6506007)(8936002)(33656002)(6916009)(7696005)(54906003)(186003)(26005)(316002)(8676002)(86362001)(2906002)(66556008)(76116006)(66946007)(5660300002)(9686003)(66476007)(66446008)(478600001)(55016002)(52536014)(71200400001)(4326008)(64756008)(81973001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: iL2tanZ7ZXZu3aALoMWpu7j9zZV8hoRDhCKTs5WSP+dR2WOw2dQmuZ+UqjAWoGvm+Mtcnp8fFYn0PGGPaWNx/No3GyT2BUPq3Iod8UfQL4Bmoe/qrA0Naqz4vPUHRtA1/vI29m9f9i3FyJUoyW01+r7DL8XTXxxiGDeiCZjqFWWLQytZ8MbrXvMGHJfNj8gtGerfki/9FQ1fSMPpAm0WslUwhLrKle0K2tHU/pQoHCulYmFBykUeqwD3BElOjak6x6DO+EfdA1QK//EGXUxdf+Z/HEY2RGhYlGCwnTnHFRdUu+HOsJOtAdyRiJuNLWA9ZGXbyaFS55spsXVT+qCr2nx61R0Eh0NFzyAWBnJdNSRRKb/u4oq8HSU55WTbmDGeYSxfZNDgPhE20mGZVqQH1Z7Jxx7X6T6fSmkcVSzLWIEVDjMAtWUA+bnEo+F4r+s/Z1Wh7pkDcxn/lxR3AgYlzPDH5MrePEFU7hDb1xwfNJfEfuNup5MpGbv4rjMItHgXZMxH1NFvXXc+CXYEjf8gbdprBP6A4OcqV4SRLYzH0Qgvc8GcZPWyJYOWCYA+VBIPRINKzqHe4/gFm48GpS9BUB4rubInAU1BPCL6HQwGpH94AHWZWIRwL1pchs8+7o6N+HJ0/MIWSBpbPYNprWkkGybE3iyvc6S0sG8PNhWczL9DpxcMZwh9KtyuLxlry63mspRcCSBNCyxsE0ClgY6BC+vvOt2hYy4KchJuhukjeUksC7m17D6qmtmz+L8m +0abiVUPWpRi58GBITc9HdpfvCRyGEJ1GROK3Pj+X3R1JFGBU8imKJdmOB8XFoCEwukj6Zxz3m1nRx0/N4yo+0tMEpaMBGbcZQ x-ms-exchange-transport-forked: True X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SA2PR10MB4474.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 409135c4-23b0-4fd2-f5e6-08d8dcccc295 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Mar 2021 16:12:06.8762 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: HZyDZAktlHZqFJL2s7Aty5bMeIBHveTVP3w+dFbHQxmjxhl45hlCTB+pLNcPmcMsHT0C/8hoAIPp9MNVoLtryQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR10MB2799 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9910 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 mlxscore=0 phishscore=0 malwarescore=0 spamscore=0 mlxlogscore=999 suspectscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2103010133 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9910 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 adultscore=0 impostorscore=0 clxscore=1011 suspectscore=0 malwarescore=0 priorityscore=1501 mlxscore=0 phishscore=0 bulkscore=0 mlxlogscore=999 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2103010133 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" Xref: news.gmane.io gmane.emacs.bugs:201119 Archived-At: > > The numeric argument to most `forward-*' commands is optional, > > defaulting to 1. This should be the case in general. These three > > commands require their ARG, but they should not. It should be > > optional and default to 1. > > > > `forward-button' > > `forward-symbol' > > `forward-whitespace' >=20 > It's true that this is somewhat inconsistent -- but I also think it's a > mistake that the other `forward-*' functions have an optional argument. Why do you think so? It's not just vanilla Emacs that defines `forward-*' commands. Users are encouraged to do so as well. The point of thingatpt.el (as one example) is to leverage `forward-*' functions to identify things at point. If 3rd-party code and users define `forward-*' functions they get free support for identifying the `*' things from `thingatpt.el'. So it's important that a convention be more or less followed in the definition of `forward-*' commands. And yes, defaulting to 1 is exactly what Emacs does, for all kinds of motion (and other!) commands. Why have `interactive' default but not also let Elisp calls default? For Lisp, defaulting means the arg is optional. This is exactly what Emacs does for this kind of thing. It always has, since Day One. There's an inconsistency here, and instead of fixing it - the right way (to fit the rest of Emacs) or even the wrong way (to fit what you apparently think is better - no defaulting), you prefer to keep the inconsistency. The question is why? > So I don't think making these follow that pattern is a move in the > right direction, and I'm closing this bug report. The question is why you don't think following the Emacs pattern is right.