From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#36922: [PATCH] Add defalias toolbar-mode for tool-bar-mode Date: Sun, 4 Aug 2019 19:23:36 -0700 (PDT) Message-ID: <415e3da4-1635-421d-bd04-08e6a824ef5b@default> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="41499"; mail-complaints-to="usenet@blaine.gmane.org" To: Stefan Kangas , 36922@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 05 04:24:09 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1huSfR-000AgW-Ev for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 Aug 2019 04:24:09 +0200 Original-Received: from localhost ([::1]:50330 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1huSfP-0005ZH-SZ for geb-bug-gnu-emacs@m.gmane.org; Sun, 04 Aug 2019 22:24:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51994) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1huSfL-0005Yt-HB for bug-gnu-emacs@gnu.org; Sun, 04 Aug 2019 22:24:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1huSfK-0005Zp-Gg for bug-gnu-emacs@gnu.org; Sun, 04 Aug 2019 22:24:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53838) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1huSfK-0005ZZ-Cn for bug-gnu-emacs@gnu.org; Sun, 04 Aug 2019 22:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1huSfK-0001m8-7H for bug-gnu-emacs@gnu.org; Sun, 04 Aug 2019 22:24:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Aug 2019 02:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36922 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 36922-submit@debbugs.gnu.org id=B36922.15649718286797 (code B ref 36922); Mon, 05 Aug 2019 02:24:02 +0000 Original-Received: (at 36922) by debbugs.gnu.org; 5 Aug 2019 02:23:48 +0000 Original-Received: from localhost ([127.0.0.1]:34426 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1huSf6-0001lY-5D for submit@debbugs.gnu.org; Sun, 04 Aug 2019 22:23:48 -0400 Original-Received: from aserp2120.oracle.com ([141.146.126.78]:38144) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1huSf3-0001lG-Iz for 36922@debbugs.gnu.org; Sun, 04 Aug 2019 22:23:46 -0400 Original-Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x752FtvA171403; Mon, 5 Aug 2019 02:23:39 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=Gyj0U3CyLR2L0lzRwFzGcJJI18bwBHWt3Ojbb6OJG7Q=; b=bN8nXDRXGVogO6SJX0J1rkL7J8DWivSz9BrgMDEs9fJC0D0QI3WXVH43otRsmuI7lU65 ePGPAVhQNHgTVpmbsOLGQmk/D556s5hd7raCzX76RQFSk66PUCx3ugnWoIr3A+ABKFxL RFMl9xqcSCYiZjvSspghz0asIT6lBmYrcl6xxLukfik2ME3D3vEVGZhhoXzWvrAPe2x+ 1LyFCAiNolxwr+VDlMY5qyaNFcBREhbVH//TdsuPlI4B62OGYve7vXEqRkYNMo0XSVLL YFu07ZG8b8FrGlPRscWhYdqbGtMM5c63+ci+4UXv7bcsma7+WbrbIOdB2jgIR0k6yp0a tg== Original-Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by aserp2120.oracle.com with ESMTP id 2u527pcefp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 05 Aug 2019 02:23:39 +0000 Original-Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x752MVnO167460; Mon, 5 Aug 2019 02:23:38 GMT Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userp3020.oracle.com with ESMTP id 2u51kkw0t7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 05 Aug 2019 02:23:38 +0000 Original-Received: from abhmp0020.oracle.com (abhmp0020.oracle.com [141.146.116.26]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x752NbB6009714; Mon, 5 Aug 2019 02:23:37 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4873.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9339 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1908050023 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9339 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1908050022 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:164607 Archived-At: > OK, so this is very minor, but: >=20 > I can never remember that it's called tool-bar-mode, and not toolbar- > mode. This > is not often an annoyance, but it hits me every time I'm on "emacs -Q" > or > similar. (I type "M-x toolb TAB TAB TAB", have a revelation and then, > "DEL -bar TAB".) >=20 > Both "toolbar" and "tool bar" are valid spellings AFAICT. >=20 > I suggest to introduce a new (defalias 'toolbar-mode 'tool-bar-mode) to > accommodate users who are used to either spelling. FWIW, I disagree that we should do this. We should pick one name and try to stick with it. We've picked one, I think (`tool-bar'). A quick count with stuff I've loaded shows ~4 times as many functions with `tool-bar' in the name as with `toolbar' in the name. So yeah, we have both. For `filename' vs `file-name' in function names, we have about twice as many of the latter, but, again, we have both. That's bad enough. Now imagine if we started aliasing all of those. And toolbar and filename are just the tip of the iceberg. Better to be pretty consistent in our names, and IF (big if) we end up with some inconsistency then either (1) fix it (renaming, deprecating old names, creating aliases for backward-compatibility) or (2) maybe build some tolerance of different forms into UI functions (e.g. reading function/variable names, apropos, help commands). Just one opinion.