From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Reuben Thomas <rrt@sc3d.org>
Cc: 9429@debbugs.gnu.org
Subject: bug#9429: 24.0.50; Extended count-words
Date: Tue, 06 Sep 2011 21:51:12 -0400 [thread overview]
Message-ID: <jwvehztt9ch.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87pqjhfujk.fsf@sc3d.org> (Reuben Thomas's message of "Sat, 03 Sep 2011 17:41:03 +0100")
> It seems to me that it could, however, replace count-words-region
> (ideally, from my point of view, with a “wc” convenience alias), and I’d
> 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.
next prev parent reply other threads:[~2011-09-07 1:51 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-03 16:41 bug#9429: 24.0.50; Extended count-words Reuben Thomas
2011-09-07 1:51 ` Stefan Monnier [this message]
2011-09-07 11:20 ` Reuben Thomas
2011-09-10 3:03 ` Stefan Monnier
2011-09-10 3:18 ` Lars Magne Ingebrigtsen
2011-09-10 4:01 ` Stefan Monnier
2011-09-10 7:59 ` Reuben Thomas
2011-09-11 22:55 ` Reuben Thomas
2011-09-12 2:40 ` Stefan Monnier
2011-09-14 18:55 ` Juri Linkov
2011-10-07 20:20 ` Glenn Morris
2011-10-08 19:29 ` Juri Linkov
2012-04-12 19:48 ` Lars Magne Ingebrigtsen
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=jwvehztt9ch.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=9429@debbugs.gnu.org \
--cc=rrt@sc3d.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.