From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: M-= Date: Sun, 29 Jul 2012 11:33:09 +0800 Message-ID: <87sjcbqm16.fsf@gnu.org> References: <20494.21864.117259.772610@a1i15.kph.uni-mainz.de> <87obn13l3e.fsf@gnu.org> <20498.29864.4168.252416@a1i15.kph.uni-mainz.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1343532799 23091 80.91.229.3 (29 Jul 2012 03:33:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 29 Jul 2012 03:33:19 +0000 (UTC) Cc: emacs-devel@gnu.org To: Ulrich Mueller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 29 05:33:20 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SvKFr-0000Tv-Gb for ged-emacs-devel@m.gmane.org; Sun, 29 Jul 2012 05:33:19 +0200 Original-Received: from localhost ([::1]:56106 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SvKFq-0005hd-LO for ged-emacs-devel@m.gmane.org; Sat, 28 Jul 2012 23:33:18 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40392) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SvKFn-0005hN-T4 for emacs-devel@gnu.org; Sat, 28 Jul 2012 23:33:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SvKFm-00024W-Na for emacs-devel@gnu.org; Sat, 28 Jul 2012 23:33:15 -0400 Original-Received: from mail-pb0-f41.google.com ([209.85.160.41]:64270) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SvKFm-00024O-Fh for emacs-devel@gnu.org; Sat, 28 Jul 2012 23:33:14 -0400 Original-Received: by pbbrp2 with SMTP id rp2so8377170pbb.0 for ; Sat, 28 Jul 2012 20:33:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=L1UiwCwa5rxLqBoZHTIFF9yg1J8bNXKqx0gkvmysg8w=; b=DvHsJ8DYz786TYuFM5mkN6xGxC2fgBjgWRv/Q1mU+mkUHMiVdMCOua8O86jIoqKeHC r1phCFphPQhcwBjNWigZSbPBzc9+X0cEqJ9UE8/0V6gMXpmzEtvffgok9jlZBhh65UVz 4w1tiP3eSLo1o6GSySflTRl8iN+nyrmgVk9v3bOPLPPXwYt1Ge4Xc5crJxQ21K2s2KxL gw+VHn34RUvGyPKNBwtPQo2wXSs3tSHkn1dtnPeD8622vlaE0pZAFln/rzNb/8sID9Oz Dayqkz0lFK8fIfH8FE2kGqgyhD2YlpdWdJk+aJ7Ntwsn+ci0YVClbHBX2GUmbeu8NdK9 YGHg== Original-Received: by 10.68.194.4 with SMTP id hs4mr24759995pbc.128.1343532793463; Sat, 28 Jul 2012 20:33:13 -0700 (PDT) Original-Received: from ulysses (cm162.gamma80.maxonline.com.sg. [202.156.80.162]) by mx.google.com with ESMTPS id rx7sm5057516pbc.64.2012.07.28.20.33.11 (version=SSLv3 cipher=OTHER); Sat, 28 Jul 2012 20:33:12 -0700 (PDT) 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") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.160.41 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:151947 Archived-At: Ulrich Mueller 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-=.