From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Rethinking count-words-region Date: Fri, 07 Oct 2011 20:08:10 +0200 Message-ID: <83ty7kfzed.fsf@gnu.org> References: <87vcs0q05l.fsf@stupidchicken.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1318010900 19097 80.91.229.12 (7 Oct 2011 18:08:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 7 Oct 2011 18:08:20 +0000 (UTC) Cc: emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 07 20:08:16 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 1RCEqD-00005w-ML for ged-emacs-devel@m.gmane.org; Fri, 07 Oct 2011 20:08:13 +0200 Original-Received: from localhost ([::1]:43630 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RCEqC-0000Ca-Rd for ged-emacs-devel@m.gmane.org; Fri, 07 Oct 2011 14:08:12 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:34605) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RCEqA-0000CS-7k for emacs-devel@gnu.org; Fri, 07 Oct 2011 14:08:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RCEq9-0003pU-7P for emacs-devel@gnu.org; Fri, 07 Oct 2011 14:08:10 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:50776) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RCEq9-0003k7-11 for emacs-devel@gnu.org; Fri, 07 Oct 2011 14:08:09 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LSP00900JI9UD00@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Fri, 07 Oct 2011 20:08:07 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.124.91.138]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LSP0092DJPI5OD0@a-mtaout20.012.net.il>; Fri, 07 Oct 2011 20:08:07 +0200 (IST) In-reply-to: <87vcs0q05l.fsf@stupidchicken.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.166 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:144710 Archived-At: > From: Chong Yidong > Date: Fri, 07 Oct 2011 11:41:42 -0400 > > The command `count-words-region', newly introduced for Emacs 24, is > inconsistent with the pre-existing `count-lines-region'. If no region > is active, the former reports the number of words in the buffer > (implemented in Bug#9429). The latter always reports the number of > lines in the region, whether or not it is active. > > The two ought to be consistent. The behavior of `count-words-region' is > the better one, I think, even if adopting it incurs some backward > incompatibility. What will such a change do to those who (like yours truly) disable transient-mark-mode, which AFAIK means the region is never active? I do want to be able to count lines (if not words) in the region. At the very least, the command should behave like before if transient-mark-mode is disabled.