[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#41761: [PATCH] bug#41761: 28.0.50; M-x count-words counts words only
From: |
Daniel Koning |
Subject: |
bug#41761: [PATCH] bug#41761: 28.0.50; M-x count-words counts words only up to a field boundary |
Date: |
Wed, 10 Jun 2020 15:15:32 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.91 (darwin) |
Pip Cet <pipcet@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.
I grepped for other calls to `count-words' that might be making the same
omission, but everything I saw looked like a use case that should
respect field boundaries.
Daniel
0001-Don-t-stop-at-field-boundaries-when-counting-words-B.patch
Description: count-words patch