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: Rethinking count-words-region Date: Fri, 07 Oct 2011 16:51:19 -0400 Message-ID: <874nzk5xvc.fsf@stupidchicken.com> References: <87vcs0q05l.fsf@stupidchicken.com> <83ty7kfzed.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1318020692 21184 80.91.229.12 (7 Oct 2011 20:51:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 7 Oct 2011 20:51:32 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 07 22:51:26 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 1RCHOA-0005U8-1S for ged-emacs-devel@m.gmane.org; Fri, 07 Oct 2011 22:51:26 +0200 Original-Received: from localhost ([::1]:38755 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RCHO9-000734-Ik for ged-emacs-devel@m.gmane.org; Fri, 07 Oct 2011 16:51:25 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:52253) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RCHO6-00072v-Q1 for emacs-devel@gnu.org; Fri, 07 Oct 2011 16:51:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RCHO5-0007YG-Oo for emacs-devel@gnu.org; Fri, 07 Oct 2011 16:51:22 -0400 Original-Received: from vm-emlprdomr-02.its.yale.edu ([130.132.50.143]:59263) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RCHO4-0007Xa-I6; Fri, 07 Oct 2011 16:51:20 -0400 Original-Received: from furball (dhcp-128-36-14-81.central.yale.edu [128.36.14.81]) (authenticated bits=0) by vm-emlprdomr-02.its.yale.edu (8.14.4/8.14.4) with ESMTP id p97KpJVC000744 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Fri, 7 Oct 2011 16:51:19 -0400 In-Reply-To: <83ty7kfzed.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 07 Oct 2011 20:08:10 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) X-Scanned-By: MIMEDefang 2.71 on 130.132.50.143 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 130.132.50.143 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:144722 Archived-At: Eli Zaretskii writes: > 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. On reflection, I think the Bug#9429 change to count-words-region is misguided. If we want to be consistent with other parts of Emacs, like ispell-word/ispell-region, we need two separate commands: - A count-*-region command that counts in the region, using (interactive "r"). Even if Transient Mark mode is active and the region is not active, it counts in the inactive region. This is like ispell-region. - A count-* command that usually counts in the buffer. If use-region-p, it counts in the region. This is like ispell-word.