[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#33383: 26; `count-words-region'

From: Drew Adams
Subject: bug#33383: 26; `count-words-region'
Date: Wed, 14 Nov 2018 07:47:27 -0800 (PST)

Please consider a minor enhancement: Change the message from this:

(count-words--message "Region" start end) to this:

  (if (use-region-p) "Active region" "Inactive region")

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

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''

reply via email to

[Prev in Thread] Current Thread [Next in Thread]