GNU bug report logs - #9959
24.0.90; `count-words' command from a narrowed buffer

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: Dani Moncayo <dmoncayo@HIDDEN>; dated Sat, 5 Nov 2011 10:32:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Severity set to 'wishlist' from 'minor' Request was from Chong Yidong <cyd@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 9959 <at> debbugs.gnu.org:


Received: (at 9959) by debbugs.gnu.org; 18 Jul 2012 14:38:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jul 18 10:38:54 2012
Received: from localhost ([127.0.0.1]:48592 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1SrVOv-0004jk-RT
	for submit <at> debbugs.gnu.org; Wed, 18 Jul 2012 10:38:54 -0400
Received: from mail-pb0-f44.google.com ([209.85.160.44]:41579)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <seewhydee@HIDDEN>) id 1SrVOt-0004jc-NB
	for 9959 <at> debbugs.gnu.org; Wed, 18 Jul 2012 10:38:52 -0400
Received: by pbcwy7 with SMTP id wy7so2592499pbc.3
	for <9959 <at> debbugs.gnu.org>; Wed, 18 Jul 2012 07:32:44 -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=qn1+1irBOHG2sSg/1AUR67VzrSgMlEPIdpZLqsbCui8=;
	b=pSLu7weE5uXHhWv1kaBNrVSLW6smK2YnsM/AP0654Sg0Ku38RLCSKvOrIwgqCt+G9X
	gxkpbrmBoU65zyEmF1UcbVko7GoPYFvVqTzNxeOh0/p18pI9Afz+VWgqnkRh/ElAWjoW
	9LMImnOjGVBdH6hNlzYS7rgEg4st4aq/nKrmBL5Q1mdxBlb3MXaqeBba6zXZ21lv8Bpr
	KO+4XOrrTy3JXsVa3YsxOmniacJvpWp3am9B0AWNPJ+BBtRkd4d3ag4n9DSWjC71lm8F
	FV0aEuPA/iKGp9Qc54kxIzTr8gAihFLU89K0j4qUL+imiun5pRaZV8T5fq8zLg3L8fJl
	T/lw==
Received: by 10.68.217.40 with SMTP id ov8mr7873909pbc.131.1342621964786;
	Wed, 18 Jul 2012 07:32:44 -0700 (PDT)
Received: from ulysses (cm162.gamma80.maxonline.com.sg. [202.156.80.162])
	by mx.google.com with ESMTPS id of1sm16313547pbb.15.2012.07.18.07.32.41
	(version=SSLv3 cipher=OTHER); Wed, 18 Jul 2012 07:32:43 -0700 (PDT)
From: Chong Yidong <cyd@HIDDEN>
To: Kevin Rodgers <kevin.d.rodgers@HIDDEN>
Subject: Re: bug#9959: 24.0.90; `count-words' command from a narrowed buffer
References: <CAH8Pv0hqx_rRW+M=Ww-8SDT+WwO-pDQeygK8PxZVmWF0v0yQdg@HIDDEN>
	<87aa89uwfp.fsf@HIDDEN>
	<92DCBADB54F446EF9E76A3A6E723C239@HIDDEN>
	<j9d04n$aoq$1@HIDDEN>
Date: Wed, 18 Jul 2012 22:32:38 +0800
In-Reply-To: <j9d04n$aoq$1@HIDDEN> (Kevin Rodgers's message of "Tue, 
	08 Nov 2011 21:39:06 -0700")
Message-ID: <87txx52l89.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.6 (--)
X-Debbugs-Envelope-To: 9959
Cc: 9959 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.6 (--)

Kevin Rodgers <kevin.d.rodgers@HIDDEN> writes:

> On 11/6/11 8:34 AM, Drew Adams wrote:
>
>> Or maybe both counts could be shown, making it a bit clearer what the info is?
>> "Buffer (restriction): 1135 (112) lines, 6894 (673) words, 70452
>> (6074) chars".
>> And in that case, maybe "Buffer (narrowed)..." would be better.  Another
>> possibility (shorter):
>>
>>   Narrowed/total: 112/1135 lines, 673/6894 words, 6074/70452 chars
>
> If I've narrowed a very large buffer to a small region, I am not interested in
> the counts for the entire buffer nor willing to wait for them.

Agreed.  I committed the simplest version, i.e. reporting "Narrowed part
of buffer" in the message.  I'll leave this open in case as a wishlist
item; if anyone wants to implement the more complicated reporting with
C-u, feel free.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#9959; Package emacs. Full text available.

Message received at 9959 <at> debbugs.gnu.org:


Received: (at 9959) by debbugs.gnu.org; 9 Nov 2011 16:51:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 09 11:51:36 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ROBN9-0003Ag-W1
	for submit <at> debbugs.gnu.org; Wed, 09 Nov 2011 11:51:36 -0500
Received: from acsinet15.oracle.com ([141.146.126.227])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <drew.adams@HIDDEN>) id 1ROBN7-0003AU-W9
	for 9959 <at> debbugs.gnu.org; Wed, 09 Nov 2011 11:51:34 -0500
Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238])
	by acsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id
	pA9GpLLd021363
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Wed, 9 Nov 2011 16:51:22 GMT
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
	pA9GpLPc007356
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
	Wed, 9 Nov 2011 16:51:21 GMT
