GNU bug report logs - #41761
28.0.50; M-x count-words counts words only up to a field boundary

Previous Next

Package: emacs;

Reported by: Pip Cet <pipcet <at> gmail.com>

Date: Mon, 8 Jun 2020 16:53:01 UTC

Severity: normal

Tags: patch

Found in version 28.0.50

Fixed in version 28.1

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


Message #54 received at 41761 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Daniel Koning <dk <at> danielkoning.com>
Cc: 41761 <at> debbugs.gnu.org, stefan <at> marxist.se, pipcet <at> gmail.com
Subject: Re: bug#41761: [PATCH] bug#41761: 28.0.50; M-x count-words counts
 words only up to a field boundary
Date: Sun, 16 Aug 2020 22:27:01 +0300
> From: Daniel Koning <dk <at> danielkoning.com>
> Cc: stefan <at> marxist.se,  41761 <at> debbugs.gnu.org,  pipcet <at> gmail.com
> Date: Sun, 16 Aug 2020 14:04:14 -0500
> 
> > I'm not sure I understand the "end of field containing START" part.
> > Supposed the region includes several fields, what would the previous
> > code do?
> 
> It would only count the words between START and the next field boundary,
> no matter how many fields came after that. (For START, substitute "the
> beginning of the region" or "the beginning of the buffer" if it was
> called interactively.)

Thanks, then how about this NEWS entry:

  'count-words' now crosses field boundaries.
  Originally, 'count-words' would stop counting at the first field
  boundary it encountered; now it keeps counting all the way to the
  region's (or buffer's) end.




This bug report was last modified 4 years and 278 days ago.

Previous Next


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