From: Chong Yidong <cyd@gnu.org>
To: Ulrich Mueller <ulm@gentoo.org>
Cc: emacs-devel@gnu.org
Subject: Re: M-=
Date: Sun, 29 Jul 2012 11:33:09 +0800 [thread overview]
Message-ID: <87sjcbqm16.fsf@gnu.org> (raw)
In-Reply-To: <20498.29864.4168.252416@a1i15.kph.uni-mainz.de> (Ulrich Mueller's message of "Fri, 27 Jul 2012 12:59:52 +0200")
Ulrich Mueller <ulm@gentoo.org> writes:
> C-x C-u is another example that unconditionally acts on the region.
> (Please don't change this!)
Yes, upcase-region obviously falls in the category of commands which
would give annoying results if accidentally triggered on the whole
buffer. Counting words, on the other hand, doesn't.
> Also M-= was bound to count-lines-region (or later count-words-region)
> since Emacs 18 at least. OTOH, during all that time there wasn't any
> key that did this operation for the whole buffer. From that I conclude
> that it wasn't missed, otherwise a key binding would have been added.
If I'm not mistaken, counting words in the buffer was one of the more
commonly-requested commands on gnu.emacs.help.
But your argument that the change might be disruptive, because of how
long M-= has been around, is a fair one.
>> Another possibility is to keep M-= for count-words-region and assign
>> another convenient key to count-words. The obvious candidate is C-=,
>> but unfortunately it is not typable on text terminals.
>
> I wouldn't mind that. But how about M-+ ?
How about making C-u M-= (count-words-region with a prefix argument)
call count-words on the whole buffer?
This is a bit messy; as I said, it breaks consistency with the way other
commands handle active regions. But I guess it is better to not switch
things around on users, if there are indeed people who frequently use
M-=.
next prev parent reply other threads:[~2012-07-29 3:33 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-24 7:57 M-= Ulrich Mueller
2012-07-24 9:37 ` M-= Tassilo Horn
2012-07-24 10:13 ` M-= Ulrich Mueller
2012-07-24 10:28 ` M-= Tassilo Horn
2012-07-27 4:05 ` M-= Chong Yidong
2012-07-27 10:59 ` M-= Ulrich Mueller
2012-07-27 14:57 ` M-= Tassilo Horn
2012-07-27 16:24 ` M-= Ulrich Mueller
2012-07-27 17:32 ` M-= Tassilo Horn
2012-07-29 3:33 ` Chong Yidong [this message]
2012-07-27 17:30 ` M-= James Cloos
2012-07-27 19:02 ` M-= Andreas Röhler
-- strict thread matches above, loose matches on Subject: below --
2012-07-24 9:03 M-= Dmitry Gutov
2012-07-24 9:24 ` M-= Ulrich Mueller
2003-04-04 22:57 M-[ greg jednaszewski
2003-04-04 23:59 ` M-[ Barry Margolin
2003-04-07 17:40 ` M-[ Peter Lee
2003-04-07 18:14 ` M-[ Kevin Rodgers
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=87sjcbqm16.fsf@gnu.org \
--to=cyd@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=ulm@gentoo.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.