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 #15 received at control <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Daniel Koning <dk <at> danielkoning.com>
Cc: 41761 <at> debbugs.gnu.org, Pip Cet <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: Fri, 14 Aug 2020 02:58:19 -0700
close 41761 28.1
thanks

Daniel Koning <dk <at> danielkoning.com> writes:

> Pip Cet <pipcet <at> gmail.com> writes:
>
>> Expected result:
>>
>> message "Region has 1 line, 10 words, and 50 characters"
>>
>> Actual result:
>>
>> message "Region has 1 line, 1 word, and 50 characters"
>
> `count-words' should be disabling field-boundary behavior in
> `forward-word-strictly' by setting `inhibit-field-text-motion'. Patch
> included.

Thanks for the patch.  It looks good to me so I pushed it as commit
c560ba3036d8.  I also pushed a regression test for this bug separately.

Closing this bug now.

Best regards,
Stefan Kangas




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.