From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: Rethinking count-words-region Date: Sat, 08 Oct 2011 16:46:03 -0400 Message-ID: <87hb3jgqk4.fsf@stupidchicken.com> References: <87vcs0q05l.fsf@stupidchicken.com> <87d3e75st9.fsf@stupidchicken.com> <87r52nw7cx.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1318106776 4049 80.91.229.12 (8 Oct 2011 20:46:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 8 Oct 2011 20:46:16 +0000 (UTC) Cc: emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 08 22:46:11 2011 Return-path: Envelope-to: ged-emacs-devel@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 1RCdmb-0005XI-2z for ged-emacs-devel@m.gmane.org; Sat, 08 Oct 2011 22:46:09 +0200 Original-Received: from localhost ([::1]:39203 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RCdma-00069J-IP for ged-emacs-devel@m.gmane.org; Sat, 08 Oct 2011 16:46:08 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:48922) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RCdmX-000696-PU for emacs-devel@gnu.org; Sat, 08 Oct 2011 16:46:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RCdmW-0002rS-Rw for emacs-devel@gnu.org; Sat, 08 Oct 2011 16:46:05 -0400 Original-Received: from vm-emlprdomr-02.its.yale.edu ([130.132.50.143]:52742) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RCdmW-0002rI-QA for emacs-devel@gnu.org; Sat, 08 Oct 2011 16:46:04 -0400 Original-Received: from furball (dhcp-128-36-59-9.central.yale.edu [128.36.59.9]) (authenticated bits=0) by vm-emlprdomr-02.its.yale.edu (8.14.4/8.14.4) with ESMTP id p98Kk3ee027119 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Sat, 8 Oct 2011 16:46:04 -0400 In-Reply-To: <87r52nw7cx.fsf@mail.jurta.org> (Juri Linkov's message of "Sat, 08 Oct 2011 23:04:06 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) X-Scanned-By: MIMEDefang 2.71 on 130.132.50.143 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 130.132.50.143 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:144764 Archived-At: Juri Linkov 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'.