unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Stefan Kangas <stefan@marxist.se>, 36922@debbugs.gnu.org
Subject: bug#36922: [PATCH] Add defalias toolbar-mode for tool-bar-mode
Date: Sun, 4 Aug 2019 19:23:36 -0700 (PDT)	[thread overview]
Message-ID: <415e3da4-1635-421d-bd04-08e6a824ef5b@default> (raw)
In-Reply-To: <CADwFkmkFb-WdLmMor7kzJTkduKw6v2BhV1bbjJJrbVP6Rq8m1g@mail.gmail.com>

> OK, so this is very minor, but:
> 
> 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".)
> 
> Both "toolbar" and "tool bar" are valid spellings AFAICT.
> 
> 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.





  reply	other threads:[~2019-08-05  2:23 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-04 17:41 bug#36922: [PATCH] Add defalias toolbar-mode for tool-bar-mode Stefan Kangas
2019-08-05  2:23 ` Drew Adams [this message]
2019-08-06 11:38   ` Stefan Kangas
2019-09-08 19:40     ` Stefan Kangas
2019-09-08 20:43       ` Juri Linkov
2019-09-08 20:57         ` Stefan Kangas
2019-09-08 21:58           ` Juri Linkov
2019-09-08 22:16             ` Stefan Kangas
2019-09-09 16:11       ` Eli Zaretskii
2019-09-09 17:19         ` Stefan Kangas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=415e3da4-1635-421d-bd04-08e6a824ef5b@default \
    --to=drew.adams@oracle.com \
    --cc=36922@debbugs.gnu.org \
    --cc=stefan@marxist.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).