[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Rethinking count-words-region

From: Chong Yidong
Subject: Re: Rethinking count-words-region
Date: Sat, 08 Oct 2011 16:46:03 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux)

Juri Linkov <address@hidden> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]