unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Dani Moncayo <dmoncayo@gmail.com>
Cc: 9959@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	[thread overview]
Message-ID: <87iltjw0m4.fsf@gnus.org> (raw)
In-Reply-To: <CAH8Pv0hqx_rRW+M=Ww-8SDT+WwO-pDQeygK8PxZVmWF0v0yQdg@mail.gmail.com> (Dani Moncayo's message of "Sat, 5 Nov 2011 11:28:57 +0100")

Dani Moncayo <dmoncayo@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





      parent reply	other threads:[~2022-02-13  9:56 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-05 10:28 bug#9959: 24.0.90; `count-words' command from a narrowed buffer Dani Moncayo
2011-11-06 15:01 ` Juri Linkov
2011-11-06 15:34   ` Drew Adams
2011-11-06 16:30     ` Juri Linkov
2011-11-06 17:30       ` Drew Adams
2011-11-09  4:39     ` Kevin Rodgers
2011-11-09 15:05       ` Drew Adams
2011-11-09 16:01         ` Drew Adams
2011-11-09 16:36           ` Juri Linkov
2011-11-09 16:51             ` Drew Adams
2012-07-18 14:32       ` Chong Yidong
2022-02-13  9:56 ` Lars Ingebrigtsen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87iltjw0m4.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=9959@debbugs.gnu.org \
    --cc=dmoncayo@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).