Received: from abhmt106.oracle.com (abhmt106.oracle.com [141.146.116.58])
	by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id
	pA9GpFD7020157; Wed, 9 Nov 2011 10:51:15 -0600
Received: from dradamslap1 (/130.35.178.194)
	by default (Oracle Beehive Gateway v4.0)
	with ESMTP ; Wed, 09 Nov 2011 08:51:15 -0800
From: "Drew Adams" <drew.adams@HIDDEN>
To: "'Juri Linkov'" <juri@HIDDEN>
References: <CAH8Pv0hqx_rRW+M=Ww-8SDT+WwO-pDQeygK8PxZVmWF0v0yQdg@HIDDEN><87aa89uwfp.fsf@HIDDEN><92DCBADB54F446EF9E76A3A6E723C239@HIDDEN><j9d04n$aoq$1@HIDDEN><09E90207C2FB4EBAA78235DA57686D17@HIDDEN><650AF62C3EAD4BD288F25EF97505DE69@HIDDEN>
	<87obwlntge.fsf@HIDDEN>
Subject: RE: bug#9959: 24.0.90; `count-words' command from a narrowed buffer
Date: Wed, 9 Nov 2011 08:51:15 -0800
Message-ID: <C4724B038C7B45A3B9C3D3E681B128AC@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <87obwlntge.fsf@HIDDEN>
Thread-Index: Acye/g1dvu3MrhEwTsK02mt6wyXPyAAAQNSg
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.0A020209.4EBAAF8A.0139,ss=1,re=0.000,fgs=0
X-Spam-Score: -6.2 (------)
X-Debbugs-Envelope-To: 9959
Cc: 'Kevin Rodgers' <kevin.d.rodgers@HIDDEN>, 9959 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.2 (------)

> > Another possibility: Do as we do with `apropos' commands.  
> > We have both a prefix arg and a user option,
> > `apropos-do-all', that affect the behavior, with the less
> > complete, and faster, behavior as the default.
> 
> Or

It's not an "or" - the two are orthogonal (except for key binding
choice/conflict).  I was talking about how much info is shown.  You're talking
about where the info is displayed.

The `apropos' approach is good because it lets users define a personal
preference that might be for seeing more info (=t), yet it also lets users
change the behavior on the fly using a prefix arg.

> do as we do with `what-cursor-position' (`C-x =') that 
> prints info in the echo area, but with prefix argument shows
> full details in *Help* buffer.

I don't see the output of even the full info as being something voluminous,
necessitating *Help*.  But perhaps you had something more in mind.  The info
we've discussed so far should be OK for the minibuffer.





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#9959; Package emacs. Full text available.

Message received at 9959 <at> debbugs.gnu.org:


Received: (at 9959) by debbugs.gnu.org; 9 Nov 2011 16:38:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 09 11:38:49 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ROBAm-0002sj-Qd
	for submit <at> debbugs.gnu.org; Wed, 09 Nov 2011 11:38:49 -0500
Received: from smarty.dreamhost.com ([208.113.175.8])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <juri@HIDDEN>) id 1ROBAj-0002sa-ET
	for 9959 <at> debbugs.gnu.org; Wed, 09 Nov 2011 11:38:46 -0500
Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105])
	by smarty.dreamhost.com (Postfix) with ESMTP id D750C6E8077;
	Wed,  9 Nov 2011 08:38:38 -0800 (PST)
Received: from localhost (ps18281.dreamhostps.com [69.163.218.105])
	by ps18281.dreamhostps.com (Postfix) with ESMTP id 54640451C560;
	Wed,  9 Nov 2011 08:38:36 -0800 (PST)
