From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#9429: 24.0.50; Extended count-words Date: Tue, 06 Sep 2011 21:51:12 -0400 Message-ID: References: <87pqjhfujk.fsf@sc3d.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1315360344 18925 80.91.229.12 (7 Sep 2011 01:52:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 7 Sep 2011 01:52:24 +0000 (UTC) Cc: 9429@debbugs.gnu.org To: Reuben Thomas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 07 03:52:20 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R17JJ-0004Oq-KM for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 Sep 2011 03:52:17 +0200 Original-Received: from localhost ([::1]:45057 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R17JJ-0004Dl-09 for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Sep 2011 21:52:17 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:44639) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R17JF-0004De-Uz for bug-gnu-emacs@gnu.org; Tue, 06 Sep 2011 21:52:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R17JF-00011y-15 for bug-gnu-emacs@gnu.org; Tue, 06 Sep 2011 21:52:13 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45877) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R17JE-00011r-Vu for bug-gnu-emacs@gnu.org; Tue, 06 Sep 2011 21:52:12 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1R17Mw-0005K3-DM; Tue, 06 Sep 2011 21:56:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 07 Sep 2011 01:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9429 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 9429-submit@debbugs.gnu.org id=B9429.131536050720397 (code B ref 9429); Wed, 07 Sep 2011 01:56:02 +0000 Original-Received: (at 9429) by debbugs.gnu.org; 7 Sep 2011 01:55:07 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R17M2-0005Iw-SP for submit@debbugs.gnu.org; Tue, 06 Sep 2011 21:55:07 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R17M0-0005Im-FH for 9429@debbugs.gnu.org; Tue, 06 Sep 2011 21:55:05 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EAGrNZk64rwMJ/2dsb2JhbABDhFWjNXmBRgEBBAEjMyMFCwsODAIYDgICFBgNJIgGpjSSHIEshC2BEQSgF4RA X-IronPort-AV: E=Sophos;i="4.68,342,1312171200"; d="scan'208";a="134833034" Original-Received: from 184-175-3-9.dsl.teksavvy.com (HELO ceviche.home) ([184.175.3.9]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 06 Sep 2011 21:51:13 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 06B4366246; Tue, 6 Sep 2011 21:51:13 -0400 (EDT) In-Reply-To: <87pqjhfujk.fsf@sc3d.org> (Reuben Thomas's message of "Sat, 03 Sep 2011 17:41:03 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 06 Sep 2011 21:56:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:50651 Archived-At: > It seems to me that it could, however, replace count-words-region > (ideally, from my point of view, with a =E2=80=9Cwc=E2=80=9D convenience = alias), and I=E2=80=99d > be happy to supply such a definition. That would be good, yes. I don't see a need for a `wc' alias, tho. Stefan PS: Note that the (use-region-p) check should be within the `interactive' spec rather than within the function body, as in: (interactive (if (use-region-p) (list (region-beginning) (region-end)) (list (point-min) (point-max)))) this both because you avoid getting errors (from the "r" spec) when the mark is not yet set, and because it's better to compute interactive args in the `interactive' spec than within the function body under a called-interactively-p test.