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: Mon, 22 Oct 2007 08:09:01 +0200 Message-ID: <200710220809.02441.andreas.roehler@online.de> References: <200710191149.59775.andreas.roehler@online.de> <87lk9wseuf.fsf@catnip.gol.com> 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 1193033062 30134 80.91.229.12 (22 Oct 2007 06:04:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Oct 2007 06:04:22 +0000 (UTC) Cc: Richard Stallman , Reiner Steib , emacs-devel@gnu.org, Juri Linkov , Stefan Monnier , Stephen Turnbull To: Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 22 08:04:21 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 1IjqOi-00034f-Fi for ged-emacs-devel@m.gmane.org; Mon, 22 Oct 2007 08:04:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IjqOa-0008Ph-Tp for ged-emacs-devel@m.gmane.org; Mon, 22 Oct 2007 02:04:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IjqOX-0008PK-EE for emacs-devel@gnu.org; Mon, 22 Oct 2007 02:04:09 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IjqOW-0008Ow-7A for emacs-devel@gnu.org; Mon, 22 Oct 2007 02:04:09 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IjqOV-0008Ot-8p for emacs-devel@gnu.org; Mon, 22 Oct 2007 02:04:07 -0400 Original-Received: from moutng.kundenserver.de ([212.227.126.183]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IjqOL-0001js-PW; Mon, 22 Oct 2007 02:03:58 -0400 Original-Received: from noname (p54BE8B3E.dip0.t-ipconnect.de [84.190.139.62]) by mrelayeu.kundenserver.de (node=mrelayeu1) with ESMTP (Nemesis) id 0MKwpI-1IjqNg47VF-0007H8; Mon, 22 Oct 2007 08:03:25 +0200 User-Agent: KMail/1.9.5 In-Reply-To: <87lk9wseuf.fsf@catnip.gol.com> Content-Disposition: inline X-Provags-ID: V01U2FsdGVkX1+8LVA46kQcvJOAjVIiJTz+zVj/KDCtwEHSbun tISh73YCWJD6Upzlxh4sCB59fitoMO4hitoTDdF2x1IW0tyrh0 6Exv3e8rqKml8POamGLwQ== 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:81434 Archived-At: Am Sonntag, 21. Oktober 2007 16:48 schrieb Miles Bader: > Stefan Monnier writes: > >> The name `region-active-p' > >> implies that it doesn't matter whether the region is empty. > > > > Not necessarily. I don't consider an empty region as being really > > "active". > > And in many cases an empty-but-"active" region can be pretty confusing > if you don't realize what's going on... (e.g., undo with an > empty-but-"active" region used to be _extremely_ confusing, though that > seems to have been fixed). > > -Miles That's it. I correct my posting from yesterday so far. It makes no sence to have two forms--`exist' and `active'-- else. So I get two new forms: (defsubst region-exists-p () "..." (not (null (mark)))) (defun region-active-p () "..." (and mark-active transient-mark-mode (not (eq (region-beginning) (region-end))))) Installing both makes code in both directions compatible at that point. Andreas R=F6hler