From: Juri Linkov <juri@HIDDEN>
To: "Drew Adams" <drew.adams@HIDDEN>
Subject: Re: bug#9959: 24.0.90; `count-words' command from a narrowed buffer
Organization: JURTA
References: <CAH8Pv0hqx_rRW+M=Ww-8SDT+WwO-pDQeygK8PxZVmWF0v0yQdg@HIDDEN>
	<87aa89uwfp.fsf@HIDDEN>
	<92DCBADB54F446EF9E76A3A6E723C239@HIDDEN>
	<j9d04n$aoq$1@HIDDEN>
	<09E90207C2FB4EBAA78235DA57686D17@HIDDEN>
	<650AF62C3EAD4BD288F25EF97505DE69@HIDDEN>
Date: Wed, 09 Nov 2011 18:36:49 +0200
In-Reply-To: <650AF62C3EAD4BD288F25EF97505DE69@HIDDEN> (Drew Adams's
	message of "Wed, 9 Nov 2011 08:01:53 -0800")
Message-ID: <87obwlntge.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.91 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.7 (--)
X-Debbugs-Envelope-To: 9959
Cc: 'Kevin Rodgers' <kevin.d.rodgers@HIDDEN>, 9959 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.7 (--)

> Another possibility: Do as we do with `apropos' commands.  We have both a prefix
> arg and a user option, `apropos-do-all', that affect the behavior, with the less
> complete, and faster, behavior as the default.

Or do as we do with `what-cursor-position' (`C-x =') that prints info in
the echo area, but with prefix argument shows full details in *Help* buffer.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#9959; Package emacs. Full text available.

Message received at 9959 <at> debbugs.gnu.org:


Received: (at 9959) by debbugs.gnu.org; 9 Nov 2011 16:02:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 09 11:02:15 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ROAbO-00023m-Vg
	for submit <at> debbugs.gnu.org; Wed, 09 Nov 2011 11:02:15 -0500
Received: from acsinet15.oracle.com ([141.146.126.227])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <drew.adams@HIDDEN>) id 1ROAbM-00023a-Uf
	for 9959 <at> debbugs.gnu.org; Wed, 09 Nov 2011 11:02:13 -0500
Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237])
	by acsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id
	pA9G20JW016210
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Wed, 9 Nov 2011 16:02:00 GMT
Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157])
	by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id
	pA9G1xeF011234
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
	Wed, 9 Nov 2011 16:02:00 GMT
Received: from abhmt105.oracle.com (abhmt105.oracle.com [141.146.116.57])
	by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id
	pA9G1stH012340; Wed, 9 Nov 2011 10:01:54 -0600
Received: from dradamslap1 (/130.35.178.194)
	by default (Oracle Beehive Gateway v4.0)
	with ESMTP ; Wed, 09 Nov 2011 08:01:54 -0800
From: "Drew Adams" <drew.adams@HIDDEN>
To: "'Kevin Rodgers'" <kevin.d.rodgers@HIDDEN>, <9959 <at> debbugs.gnu.org>
References: <CAH8Pv0hqx_rRW+M=Ww-8SDT+WwO-pDQeygK8PxZVmWF0v0yQdg@HIDDEN>	<87aa89uwfp.fsf@HIDDEN><92DCBADB54F446EF9E76A3A6E723C239@HIDDEN><j9d04n$aoq$1@HIDDEN>
	<09E90207C2FB4EBAA78235DA57686D17@HIDDEN>
Subject: RE: bug#9959: 24.0.90; `count-words' command from a narrowed buffer
Date: Wed, 9 Nov 2011 08:01:53 -0800
Message-ID: <650AF62C3EAD4BD288F25EF97505DE69@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <09E90207C2FB4EBAA78235DA57686D17@HIDDEN>
Thread-Index: AcyemawDDtoJ40P5QleS9b02oWfFtwAVofrQAAIbtPA=
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6109
X-Source-IP: acsinet21.oracle.com [141.146.126.237]
X-Auth-Type: Internal IP
X-CT-RefId: str=0001.0A090205.4EBAA3F9.011F,ss=1,re=0.000,fgs=0
X-Spam-Score: -6.2 (------)
X-Debbugs-Envelope-To: 9959
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.2 (------)

> > If I've narrowed a very large buffer to a small region, I am 
> > not interested in the counts for the entire buffer nor
> > willing to wait for them.
> 
> Yes, that's the cost of such combining.
> 
> Possible solutions include (a) adding separate commands for 
> individual pieces of
> the combination and (b) finding a way (e.g. prefix arg) to 
> specify interactively
> to this command that you want only one or two pieces of info, 
> not everything.

