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

Previous Next

Package: emacs;

Reported by: Dani Moncayo <dmoncayo <at> gmail.com>

Date: Sat, 5 Nov 2011 10:32:01 UTC

Severity: wishlist

Found in version 24.0.90

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Dani Moncayo <dmoncayo <at> gmail.com>
Cc: 9959 <at> debbugs.gnu.org
Subject: bug#9959: 24.0.90; `count-words' command from a narrowed buffer
Date: Sun, 13 Feb 2022 10:56:51 +0100
Dani Moncayo <dmoncayo <at> gmail.com> 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




This bug report was last modified 3 years and 99 days ago.

Previous Next


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