unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Chong Yidong <cyd@stupidchicken.com>
To: Juri Linkov <juri@jurta.org>
Cc: emacs-devel@gnu.org
Subject: Re: Rethinking count-words-region
Date: Sat, 08 Oct 2011 16:46:03 -0400	[thread overview]
Message-ID: <87hb3jgqk4.fsf@stupidchicken.com> (raw)
In-Reply-To: <87r52nw7cx.fsf@mail.jurta.org> (Juri Linkov's message of "Sat, 08 Oct 2011 23:04:06 +0300")

Juri Linkov <juri@jurta.org> writes:

> One problem: when I type `M-=', it fails with:
>
>   Debugger entered--Lisp error: (mark-inactive)
>     call-interactively(count-words-region nil nil)
>
> That's because I customized `mark-even-if-inactive' to `nil'
> (to avoid its dangerous behavior when it's non-nil).

In the past, M-= ignored `mark-even-if-inactive' even though it was
working with the region, so arguably the new behavior is more correct.
It doesn't seem clean to make an exception for this particular usage of
the inactive mark, but not others.

Seems like what you want is `count-words', not `count-words-region'.



  reply	other threads:[~2011-10-08 20:46 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-07 15:41 Rethinking count-words-region Chong Yidong
2011-10-07 16:46 ` Jambunathan K
2011-10-08 16:53   ` Chong Yidong
2011-10-08 18:00     ` Andreas Röhler
2011-10-07 18:08 ` Eli Zaretskii
2011-10-07 20:51   ` Chong Yidong
2011-10-07 20:55     ` Chong Yidong
2011-10-08 17:58       ` Andreas Röhler
2011-10-08 18:11         ` Drew Adams
2011-10-08 18:23           ` Chong Yidong
2011-10-08 18:25             ` Drew Adams
2011-10-08 18:29               ` Alan Mackenzie
2011-10-08 19:04                 ` Lars Ingebrigtsen
2011-10-08 19:28                 ` Juri Linkov
2011-10-08 18:40             ` Andreas Röhler
2011-10-08  6:22     ` Eli Zaretskii
2011-10-07 20:29 ` Andreas Röhler
2011-10-07 20:55 ` Alan Mackenzie
2011-10-08 16:52 ` Chong Yidong
2011-10-08 17:51   ` Andreas Röhler
2011-10-08 20:04   ` Juri Linkov
2011-10-08 20:46     ` Chong Yidong [this message]
2011-10-08 21:09       ` Juri Linkov
2011-10-08 20:49     ` Drew Adams
2011-10-08 21:12       ` Juri Linkov
2011-10-08 21:33         ` Drew Adams
2011-10-09  0:57           ` chad
2011-10-09  1:05             ` 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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87hb3jgqk4.fsf@stupidchicken.com \
    --to=cyd@stupidchicken.com \
    --cc=emacs-devel@gnu.org \
    --cc=juri@jurta.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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).