From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas =?iso-8859-1?q?R=F6hler?= Newsgroups: gmane.emacs.devel Subject: Re: region-active-p Date: Fri, 26 Oct 2007 13:03:12 +0200 Message-ID: <200710261303.13426.andreas.roehler@online.de> References: <200710191149.59775.andreas.roehler@online.de> <200710261017.33513.andreas.roehler@online.de> <877ilai63w.fsf@uwakimon.sk.tsukuba.ac.jp> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1193396617 4983 80.91.229.12 (26 Oct 2007 11:03:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 26 Oct 2007 11:03:37 +0000 (UTC) Cc: Richard Stallman , Reiner Steib , Juri Linkov , Stefan Monnier , Stephen Turnbull , Miles Bader To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 26 13:03:38 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 1IlMyV-0000ze-W3 for ged-emacs-devel@m.gmane.org; Fri, 26 Oct 2007 13:03:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IlMyN-00078V-Ht for ged-emacs-devel@m.gmane.org; Fri, 26 Oct 2007 07:03:27 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IlMyH-00074c-Mi for emacs-devel@gnu.org; Fri, 26 Oct 2007 07:03:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IlMyG-00072D-23 for emacs-devel@gnu.org; Fri, 26 Oct 2007 07:03:21 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IlMyF-00071T-Tw for emacs-devel@gnu.org; Fri, 26 Oct 2007 07:03:19 -0400 Original-Received: from moutng.kundenserver.de ([212.227.126.177]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IlMy9-0008Hg-Hb; Fri, 26 Oct 2007 07:03:13 -0400 Original-Received: from noname (p54BEA0B9.dip0.t-ipconnect.de [84.190.160.185]) by mrelayeu.kundenserver.de (node=mrelayeu3) with ESMTP (Nemesis) id 0MKxQS-1IlMxh39Yc-0006qJ; Fri, 26 Oct 2007 13:02:50 +0200 User-Agent: KMail/1.9.5 In-Reply-To: <877ilai63w.fsf@uwakimon.sk.tsukuba.ac.jp> Content-Disposition: inline X-Provags-ID: V01U2FsdGVkX18cpYvBpUoxHykNp7s6BgRTI87EEsNhPuksHmv smMO5sBx3AMscIeTHpaIBAkOtdW9uf0AXwC7MMzrVvp0Hhe2+P krYFP7s2HO5T11neY+ZMA== X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) 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:81769 Archived-At: Am Freitag, 26. Oktober 2007 11:21 schrieb Stephen J. Turnbull: > Andreas R=F6hler writes: > > If there is no extension, just the mark set, > > `zmacs-region-extent' is nil and `region-active-p' > > returns nil therefor. > > Right. However, if zmacs-region-extent is non-nil, it is possible > that (region-beginning) equals (region-end),=20 If this is possible--my little check rather contradicts--than I consider it as not congruent with its name "extent" or a bug. At stake are AFAIU tree different and hierarchical conditions: 1 region exists but has no extent 2 region has extent but is not visible 3 region is visible =46or appropriate names I held something like 1 region-exist-p 2 region-extent-p 3 region-visible-p In GNU Emacs these conditions are expressed by 1 mark-active 2 (and mark-active (not (eq (region-beginning) (region-end)))) 3 (and transient-mark-mode mark-active (not (eq (region-beginning) (region-end)))) XEmacs has AFAIS 1 region-exist-p 3 region-active-p Andreas R=F6hler > in which case there is=20 > (usually) no point in operating on the region. It is that check that > Richard is asking about AFAICS. > >