Another possibility: Do as we do with `apropos' commands.  We have both a prefix
arg and a user option, `apropos-do-all', that affect the behavior, with the less
complete, and faster, behavior as the default.





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#9959; Package emacs. Full text available.

Message received at 9959 <at> debbugs.gnu.org:


Received: (at 9959) by debbugs.gnu.org; 9 Nov 2011 15:06:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 09 10:06:09 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RO9j6-0008TI-MF
	for submit <at> debbugs.gnu.org; Wed, 09 Nov 2011 10:06:08 -0500
Received: from rcsinet15.oracle.com ([148.87.113.117])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <drew.adams@HIDDEN>) id 1RO9j5-0008Sw-6h
	for 9959 <at> debbugs.gnu.org; Wed, 09 Nov 2011 10:06:08 -0500
Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93])
	by rcsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id
	pA9F5tR6030380
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Wed, 9 Nov 2011 15:05:55 GMT
Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158])
	by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id
	pA9F5rCx003497
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
	Wed, 9 Nov 2011 15:05:54 GMT
Received: from abhmt119.oracle.com (abhmt119.oracle.com [141.146.116.71])
	by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id
	pA9F5mBn025575; Wed, 9 Nov 2011 09:05:48 -0600
Received: from dradamslap1 (/10.159.62.197)
	by default (Oracle Beehive Gateway v4.0)
	with ESMTP ; Wed, 09 Nov 2011 07:05:47 -0800
From: "Drew Adams" <drew.adams@HIDDEN>
To: "'Kevin Rodgers'" <kevin.d.rodgers@HIDDEN>, <9959 <at> debbugs.gnu.org>
References: <CAH8Pv0hqx_rRW+M=Ww-8SDT+WwO-pDQeygK8PxZVmWF0v0yQdg@HIDDEN>	<87aa89uwfp.fsf@HIDDEN><92DCBADB54F446EF9E76A3A6E723C239@HIDDEN>
	<j9d04n$aoq$1@HIDDEN>
Subject: RE: bug#9959: 24.0.90; `count-words' command from a narrowed buffer
Date: Wed, 9 Nov 2011 07:05:43 -0800
Message-ID: <09E90207C2FB4EBAA78235DA57686D17@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <j9d04n$aoq$1@HIDDEN>
Thread-Index: AcyemawDDtoJ40P5QleS9b02oWfFtwAVofrQ
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6109
X-Source-IP: ucsinet21.oracle.com [156.151.31.93]
X-CT-RefId: str=0001.0A090209.4EBA96D4.001D,ss=1,re=0.000,fgs=0
X-Spam-Score: -6.2 (------)
X-Debbugs-Envelope-To: 9959
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.2 (------)

> If I've narrowed a very large buffer to a small region, I am 
> not interested in the counts for the entire buffer nor
> willing to wait for them.

Yes, that's the cost of such combining.

Possible solutions include (a) adding separate commands for individual pieces of
the combination and (b) finding a way (e.g. prefix arg) to specify interactively
to this command that you want only one or two pieces of info, not everything.





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#9959; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 9 Nov 2011 04:39:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 08 23:39:20 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RNzwW-000216-8P
	for submit <at> debbugs.gnu.org; Tue, 08 Nov 2011 23:39:20 -0500
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1RNzwS-00020s-Ss
	for submit <at> debbugs.gnu.org; Tue, 08 Nov 2011 23:39:18 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1RNzwK-0007t3-Ck
	for submit <at> debbugs.gnu.org; Tue, 08 Nov 2011 23:39:09 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD autolearn=unavailable version=3.3.1
Received: from lists.gnu.org ([140.186.70.17]:38448)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1RNzwK-0007st-BI
	for submit <at> debbugs.gnu.org; Tue, 08 Nov 2011 23:39:08 -0500
Received: from eggs.gnu.org ([140.186.70.92]:37695)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1RNzwF-0000dY-H7
	for bug-gnu-emacs@HIDDEN; Tue, 08 Nov 2011 23:39:08 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1RNzwE-0007sa-Lm
	for bug-gnu-emacs@HIDDEN; Tue, 08 Nov 2011 23:39:03 -0500
Received: from lo.gmane.org ([80.91.229.12]:53206)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1RNzwE-0007sU-Gf
	for bug-gnu-emacs@HIDDEN; Tue, 08 Nov 2011 23:39:02 -0500
