all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: 33383@debbugs.gnu.org
Subject: bug#33383: 26; `count-words-region'
Date: Wed, 14 Nov 2018 07:47:27 -0800 (PST)	[thread overview]
Message-ID: <67fda5a6-8217-47ee-ae7f-fde4427433e0@default> (raw)

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





             reply	other threads:[~2018-11-14 15:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-14 15:47 Drew Adams [this message]
2019-07-10 12:42 ` bug#33383: 26; `count-words-region' Lars Ingebrigtsen
2019-07-10 14:28   ` Drew Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=67fda5a6-8217-47ee-ae7f-fde4427433e0@default \
    --to=drew.adams@oracle.com \
    --cc=33383@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.