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: region-active-p Date: Fri, 19 Oct 2007 11:49:59 +0200 Message-ID: <200710191149.59775.andreas.roehler@online.de> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1192787293 6848 80.91.229.10 (19 Oct 2007 09:48:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Oct 2007 09:48:13 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 19 11:50:07 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1IioUY-0008PZ-T0 for ged-emacs-devel@m.gmane.org; Fri, 19 Oct 2007 11:50:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IioPX-0008C5-WC for ged-emacs-devel@m.gmane.org; Fri, 19 Oct 2007 05:44:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IioPV-0008C0-RM for emacs-devel@gnu.org; Fri, 19 Oct 2007 05:44:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IioPU-0008BN-An for emacs-devel@gnu.org; Fri, 19 Oct 2007 05:44:53 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IioPU-0008BK-6B for emacs-devel@gnu.org; Fri, 19 Oct 2007 05:44:52 -0400 Original-Received: from moutng.kundenserver.de ([212.227.126.171]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IioPT-0001KM-LZ for emacs-devel@gnu.org; Fri, 19 Oct 2007 05:44:51 -0400 Original-Received: from noname (p54BE8B7F.dip0.t-ipconnect.de [84.190.139.127]) by mrelayeu.kundenserver.de (node=mrelayeu7) with ESMTP (Nemesis) id 0ML2xA-1IioPS2ZJ3-0001Vt; Fri, 19 Oct 2007 11:44:51 +0200 User-Agent: KMail/1.9.5 Content-Disposition: inline X-Provags-ID: V01U2FsdGVkX1+TxQTeISusgikc7yVGeFQJ4qxZ6yeE/QLyW+Z zxYla2mwu/pazOknRzfxlhKylN/5hvZYiyf153GaDbbKbfY4Z6 8FGaByk8qVx4oQw5HEdwQ== 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:81207 Archived-At: What about to introduce `region-active-p' and/or `region-exists-p' for (and mark-active transient-mark-mode) thus enhancing portability with XEmacs, which I try here with such a construct: (or (and (featurep 'xemacs) (region-active-p)) (and=20 mark-active transient-mark-mode)) I'm well aware that behaviour of mark is different in both Emacsen and thus proceeding of `(and mark-active transient-mark-mode)' will the not be the same as in `region-exists-p'. However, in most if not all cases the result for the user should be comparable and expected. Thanks all Andreas R=F6hler