Received: from list by lo.gmane.org with local (Exim 4.69)
	(envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1RNzwC-00082a-J0
	for bug-gnu-emacs@HIDDEN; Wed, 09 Nov 2011 05:39:00 +0100
Received: from c-71-237-25-24.hsd1.co.comcast.net ([71.237.25.24])
	by main.gmane.org with esmtp (Gmexim 0.1 (Debian))
	id 1AlnuQ-0007hv-00
	for <bug-gnu-emacs@HIDDEN>; Wed, 09 Nov 2011 05:39:00 +0100
Received: from kevin.d.rodgers by c-71-237-25-24.hsd1.co.comcast.net with
	local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00
	for <bug-gnu-emacs@HIDDEN>; Wed, 09 Nov 2011 05:39:00 +0100
X-Injected-Via-Gmane: http://gmane.org/
To: bug-gnu-emacs@HIDDEN
From: Kevin Rodgers <kevin.d.rodgers@HIDDEN>
Subject: Re: bug#9959: 24.0.90; `count-words' command from a narrowed buffer
Date: Tue, 08 Nov 2011 21:39:06 -0700
Lines: 15
Message-ID: <j9d04n$aoq$1@HIDDEN>
References: <CAH8Pv0hqx_rRW+M=Ww-8SDT+WwO-pDQeygK8PxZVmWF0v0yQdg@HIDDEN>	<87aa89uwfp.fsf@HIDDEN>
	<92DCBADB54F446EF9E76A3A6E723C239@HIDDEN>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: usenet@HIDDEN
X-Gmane-NNTP-Posting-Host: c-71-237-25-24.hsd1.co.comcast.net
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US;
	rv:1.9.2.23) Gecko/20110920 Thunderbird/3.1.15
In-Reply-To: <92DCBADB54F446EF9E76A3A6E723C239@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.17
X-Spam-Score: -5.7 (-----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -5.7 (-----)

On 11/6/11 8:34 AM, Drew Adams wrote:

> Or maybe both counts could be shown, making it a bit clearer what the info is?
> "Buffer (restriction): 1135 (112) lines, 6894 (673) words, 70452 (6074) chars".
> And in that case, maybe "Buffer (narrowed)..." would be better.  Another
> possibility (shorter):
>
>   Narrowed/total: 112/1135 lines, 673/6894 words, 6074/70452 chars

If I've narrowed a very large buffer to a small region, I am not interested in
the counts for the entire buffer nor willing to wait for them.

-- 
Kevin Rodgers
Denver, Colorado, USA





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#9959; Package emacs. Full text available.

Message received at 9959 <at> debbugs.gnu.org:


Received: (at 9959) by debbugs.gnu.org; 6 Nov 2011 17:33:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Nov 06 12:33:33 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RN6b6-0001Oj-Km
	for submit <at> debbugs.gnu.org; Sun, 06 Nov 2011 12:33:33 -0500
Received: from rcsinet15.oracle.com ([148.87.113.117])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <drew.adams@HIDDEN>) id 1RN6b4-0001Ob-J0
	for 9959 <at> debbugs.gnu.org; Sun, 06 Nov 2011 12:33:31 -0500
Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237])
	by rcsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id
	pA6HUgn0021432
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Sun, 6 Nov 2011 17:30:42 GMT
Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156])
	by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id
	pA6HUfS2018256
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
	Sun, 6 Nov 2011 17:30:41 GMT
Received: from abhmt120.oracle.com (abhmt120.oracle.com [141.146.116.72])
	by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id
	pA6HUa9i022559; Sun, 6 Nov 2011 11:30:36 -0600
Received: from dradamslap1 (/10.159.37.242)
	by default (Oracle Beehive Gateway v4.0)
	with ESMTP ; Sun, 06 Nov 2011 09:30:35 -0800
From: "Drew Adams" <drew.adams@HIDDEN>
To: "'Juri Linkov'" <juri@HIDDEN>
References: <CAH8Pv0hqx_rRW+M=Ww-8SDT+WwO-pDQeygK8PxZVmWF0v0yQdg@HIDDEN><87aa89uwfp.fsf@HIDDEN><92DCBADB54F446EF9E76A3A6E723C239@HIDDEN>
	<87d3d5qkmg.fsf@HIDDEN>
Subject: RE: bug#9959: 24.0.90; `count-words' command from a narrowed buffer
Date: Sun, 6 Nov 2011 09:30:31 -0800
Message-ID: <44F9ACBCF1F645D28F3E74F86FCD4515@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <87d3d5qkmg.fsf@HIDDEN>
Thread-Index: AcycoZiNerIiHln/Swq5jh3fRRmK4gABplMw
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6109
X-Source-IP: acsinet21.oracle.com [141.146.126.237]
X-Auth-Type: Internal IP
X-CT-RefId: str=0001.0A090207.4EB6C443.0021,ss=1,re=0.000,fgs=0
X-Spam-Score: -6.2 (------)
X-Debbugs-Envelope-To: 9959
Cc: 9959 <at> debbugs.gnu.org, 'Dani Moncayo' <dmoncayo@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.2 (------)

> >  Narrowed/total: 112/1135 lines, 673/6894 words, 6074/70452 chars
> 
> This format is nice because it's compact.  Perhaps 
> information about the region should be added too when
> the region is active:
> 
> Region/narrowed/total: 5/112/1135 lines, 8/673/6894 words, 
> 45/6074/70452 chars

I assume you mean only in the case where the buffer is narrowed and you have an
active region within the restriction.

That would be OK.  But keep in mind that your example uses a small region and
restriction.  In general, the message could be a bit long.  With the same buffer
size, the message could have up to an additional 12 chars.

(The length wouldn't be a problem for me, because my minibuffer frame is as wide
as my screen, and I don't mind if a message wraps.  Just mentioning the
possibility.)





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#9959; Package emacs. Full text available.

Message received at 9959 <at> debbugs.gnu.org:


Received: (at 9959) by debbugs.gnu.org; 6 Nov 2011 16:34:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Nov 06 11:34:36 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RN5g4-00006f-Lc
	for submit <at> debbugs.gnu.org; Sun, 06 Nov 2011 11:34:36 -0500
Received: from smarty.dreamhost.com ([208.113.175.8])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <juri@HIDDEN>) id 1RN5g3-00006Y-8S
	for 9959 <at> debbugs.gnu.org; Sun, 06 Nov 2011 11:34:36 -0500
Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105])
	by smarty.dreamhost.com (Postfix) with ESMTP id AF0D36E805D;
	Sun,  6 Nov 2011 08:31:47 -0800 (PST)
Received: from localhost (ps18281.dreamhostps.com [69.163.218.105])
	by ps18281.dreamhostps.com (Postfix) with ESMTP id A7954451C024;
	Sun,  6 Nov 2011 08:31:46 -0800 (PST)
From: Juri Linkov <juri@HIDDEN>
To: "Drew Adams" <drew.adams@HIDDEN>
Subject: Re: bug#9959: 24.0.90; `count-words' command from a narrowed buffer
Organization: JURTA
References: <CAH8Pv0hqx_rRW+M=Ww-8SDT+WwO-pDQeygK8PxZVmWF0v0yQdg@HIDDEN>
	<87aa89uwfp.fsf@HIDDEN>
	<92DCBADB54F446EF9E76A3A6E723C239@HIDDEN>
Date: Sun, 06 Nov 2011 18:30:15 +0200
In-Reply-To: <92DCBADB54F446EF9E76A3A6E723C239@HIDDEN> (Drew Adams's
	message of "Sun, 6 Nov 2011 07:34:58 -0800")
Message-ID: <87d3d5qkmg.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.91 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.7 (--)
X-Debbugs-Envelope-To: 9959
Cc: 9959 <at> debbugs.gnu.org, 'Dani Moncayo' <dmoncayo@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.7 (--)

>  Narrowed/total: 112/1135 lines, 673/6894 words, 6074/70452 chars

This format is nice because it's compact.  Perhaps information about the
region should be added too when the region is active:

Region/narrowed/total: 5/112/1135 lines, 8/673/6894 words, 45/6074/70452 chars




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#9959; Package emacs. Full text available.

Message received at 9959 <at> debbugs.gnu.org:


Received: (at 9959) by debbugs.gnu.org; 6 Nov 2011 15:38:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Nov 06 10:38:00 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RN4nI-0006Xc-2S
	for submit <at> debbugs.gnu.org; Sun, 06 Nov 2011 10:38:00 -0500
Received: from rcsinet15.oracle.com ([148.87.113.117])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <drew.adams@HIDDEN>) id 1RN4nG-0006XV-8g
	for 9959 <at> debbugs.gnu.org; Sun, 06 Nov 2011 10:37:59 -0500
Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93])
	by rcsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id
	pA6FZ9bZ010622
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Sun, 6 Nov 2011 15:35:10 GMT
Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157])
	by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id
	pA6FZ9AS005943
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
	Sun, 6 Nov 2011 15:35:09 GMT
