From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 05 06:31:48 2011 Received: (at submit) by debbugs.gnu.org; 5 Nov 2011 10:31:48 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RMdXM-0000Tq-AA for submit@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 ) id 1RMdXJ-0000Ti-1S for submit@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 ) id 1RMdUi-0006WJ-Dy for submit@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 ) id 1RMdUi-0006WF-CY for submit@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 ) id 1RMdUh-0004BH-C5 for bug-gnu-emacs@gnu.org; Sat, 05 Nov 2011 06:29:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RMdUg-0006Vz-IK for bug-gnu-emacs@gnu.org; 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 ) id 1RMdUg-0006Vr-Dh for bug-gnu-emacs@gnu.org; Sat, 05 Nov 2011 06:28:58 -0400 Received: by ggnh4 with SMTP id h4so3891390ggn.0 for ; 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: Subject: 24.0.90; `count-words' command from a narrowed buffer From: Dani Moncayo To: bug-gnu-emacs@gnu.org 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@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@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 From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 06 10:14:52 2011 Received: (at 9959) by debbugs.gnu.org; 6 Nov 2011 15:14:53 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RN4Qu-00061v-OV for submit@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 ) id 1RN4Qs-00061k-Ny for 9959@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 To: Dani Moncayo Subject: Re: bug#9959: 24.0.90; `count-words' command from a narrowed buffer Organization: JURTA References: Date: Sun, 06 Nov 2011 17:01:30 +0200 In-Reply-To: (Dani Moncayo's message of "Sat, 5 Nov 2011 11:28:57 +0100") Message-ID: <87aa89uwfp.fsf@mail.jurta.org> 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@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@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. From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 06 10:38:00 2011 Received: (at 9959) by debbugs.gnu.org; 6 Nov 2011 15:38:00 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RN4nI-0006Xc-2S for submit@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 ) id 1RN4nG-0006XV-8g for 9959@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" To: "'Juri Linkov'" , "'Dani Moncayo'" References: <87aa89uwfp.fsf@mail.jurta.org> 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@us.oracle.com> 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@mail.jurta.org> 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@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@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 From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 06 11:34:36 2011 Received: (at 9959) by debbugs.gnu.org; 6 Nov 2011 16:34:36 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RN5g4-00006f-Lc for submit@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 ) id 1RN5g3-00006Y-8S for 9959@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 To: "Drew Adams" Subject: Re: bug#9959: 24.0.90; `count-words' command from a narrowed buffer Organization: JURTA References: <87aa89uwfp.fsf@mail.jurta.org> <92DCBADB54F446EF9E76A3A6E723C239@us.oracle.com> Date: Sun, 06 Nov 2011 18:30:15 +0200 In-Reply-To: <92DCBADB54F446EF9E76A3A6E723C239@us.oracle.com> (Drew Adams's message of "Sun, 6 Nov 2011 07:34:58 -0800") Message-ID: <87d3d5qkmg.fsf@mail.jurta.org> 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@debbugs.gnu.org, 'Dani Moncayo' X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@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 From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 06 12:33:33 2011 Received: (at 9959) by debbugs.gnu.org; 6 Nov 2011 17:33:33 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RN6b6-0001Oj-Km for submit@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 ) id 1RN6b4-0001Ob-J0 for 9959@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" To: "'Juri Linkov'" References: <87aa89uwfp.fsf@mail.jurta.org><92DCBADB54F446EF9E76A3A6E723C239@us.oracle.com> <87d3d5qkmg.fsf@mail.jurta.org> 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@us.oracle.com> 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@mail.jurta.org> 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@debbugs.gnu.org, 'Dani Moncayo' X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@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.) From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 08 23:39:20 2011 Received: (at submit) by debbugs.gnu.org; 9 Nov 2011 04:39:20 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RNzwW-000216-8P for submit@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 ) id 1RNzwS-00020s-Ss for submit@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 ) id 1RNzwK-0007t3-Ck for submit@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 ) id 1RNzwK-0007st-BI for submit@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 ) id 1RNzwF-0000dY-H7 for bug-gnu-emacs@gnu.org; Tue, 08 Nov 2011 23:39:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RNzwE-0007sa-Lm for bug-gnu-emacs@gnu.org; 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 ) id 1RNzwE-0007sU-Gf for bug-gnu-emacs@gnu.org; Tue, 08 Nov 2011 23:39:02 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RNzwC-00082a-J0 for bug-gnu-emacs@gnu.org; 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 ; 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 ; Wed, 09 Nov 2011 05:39:00 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Kevin Rodgers 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: References: <87aa89uwfp.fsf@mail.jurta.org> <92DCBADB54F446EF9E76A3A6E723C239@us.oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org 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@us.oracle.com> 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@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@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 From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 09 10:06:09 2011 Received: (at 9959) by debbugs.gnu.org; 9 Nov 2011 15:06:09 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RO9j6-0008TI-MF for submit@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 ) id 1RO9j5-0008Sw-6h for 9959@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" To: "'Kevin Rodgers'" , <9959@debbugs.gnu.org> References: <87aa89uwfp.fsf@mail.jurta.org><92DCBADB54F446EF9E76A3A6E723C239@us.oracle.com> 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@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: 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@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@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. From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 09 11:02:15 2011 Received: (at 9959) by debbugs.gnu.org; 9 Nov 2011 16:02:15 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ROAbO-00023m-Vg for submit@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 ) id 1ROAbM-00023a-Uf for 9959@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" To: "'Kevin Rodgers'" , <9959@debbugs.gnu.org> References: <87aa89uwfp.fsf@mail.jurta.org><92DCBADB54F446EF9E76A3A6E723C239@us.oracle.com> <09E90207C2FB4EBAA78235DA57686D17@us.oracle.com> 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@us.oracle.com> 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@us.oracle.com> 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@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@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. From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 09 11:38:49 2011 Received: (at 9959) by debbugs.gnu.org; 9 Nov 2011 16:38:49 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ROBAm-0002sj-Qd for submit@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 ) id 1ROBAj-0002sa-ET for 9959@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 To: "Drew Adams" Subject: Re: bug#9959: 24.0.90; `count-words' command from a narrowed buffer Organization: JURTA References: <87aa89uwfp.fsf@mail.jurta.org> <92DCBADB54F446EF9E76A3A6E723C239@us.oracle.com> <09E90207C2FB4EBAA78235DA57686D17@us.oracle.com> <650AF62C3EAD4BD288F25EF97505DE69@us.oracle.com> Date: Wed, 09 Nov 2011 18:36:49 +0200 In-Reply-To: <650AF62C3EAD4BD288F25EF97505DE69@us.oracle.com> (Drew Adams's message of "Wed, 9 Nov 2011 08:01:53 -0800") Message-ID: <87obwlntge.fsf@mail.jurta.org> 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' , 9959@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@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. From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 09 11:51:36 2011 Received: (at 9959) by debbugs.gnu.org; 9 Nov 2011 16:51:36 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ROBN9-0003Ag-W1 for submit@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 ) id 1ROBN7-0003AU-W9 for 9959@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" To: "'Juri Linkov'" References: <87aa89uwfp.fsf@mail.jurta.org><92DCBADB54F446EF9E76A3A6E723C239@us.oracle.com><09E90207C2FB4EBAA78235DA57686D17@us.oracle.com><650AF62C3EAD4BD288F25EF97505DE69@us.oracle.com> <87obwlntge.fsf@mail.jurta.org> 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: 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@mail.jurta.org> 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' , 9959@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@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. From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 18 10:38:54 2012 Received: (at 9959) by debbugs.gnu.org; 18 Jul 2012 14:38:54 +0000 Received: from localhost ([127.0.0.1]:48592 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SrVOv-0004jk-RT for submit@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 ) id 1SrVOt-0004jc-NB for 9959@debbugs.gnu.org; Wed, 18 Jul 2012 10:38:52 -0400 Received: by pbcwy7 with SMTP id wy7so2592499pbc.3 for <9959@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 To: Kevin Rodgers Subject: Re: bug#9959: 24.0.90; `count-words' command from a narrowed buffer References: <87aa89uwfp.fsf@mail.jurta.org> <92DCBADB54F446EF9E76A3A6E723C239@us.oracle.com> Date: Wed, 18 Jul 2012 22:32:38 +0800 In-Reply-To: (Kevin Rodgers's message of "Tue, 08 Nov 2011 21:39:06 -0700") Message-ID: <87txx52l89.fsf@gnu.org> 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@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) Kevin Rodgers 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. From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 18 10:39:12 2012 Received: (at control) by debbugs.gnu.org; 18 Jul 2012 14:39:12 +0000 Received: from localhost ([127.0.0.1]:48596 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SrVPE-0004kf-3n for submit@debbugs.gnu.org; Wed, 18 Jul 2012 10:39:12 -0400 Received: from mail-yw0-f44.google.com ([209.85.213.44]:34767) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SrVPC-0004kV-9z for control@debbugs.gnu.org; Wed, 18 Jul 2012 10:39:10 -0400 Received: by yhq56 with SMTP id 56so1595154yhq.3 for ; Wed, 18 Jul 2012 07:33:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id:mime-version:content-type; bh=MIVxFA/vraa2Zo2w1pSVpCpHzd9h09E8Re7oPA6+htY=; b=osjj2pnsslFWfOGjpCNYXSogeDEHZMdf6G3tIocAC+14QqPItI99oBa5ETVREC7ln2 2K4eCdH4z3eczjCOurrprsjhM3gjtUVCDe8+kMmZmOSFAhrbNwYidyk0Fcsbns7TUQii p0wEJ2ZL36r002qG/Q9/rGW1m28hF/WDVg2hqbYr5N6fUIJU2TLXJvTg0sSmrrKyjoT0 U4sfJzyE/sBhHlecyjVoqGBU0vxlSzNaGemZ++tGfWfUBpmlLJ7NCi9jofntkXDrd8YE Sz4KopLNcOGdKLrwjdzd0+P0u9mYiEPFs3WKWPGJlZ0OBOmW5aX38nWMXjXFzMAGwDl0 d7Xg== Received: by 10.66.74.69 with SMTP id r5mr395535pav.56.1342621983571; Wed, 18 Jul 2012 07:33:03 -0700 (PDT) Received: from ulysses (cm162.gamma80.maxonline.com.sg. [202.156.80.162]) by mx.google.com with ESMTPS id rs4sm16320481pbc.0.2012.07.18.07.33.00 (version=SSLv3 cipher=OTHER); Wed, 18 Jul 2012 07:33:02 -0700 (PDT) From: Chong Yidong To: control@debbugs.gnu.org Subject: severity 9959 wishlist Date: Wed, 18 Jul 2012 22:32:57 +0800 Message-ID: <87bojd87hi.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) severity 9959 wishlist thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 13 04:57:04 2022 Received: (at 9959) by debbugs.gnu.org; 13 Feb 2022 09:57:04 +0000 Received: from localhost ([127.0.0.1]:36390 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nJBcu-00029Y-Ee for submit@debbugs.gnu.org; Sun, 13 Feb 2022 04:57:04 -0500 Received: from quimby.gnus.org ([95.216.78.240]:51724) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nJBcs-000293-Dg for 9959@debbugs.gnu.org; Sun, 13 Feb 2022 04:57:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=1BcMQWgpoTrY3D3ZSaotscUT5z1MVI8ur6S105Fn3Ic=; b=Zu4TNZ2AqksJz6RPpB0htMDaOY vaiRb2RJT1DQP7H8fpxfsT53N77PuBpvZ9L8idDiTTWHbAilZBBYwAUEF4HI3997oTkIlWPqnCnR5 NHYVJHAkS+HyJM0Z+EovTrEWZpVF9yhU/zdX0/+p2V2MZjOpk3S5sAsm7XfLIUa4R7Tc=; Received: from [84.212.220.105] (helo=giant) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nJBcj-0001YP-8H; Sun, 13 Feb 2022 10:56:55 +0100 From: Lars Ingebrigtsen To: Dani Moncayo Subject: Re: bug#9959: 24.0.90; `count-words' command from a narrowed buffer References: X-Now-Playing: Nils Petter =?utf-8?Q?Molv=C3=A6r's?= _Solid Ether_: "Tragamar" Date: Sun, 13 Feb 2022 10:56:51 +0100 In-Reply-To: (Dani Moncayo's message of "Sat, 5 Nov 2011 11:28:57 +0100") Message-ID: <87iltjw0m4.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Dani Moncayo writes: > 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 [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 9959 Cc: 9959@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Dani Moncayo writes: > 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 ...". (I'm going through old bug reports that unfortunately weren't resolved at the time.) Chong Yidong fixed this at the time. The discussion then went on to whether `C-u M-x count-words' should report data for both the narrowed-to and total buffer. That sounds reasonable to me, so I've now done that in Emacs 29 (although the message is kinda wide). -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 13 04:57:07 2022 Received: (at control) by debbugs.gnu.org; 13 Feb 2022 09:57:07 +0000 Received: from localhost ([127.0.0.1]:36393 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nJBcx-00029o-MX for submit@debbugs.gnu.org; Sun, 13 Feb 2022 04:57:07 -0500 Received: from quimby.gnus.org ([95.216.78.240]:51738) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nJBcw-000298-8Q for control@debbugs.gnu.org; Sun, 13 Feb 2022 04:57:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=hgq2xUfQwAg+ocMvtUMQbg7QzTbY7sxsSmr8Qxsh1ak=; b=ijmJF+iFfeP0DlVIdoAlLPAZCg UsqIkEsSe3GhjAg2rEdwSSf5QG7WV+UIq15r+sR86jipQUjahp2dYx3tcyGzrvAbWgP8nZLT47Oua 5YnVDW2OqTTddTNvVry0J2S8XDlG4rJ2JUYAv3MOKsJSHcpr2COw5aPqRdFCwwXSY8V4=; Received: from [84.212.220.105] (helo=giant) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nJBco-0001YZ-CJ for control@debbugs.gnu.org; Sun, 13 Feb 2022 10:57:00 +0100 Date: Sun, 13 Feb 2022 10:56:57 +0100 Message-Id: <87h793w0ly.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #9959 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 9959 29.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 9959 29.1 quit From unknown Thu Jun 19 16:21:23 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 13 Mar 2022 11:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator