GNU bug report logs -
#33383
26; `count-words-region'
Previous Next
Reported by: Drew Adams <drew.adams <at> oracle.com>
Date: Wed, 14 Nov 2018 15:48:02 UTC
Severity: wishlist
Tags: wontfix
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 33383 in the body.
You can then email your comments to 33383 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#33383
; Package
emacs
.
(Wed, 14 Nov 2018 15:48:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Drew Adams <drew.adams <at> oracle.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Wed, 14 Nov 2018 15:48:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Please consider a minor enhancement: Change the message from this:
(count-words--message "Region" start end) to this:
(count-words--message
(if (use-region-p) "Active region" "Inactive region")
start
end)
It's not so obvious that the report is for the region even when
inactive, and many Emacs users will nowadays think of the region only as
the active region. So if the region is inactive and they see a non-zero
number they might wonder (and need to consult the doc string to
understand).
They might also, without consulting the doc string, expect that if the
region is not active then the report is for the whole buffer, as that is
the behavior for lots of commands these days. The number they then see
is for the inactive region and not the whole buffer. With a small
buffer they might well mistake the meaning of the result.
In GNU Emacs 26.1 (build 1, x86_64-w64-mingw32)
of 2018-05-30
Repository revision: 07f8f9bc5a51f5aa94eb099f3e15fbe0c20ea1ea
Windowing system distributor `Microsoft Corp.', version 10.0.16299
Configured using:
`configure --without-dbus --host=x86_64-w64-mingw32
--without-compress-install 'CFLAGS=-O2 -static -g3''
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#33383
; Package
emacs
.
(Wed, 10 Jul 2019 12:43:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 33383 <at> debbugs.gnu.org (full text, mbox):
Drew Adams <drew.adams <at> oracle.com> writes:
> Please consider a minor enhancement: Change the message from this:
>
> (count-words--message "Region" start end) to this:
>
> (count-words--message
> (if (use-region-p) "Active region" "Inactive region")
> start
> end)
>
> It's not so obvious that the report is for the region even when
> inactive, and many Emacs users will nowadays think of the region only as
> the active region. So if the region is inactive and they see a non-zero
> number they might wonder (and need to consult the doc string to
> understand).
I think this command is the wrong place to teach people about what a
region is, and how it pertains to the "active region mode" (which I
think uses unfortunate terminology, but that's a different matter).
So I'm closing this bug report.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Added tag(s) wontfix.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Wed, 10 Jul 2019 12:43:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
33383 <at> debbugs.gnu.org and Drew Adams <drew.adams <at> oracle.com>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Wed, 10 Jul 2019 12:43:03 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#33383
; Package
emacs
.
(Wed, 10 Jul 2019 14:29:02 GMT)
Full text and
rfc822 format available.
Message #15 received at 33383 <at> debbugs.gnu.org (full text, mbox):
> > Please consider a minor enhancement: Change the message from this:
> >
> > (count-words--message "Region" start end) to this:
> >
> > (count-words--message
> > (if (use-region-p) "Active region" "Inactive region")
> > start
> > end)
> >
> > It's not so obvious that the report is for the region even when
> > inactive, and many Emacs users will nowadays think of the region only as
> > the active region. So if the region is inactive and they see a non-zero
> > number they might wonder (and need to consult the doc string to
> > understand).
>
> I think this command is the wrong place to teach people about what a
> region is, and how it pertains to the "active region mode" (which I
> think uses unfortunate terminology, but that's a different matter).
>
> So I'm closing this bug report.
It's unfortunate that you feel that way.
1. The doc string explicitly calls this out:
"(whether or not the region is active)".
Why, if this is not the place to talk about it?
That was added to the doc string because it was
not obvious to many/most users what was going on
when they saw no region highlighting.
The same thing is true for `count-lines-region'.
When `transient-mark-mode' came along, with the
notion of "active" region and highlighting the
region, its doc string added that text because
of such confusion.
2. How many users these days even know that there
is such a thing as an inactive region, i.e.,
that the region exists even when they see no
highlighting of selected text? Few.
Many/most users will wonder why this command
tells them about a word count in "the region"
when it is inactive, and they will wonder why
the doc string mentions this.
Fixing the message clarifies things. Do you
think it confuses things? If not, what reason
is there _not_ to make this minor change?
Does your region make you want to also remove
that text that was added to the doc string?
If it makes sense to point this out in the doc
string then it makes even more sense to put it
in the message - which many more users will see
than will see the doc string.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 08 Aug 2019 11:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 4 years and 262 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.