From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: region-active-p Date: Tue, 30 Oct 2007 09:59:44 +0100 Message-ID: <851wbdvuyn.fsf@lola.goethe.zz> References: <200710191149.59775.andreas.roehler@online.de> <87hckeigev.fsf@uwakimon.sk.tsukuba.ac.jp> <200710261017.33513.andreas.roehler@online.de> <877ilai63w.fsf@uwakimon.sk.tsukuba.ac.jp> <87bqal2kxb.fsf@uwakimon.sk.tsukuba.ac.jp> <877il7puib.fsf@uwakimon.sk.tsukuba.ac.jp> <87d4ux5uk4.fsf@uwakimon.sk.tsukuba.ac.jp> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1193734791 9181 80.91.229.12 (30 Oct 2007 08:59:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Oct 2007 08:59:51 +0000 (UTC) Cc: reinersteib+gmane@imap.cc, andreas.roehler@online.de, emacs-devel@gnu.org, juri@jurta.org, monnier@iro.umontreal.ca, "Stephen J. Turnbull" , miles@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 30 09:59:52 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Immwt-0007zr-4D for ged-emacs-devel@m.gmane.org; Tue, 30 Oct 2007 09:59:47 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Immwj-0006dr-Rx for ged-emacs-devel@m.gmane.org; Tue, 30 Oct 2007 04:59:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ImmwJ-0006QV-5w for emacs-devel@gnu.org; Tue, 30 Oct 2007 04:59:11 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ImmwH-0006Pv-Om for emacs-devel@gnu.org; Tue, 30 Oct 2007 04:59:10 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ImmwH-0006Po-F0 for emacs-devel@gnu.org; Tue, 30 Oct 2007 04:59:09 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ImmwG-0006Da-Pg for emacs-devel@gnu.org; Tue, 30 Oct 2007 04:59:08 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Immw7-0002uA-Ky; Tue, 30 Oct 2007 04:58:59 -0400 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id A96741C464E3; Tue, 30 Oct 2007 09:59:45 +0100 (CET) In-Reply-To: (Richard Stallman's message of "Tue\, 30 Oct 2007 04\:22\:27 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:82132 Richard Stallman writes: > If you plan to use this API generally in Emacs, then I guess XEmacs > compatibility is a secondary consideration. If so I would prefer that > you use a different name and the semantics for the argument that > Stefan proposed > > I'm not wedded to any particular name. > > Possible names are `region-usable-p' and `region-nonempty-p'. > > Neither one fits quite right. Whether the region is active is more > central to the meaning than whether it is nonempty. > > Perhaps `region-overrides-p' is a good name. The decision is whether > the region should override the normal meaning of the command. > > I invite other suggestions. region-effective-p I am quite unconvinced that it is a good idea to differentiate the non-empty case, however. It is just begging for a wagonload of commands that behave inconsistently, depending on what the programmer happened to pick for checking the region. I think that for Emacs, we should stay with the equivalent of (and transient-mark-mode mark-active). If that introduces some slight user level incompatibility with XEmacs, this is hardly tragic: zmacs-regions is different from Emacs' region handling, anyway. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum