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: Tue, 11 Dec 2007 12:50:26 +0100 Message-ID: <200712111250.28025.andreas.roehler@online.de> References: <200710191149.59775.andreas.roehler@online.de> <200712111007.45109.andreas.roehler@online.de> <87y7c1o8a4.fsf@jurta.org> 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 1197373879 25001 80.91.229.12 (11 Dec 2007 11:51:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Dec 2007 11:51:19 +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 Tue Dec 11 12:51:28 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 1J23du-0006bZ-T8 for ged-emacs-devel@m.gmane.org; Tue, 11 Dec 2007 12:51:19 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J23dc-0004Mv-Ur for ged-emacs-devel@m.gmane.org; Tue, 11 Dec 2007 06:51:00 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J23dX-0004Jb-Ao for emacs-devel@gnu.org; Tue, 11 Dec 2007 06:50:55 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J23dP-00047s-Ik for emacs-devel@gnu.org; Tue, 11 Dec 2007 06:50:52 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J23dP-00047d-Dz for emacs-devel@gnu.org; Tue, 11 Dec 2007 06:50:47 -0500 Original-Received: from moutng.kundenserver.de ([212.227.126.171]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J23dF-0003UX-9O; Tue, 11 Dec 2007 06:50:38 -0500 Original-Received: from noname (p54BE83F3.dip0.t-ipconnect.de [84.190.131.243]) by mrelayeu.kundenserver.de (node=mrelayeu3) with ESMTP (Nemesis) id 0MKxQS-1J23dD2mqQ-0004eV; Tue, 11 Dec 2007 12:50:36 +0100 User-Agent: KMail/1.9.5 In-Reply-To: <87y7c1o8a4.fsf@jurta.org> Content-Disposition: inline X-Provags-ID: V01U2FsdGVkX19Q2KGbc63+sxnq+tZUBfTrDccNZ3Q5B567tx+ wgmC3/3uaGEQWd/9r+GOdk2Q/J5VFL1YuzYEBKQWgr4wzXILUo wIXLug8n2EOA4nKblJElg== 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:85039 Archived-At: Am Dienstag, 11. Dezember 2007 10:59 schrieb Juri Linkov: > >> I came up with a better solution to the question of what region-active= =2Dp > >> should do when the region is empty: make it a user option. > >> I think that will make people happy, because I expect most users will > >> have the same preference for all the commands. > >> > >> I will install it when I have a good connection. > > > > To be more precisely: For the special case "region > > exist but empty" XEmacs has already the function > > `region-exists-p'. `region-active-p' fails in > > that case and I see no reason to make things more > > complicated at this point. > > > > It's quite easy to follow in both cases, remaining > > differences caused by routines below will not be > > remarkable by users as was stated correctly. > > `region-exists-p' in XEmacs would be equivalent in Emacs to: > > (defun region-exists-p () > (not (null mark-active))) > Yes, and that's the second useful thing here, thanks. > I don't see how this is comparable to `region-active-p' > with "region exist but empty" in Emacs. Because if a "region exist but empty" returns `t', the mark must be set, nothing more is required. That's precisely the question, `mark-active' and `region-exists-p' are answering. Andreas R=F6hler