Received: from abhmt104.oracle.com (abhmt104.oracle.com [141.146.116.56])
	by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id
	pA6FZ37v020184; Sun, 6 Nov 2011 09:35:03 -0600
Received: from dradamslap1 (/10.159.37.242)
	by default (Oracle Beehive Gateway v4.0)
	with ESMTP ; Sun, 06 Nov 2011 07:35:03 -0800
From: "Drew Adams" <drew.adams@HIDDEN>
To: "'Juri Linkov'" <juri@HIDDEN>, "'Dani Moncayo'" <dmoncayo@HIDDEN>
References: <CAH8Pv0hqx_rRW+M=Ww-8SDT+WwO-pDQeygK8PxZVmWF0v0yQdg@HIDDEN>
	<87aa89uwfp.fsf@HIDDEN>
Subject: RE: bug#9959: 24.0.90; `count-words' command from a narrowed buffer
Date: Sun, 6 Nov 2011 07:34:58 -0800
Message-ID: <92DCBADB54F446EF9E76A3A6E723C239@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <87aa89uwfp.fsf@HIDDEN>
Thread-Index: AcycloBknsExZlxMRFKpIaJ34wzADgAAYT4A
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6109
X-Source-IP: ucsinet21.oracle.com [156.151.31.93]
X-CT-RefId: str=0001.0A090209.4EB6A92F.000A,ss=1,re=0.000,fgs=0
X-Spam-Score: -6.2 (------)
X-Debbugs-Envelope-To: 9959
Cc: 9959 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.2 (------)

> > The message should begin with something like
> > "Buffer (narrowed part) has ...".
> 
> Like `C-x =' displays information about a narrowed buffer
> in angle brackets `<...>', `count-words' could do the same
> and display both widened and narrowed counts.

FWIW, in Emacs generally, "buffer (narrowed part)" is referred to as the buffer
"restriction".

But I'm not sure that users unfamiliar with the term would understand it
immediately in a prompt.  Same potential problem with an unexplained convention
such as `<...>'.  I don't have a better suggestion, however.  So far, I'd lean
toward, "Buffer restriction has 112 lines, 673 words, 6074 chars"

Or maybe both counts could be shown, making it a bit clearer what the info is?
"Buffer (restriction): 1135 (112) lines, 6894 (673) words, 70452 (6074) chars".
And in that case, maybe "Buffer (narrowed)..." would be better.  Another
possibility (shorter):

 Narrowed/total: 112/1135 lines, 673/6894 words, 6074/70452 chars





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#9959; Package emacs. Full text available.

Message received at 9959 <at> debbugs.gnu.org:


Received: (at 9959) by debbugs.gnu.org; 6 Nov 2011 15:14:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Nov 06 10:14:52 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RN4Qu-00061v-OV
	for submit <at> debbugs.gnu.org; Sun, 06 Nov 2011 10:14:52 -0500
Received: from smarty.dreamhost.com ([208.113.175.8])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <juri@HIDDEN>) id 1RN4Qs-00061k-Ny
	for 9959 <at> debbugs.gnu.org; Sun, 06 Nov 2011 10:14:51 -0500
Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105])
	by smarty.dreamhost.com (Postfix) with ESMTP id F1E086E8098;
	Sun,  6 Nov 2011 07:12:03 -0800 (PST)
Received: from localhost (ps18281.dreamhostps.com [69.163.218.105])
	by ps18281.dreamhostps.com (Postfix) with ESMTP id 1EEF3451C024;
	Sun,  6 Nov 2011 07:12:02 -0800 (PST)
From: Juri Linkov <juri@HIDDEN>
To: Dani Moncayo <dmoncayo@HIDDEN>
Subject: Re: bug#9959: 24.0.90; `count-words' command from a narrowed buffer
Organization: JURTA
References: <CAH8Pv0hqx_rRW+M=Ww-8SDT+WwO-pDQeygK8PxZVmWF0v0yQdg@HIDDEN>
Date: Sun, 06 Nov 2011 17:01:30 +0200
In-Reply-To: <CAH8Pv0hqx_rRW+M=Ww-8SDT+WwO-pDQeygK8PxZVmWF0v0yQdg@HIDDEN>
	(Dani Moncayo's message of "Sat, 5 Nov 2011 11:28:57 +0100")
Message-ID: <87aa89uwfp.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.91 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.7 (--)
X-Debbugs-Envelope-To: 9959
Cc: 9959 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.7 (--)

> Try the `count-words' command from a narrowed buffer (without active region).
>
> The message displayed in the echo area is "Buffer has X lines, Y
> words, and Z characters.", where the values X, Y and Z are actually
> computed for the narrowed portion (not for the entire buffer).
>
> So, this is inaccurate.  The message should begin with something like
> "Buffer (narrowed part) has ...".

Like `C-x =' displays information about a narrowed buffer
in angle brackets `<...>', `count-words' could do the same
and display both widened and narrowed counts.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#9959; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 5 Nov 2011 10:31:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Nov 05 06:31:48 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RMdXM-0000Tq-AA
	for submit <at> debbugs.gnu.org; Sat, 05 Nov 2011 06:31:47 -0400
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <dmoncayo@HIDDEN>) id 1RMdXJ-0000Ti-1S
	for submit <at> debbugs.gnu.org; Sat, 05 Nov 2011 06:31:42 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <dmoncayo@HIDDEN>) id 1RMdUi-0006WJ-Dy
	for submit <at> debbugs.gnu.org; Sat, 05 Nov 2011 06:29:01 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	RCVD_IN_DNSWL_LOW,T_DKIM_INVALID autolearn=unavailable version=3.3.1
