From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: Rethinking count-words-region Date: Sat, 8 Oct 2011 14:33:14 -0700 Message-ID: <01645694DD8C49A7A4259D6FC1295552@us.oracle.com> References: <87vcs0q05l.fsf@stupidchicken.com><87d3e75st9.fsf@stupidchicken.com> <87r52nw7cx.fsf@mail.jurta.org> <87k48ftc9t.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1318109617 20049 80.91.229.12 (8 Oct 2011 21:33:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 8 Oct 2011 21:33:37 +0000 (UTC) Cc: 'Chong Yidong' , emacs-devel@gnu.org To: "'Juri Linkov'" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 08 23:33:32 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RCeWS-0004ar-1x for ged-emacs-devel@m.gmane.org; Sat, 08 Oct 2011 23:33:32 +0200 Original-Received: from localhost ([::1]:33164 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RCeWR-00060m-Ih for ged-emacs-devel@m.gmane.org; Sat, 08 Oct 2011 17:33:31 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:51043) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RCeWL-0005z1-M1 for emacs-devel@gnu.org; Sat, 08 Oct 2011 17:33:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RCeWI-0007vY-OO for emacs-devel@gnu.org; Sat, 08 Oct 2011 17:33:25 -0400 Original-Received: from rcsinet15.oracle.com ([148.87.113.117]:46122) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RCeWI-0007vM-95 for emacs-devel@gnu.org; Sat, 08 Oct 2011 17:33:22 -0400 Original-Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by rcsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id p98LXINe002588 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 8 Oct 2011 21:33:20 GMT Original-Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p98LXIK7003852 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 8 Oct 2011 21:33:18 GMT Original-Received: from abhmt117.oracle.com (abhmt117.oracle.com [141.146.116.69]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p98LXCZb018597; Sat, 8 Oct 2011 16:33:12 -0500 Original-Received: from dradamslap1 (/10.159.53.18) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 08 Oct 2011 14:33:12 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <87k48ftc9t.fsf@mail.jurta.org> Thread-Index: AcyF/+wHVBgNxz2kRZ6YeukbCDaHUwAAE8oA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6109 X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090205.4E90C1A0.00D5:SCFMA922111,ss=1,re=-4.000,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 148.87.113.117 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:144771 Archived-At: > 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.