From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#33383: 26; `count-words-region' Date: Wed, 14 Nov 2018 07:47:27 -0800 (PST) Message-ID: <67fda5a6-8217-47ee-ae7f-fde4427433e0@default> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1542210371 26021 195.159.176.226 (14 Nov 2018 15:46:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 14 Nov 2018 15:46:11 +0000 (UTC) To: 33383@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 14 16:46:07 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gMxMl-0006YR-8i for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 Nov 2018 16:46:07 +0100 Original-Received: from localhost ([::1]:32855 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gMxOm-0004HL-Pc for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 Nov 2018 10:48:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59148) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gMxOf-0004Gu-OB for bug-gnu-emacs@gnu.org; Wed, 14 Nov 2018 10:48:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gMxOc-0002QF-IV for bug-gnu-emacs@gnu.org; Wed, 14 Nov 2018 10:48:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48165) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gMxOc-0002QB-FJ for bug-gnu-emacs@gnu.org; Wed, 14 Nov 2018 10:48:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gMxOc-0003Mi-D7 for bug-gnu-emacs@gnu.org; Wed, 14 Nov 2018 10:48:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 14 Nov 2018 15:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 33383 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.154221047812765 (code B ref -1); Wed, 14 Nov 2018 15:48:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 Nov 2018 15:47:58 +0000 Original-Received: from localhost ([127.0.0.1]:52423 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gMxOX-0003Jf-SD for submit@debbugs.gnu.org; Wed, 14 Nov 2018 10:47:58 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:49457) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gMxOW-0003GP-5r for submit@debbugs.gnu.org; Wed, 14 Nov 2018 10:47:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gMxOO-0002E7-SV for submit@debbugs.gnu.org; Wed, 14 Nov 2018 10:47:50 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:56409) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gMxOO-0002DH-57 for submit@debbugs.gnu.org; Wed, 14 Nov 2018 10:47:48 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59061) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gMxOM-0004EW-Tx for bug-gnu-emacs@gnu.org; Wed, 14 Nov 2018 10:47:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gMxOI-000281-Mb for bug-gnu-emacs@gnu.org; Wed, 14 Nov 2018 10:47:46 -0500 Original-Received: from userp2130.oracle.com ([156.151.31.86]:58978) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gMxOG-0001uz-7a for bug-gnu-emacs@gnu.org; Wed, 14 Nov 2018 10:47:40 -0500 Original-Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id wAEFiOsX094962 for ; Wed, 14 Nov 2018 15:47:29 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : subject : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=7WFoROcW8lnF3Yy4FdYpc9xyutbH/J0foIqdSMGXENY=; b=yFn6UjINcBRgwvOn9dr/NnRYhGQibiVIDU0CCUR+DrjkalG96KI31XAfg2WZ6izgbD+E 0GqcnVlUNWGp/vYoDr0BV96aO4GZ3SRsChvQnAue6cpKVvvSSEr1htHA0a51cEEanEG3 F1Mke76I9u+TJ5+L4iAlNUenLm/WtpuGpJm8eJNnYOiZVDd25+h7Q0vBE3Z+1gD2UinK dYkP1hahaHZ6bqWk96xlnvOh9K+4EMWgfJ31ABdrbmjo7PBWLolQgi7rZt/hpDD9r3lJ WGmisWGvjTBOw9hQDC4m3QIip10sPEO05oXN5bW64ecoEcJucF2zrql/X485y7J6AKMM zw== Original-Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2130.oracle.com with ESMTP id 2nr7cs4a00-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 14 Nov 2018 15:47:29 +0000 Original-Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id wAEFlS0U031894 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 14 Nov 2018 15:47:28 GMT Original-Received: from abhmp0018.oracle.com (abhmp0018.oracle.com [141.146.116.24]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id wAEFlSBI021170 for ; Wed, 14 Nov 2018 15:47:28 GMT X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4756.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9077 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=1 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=938 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1811140142 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:152386 Archived-At: 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=3Dx86_64-w64-mingw32 --without-compress-install 'CFLAGS=3D-O2 -static -g3''