From: "Drew Adams" <drew.adams@oracle.com>
To: "'Juri Linkov'" <juri@jurta.org>
Cc: 'Chong Yidong' <cyd@stupidchicken.com>, emacs-devel@gnu.org
Subject: RE: Rethinking count-words-region
Date: Sat, 8 Oct 2011 14:33:14 -0700 [thread overview]
Message-ID: <01645694DD8C49A7A4259D6FC1295552@us.oracle.com> (raw)
In-Reply-To: <87k48ftc9t.fsf@mail.jurta.org>
> A good way to make more available keybindings is to turn an
> existing key into the key prefix like:
>
> `M-= =' count-stats
> `M-= w' count-words
> `M-= l' count-lines
> `M-= c' count-chars
>
> `M-= r w' count-region-words
> `M-= r l' count-region-lines
> `M-= r c' count-region-chars
Not _that_ key (`M-='), anyway.
Which part of this did you not understand:
d> This is a waste of:
d> (a) a good, repeatable chord (just hold it down),
d> (b) one that is also usable in a terminal (via `ESC ='), and
d> (c) one that is mnemonic for lots of things that involve _equality_
d> or _comparison_. `=' is not mnemonic for _counting_ anything.
E.g., I personally use `C-=' as a prefix key, so I agree with you about the
value of that. But I use it for commands that _compare_ something:
C-= w compare-windows
C-= d diff
C-= f ediff-files
C-= e ediff-files
C-= b ediff-buffers
(And yes, I do feel wasteful that I use a repeatable key, `C-=', for commands
that do not take advantage of its repeatability. But anyway, those are my own
bindings, not default bindings for Emacs.)
Similarly, M-= would be something to use for a set of commands that compare
things or that otherwise involve equality. But certainly not for commands that
_count_.
FWIW, I'm not against a command that counts several different things at once. I
don't think it deserves/needs a default key binding, however - users can bind it
if they wish.
And I certainly don't think that we need to waste multiple key sequences, by
default, for various counting commands. (Seven key sequences!? Even on a
prefix key that's a waste.)
It's not just because we _can_ bind some key that we should or we have to. Far
from it. Leave `M-=' for a good future use. Leave it for users, for now.
Just one opinion, of course.
next prev parent reply other threads:[~2011-10-08 21:33 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-07 15:41 Rethinking count-words-region Chong Yidong
2011-10-07 16:46 ` Jambunathan K
2011-10-08 16:53 ` Chong Yidong
2011-10-08 18:00 ` Andreas Röhler
2011-10-07 18:08 ` Eli Zaretskii
2011-10-07 20:51 ` Chong Yidong
2011-10-07 20:55 ` Chong Yidong
2011-10-08 17:58 ` Andreas Röhler
2011-10-08 18:11 ` Drew Adams
2011-10-08 18:23 ` Chong Yidong
2011-10-08 18:25 ` Drew Adams
2011-10-08 18:29 ` Alan Mackenzie
2011-10-08 19:04 ` Lars Ingebrigtsen
2011-10-08 19:28 ` Juri Linkov
2011-10-08 18:40 ` Andreas Röhler
2011-10-08 6:22 ` Eli Zaretskii
2011-10-07 20:29 ` Andreas Röhler
2011-10-07 20:55 ` Alan Mackenzie
2011-10-08 16:52 ` Chong Yidong
2011-10-08 17:51 ` Andreas Röhler
2011-10-08 20:04 ` Juri Linkov
2011-10-08 20:46 ` Chong Yidong
2011-10-08 21:09 ` Juri Linkov
2011-10-08 20:49 ` Drew Adams
2011-10-08 21:12 ` Juri Linkov
2011-10-08 21:33 ` Drew Adams [this message]
2011-10-09 0:57 ` chad
2011-10-09 1:05 ` Drew Adams
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=01645694DD8C49A7A4259D6FC1295552@us.oracle.com \
--to=drew.adams@oracle.com \
--cc=cyd@stupidchicken.com \
--cc=emacs-devel@gnu.org \
--cc=juri@jurta.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.