[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: Fri, 07 Oct 2011 16:51:19 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

> What will such a change do to those who (like yours truly) disable
> transient-mark-mode, which AFAIK means the region is never active?  I
> do want to be able to count lines (if not words) in the region.
> At the very least, the command should behave like before if
> transient-mark-mode is disabled.

On reflection, I think the Bug#9429 change to count-words-region is
misguided.  If we want to be consistent with other parts of Emacs, like
ispell-word/ispell-region, we need two separate commands:

 - A count-*-region command that counts in the region, using
   (interactive "r").  Even if Transient Mark mode is active and the
   region is not active, it counts in the inactive region.  This is like

 - A count-* command that usually counts in the buffer.  If
   use-region-p, it counts in the region.  This is like ispell-word.

reply via email to

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