Received: from lists.gnu.org ([140.186.70.17]:46968)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <dmoncayo@HIDDEN>) id 1RMdUi-0006WF-CY
	for submit <at> debbugs.gnu.org; Sat, 05 Nov 2011 06:29:00 -0400
Received: from eggs.gnu.org ([140.186.70.92]:44840)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <dmoncayo@HIDDEN>) id 1RMdUh-0004BH-C5
	for bug-gnu-emacs@HIDDEN; Sat, 05 Nov 2011 06:29:00 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <dmoncayo@HIDDEN>) id 1RMdUg-0006Vz-IK
	for bug-gnu-emacs@HIDDEN; Sat, 05 Nov 2011 06:28:59 -0400
Received: from mail-gx0-f169.google.com ([209.85.161.169]:59755)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <dmoncayo@HIDDEN>) id 1RMdUg-0006Vr-Dh
	for bug-gnu-emacs@HIDDEN; Sat, 05 Nov 2011 06:28:58 -0400
Received: by ggnh4 with SMTP id h4so3891390ggn.0
	for <bug-gnu-emacs@HIDDEN>; Sat, 05 Nov 2011 03:28:58 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=mime-version:date:message-id:subject:from:to:content-type;
	bh=mAAG7Mu4jSqgRHrQMqw56TlElWj4mxi0S+xnHAcgJ/I=;
	b=dPGFt6rOnbk6ArDexMkRCyD9thIS8r+20+HPv4fCklKlCH9BvQCrrIzumvH+0EmHmx
	nZrr2VGBfDGq9fiQPSbHdmRj3SgNFVPA/5mJjFsAoAKsVfPO75NpEJZtLRPR05O7w9hM
	B9AW7kJN160hRYG6qr/Qgtpp6mV8pgrsql6UM=
MIME-Version: 1.0
Received: by 10.182.114.2 with SMTP id jc2mr3988842obb.27.1320488937842; Sat,
	05 Nov 2011 03:28:57 -0700 (PDT)
Received: by 10.182.183.40 with HTTP; Sat, 5 Nov 2011 03:28:57 -0700 (PDT)
Date: Sat, 5 Nov 2011 11:28:57 +0100
Message-ID: <CAH8Pv0hqx_rRW+M=Ww-8SDT+WwO-pDQeygK8PxZVmWF0v0yQdg@HIDDEN>
Subject: 24.0.90; `count-words' command from a narrowed buffer
From: Dani Moncayo <dmoncayo@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Content-Type: text/plain; charset=ISO-8859-1
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.17
X-Spam-Score: -4.9 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -4.9 (----)

Hi,

Try the `count-words' command from a narrowed buffer (without active region).

The message displayed in the echo area is "Buffer has X lines, Y
words, and Z characters.", where the values X, Y and Z are actually
computed for the narrowed portion (not for the entire buffer).

So, this is inaccurate.  The message should begin with something like
"Buffer (narrowed part) has ...".


In GNU Emacs 24.0.90.1 (i386-mingw-nt6.1.7601)
 of 2011-10-27 on DANI-PC
Windowing system distributor `Microsoft Corp.', version 6.1.7601
configured using `configure --with-gcc (4.5)'

-- 
Dani Moncayo




Acknowledgement sent to Dani Moncayo <dmoncayo@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#9959; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.