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: Fri, 27 Jul 2012 12:05:09 +0800 Message-ID: <87obn13l3e.fsf@gnu.org> References: <20494.21864.117259.772610@a1i15.kph.uni-mainz.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1343361924 22178 80.91.229.3 (27 Jul 2012 04:05:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 27 Jul 2012 04:05:24 +0000 (UTC) Cc: emacs-devel@gnu.org To: Ulrich Mueller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 27 06:05:24 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 1Subnl-0001kf-R9 for ged-emacs-devel@m.gmane.org; Fri, 27 Jul 2012 06:05:21 +0200 Original-Received: from localhost ([::1]:41171 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Subnl-0007pV-3G for ged-emacs-devel@m.gmane.org; Fri, 27 Jul 2012 00:05:21 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52968) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Subni-0007pO-Ix for emacs-devel@gnu.org; Fri, 27 Jul 2012 00:05:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Subnh-0000op-CB for emacs-devel@gnu.org; Fri, 27 Jul 2012 00:05:18 -0400 Original-Received: from mail-pb0-f41.google.com ([209.85.160.41]:60559) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Subnh-0000od-69 for emacs-devel@gnu.org; Fri, 27 Jul 2012 00:05:17 -0400 Original-Received: by pbbrp2 with SMTP id rp2so4762856pbb.0 for ; Thu, 26 Jul 2012 21:05:15 -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=98tHDxq/nw7kglzlG7tEmTr/bvKBM1vOHftAtQa9JzU=; b=E96eUbsi9B/XH3qmiBMU6aFF0mzR9OJCIyCFlTSJ4LNRgiVEeFb8OV6HjKInttFpwL Ciq7hYLi6LgCMF+8MS/D4nGsytf/segkP6rdFz2UJ5uP8Qdh1XmKM9khZva60DxH603u yqes1Hf3dh1Te48ULgZUxBOBCOfROztK58jD2hTrcAqKuS2kpKwEhPnvXbwsTtTnFhTs YNHXdsYBiCVDfDqWsRoVtRLUd7QqMWGyvXcahFYFjSgR/U60B1Q5eJheFEqcw+i9E6Ic 6yI3rgkwUA6Ef3XI9raK+1pqSRFXP17M16rjpP1pfH93BpBjL7avHynaQ+SNQqOkGQPJ GkbQ== Original-Received: by 10.68.116.203 with SMTP id jy11mr10128689pbb.129.1343361915313; Thu, 26 Jul 2012 21:05:15 -0700 (PDT) Original-Received: from ulysses ([155.69.17.114]) by mx.google.com with ESMTPS id pq5sm1030050pbb.30.2012.07.26.21.05.12 (version=SSLv3 cipher=OTHER); Thu, 26 Jul 2012 21:05:14 -0700 (PDT) In-Reply-To: <20494.21864.117259.772610@a1i15.kph.uni-mainz.de> (Ulrich Mueller's message of "Tue, 24 Jul 2012 09:57:28 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (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:151898 Archived-At: Ulrich Mueller writes: > I've noticed that M-= is no longer operating on the region but on the > whole buffer (i.e. it is bound to count-words instead of > count-words-region). > > The old behaviour was established for decades and I found it much more > useful. Can we please have it back? I made the change because it seemed like a fairly straightforward improvement, but if the old behavior is generally preferred or the change is found to be too disruptive, we can certainly revert it. The rule of thumb is that when transient mark mode is enabled, commands that are bound to convenient keys ought to act on the region if it is active, and some other convenient unit of text otherwise. Examples of this behavior are M-; and M-$. There are exceptions: C-w and M-w always act on the region, because yanking the whole buffer is a relatively rare operation, and has annoying results if you accidentally trigger it. Counting words seems like it should fall in the former category (together with M-; and M-$) rather than the latter (with C-w and M-w). But maybe you can explain otherwise? 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.