From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: region-active-p Date: Tue, 30 Oct 2007 12:49:32 -0700 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1193773810 21631 80.91.229.12 (30 Oct 2007 19:50:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Oct 2007 19:50:10 +0000 (UTC) Cc: rms@gnu.org, reinersteib+gmane@imap.cc, andreas.roehler@online.de, emacs-devel@gnu.org, juri@jurta.org, "Stephen J. Turnbull" , miles@gnu.org To: "Stefan Monnier" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 30 20:50:10 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 1Imx6A-0000lI-Ax for ged-emacs-devel@m.gmane.org; Tue, 30 Oct 2007 20:50:02 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Imx61-0005m9-0O for ged-emacs-devel@m.gmane.org; Tue, 30 Oct 2007 15:49:53 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Imx5x-0005l5-KC for emacs-devel@gnu.org; Tue, 30 Oct 2007 15:49:49 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Imx5x-0005kX-0N for emacs-devel@gnu.org; Tue, 30 Oct 2007 15:49:49 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Imx5w-0005kN-Bf for emacs-devel@gnu.org; Tue, 30 Oct 2007 15:49:48 -0400 Original-Received: from rgminet01.oracle.com ([148.87.113.118]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Imx5l-0001e6-6j; Tue, 30 Oct 2007 15:49:37 -0400 Original-Received: from agmgw1.us.oracle.com (agmgw1.us.oracle.com [152.68.180.212]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id l9UJnU6s026968; Tue, 30 Oct 2007 13:49:30 -0600 Original-Received: from acsmt351.oracle.com (acsmt351.oracle.com [141.146.40.151]) by agmgw1.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id l9UF5B3F020553; Tue, 30 Oct 2007 13:49:29 -0600 Original-Received: from dhcp-amer-csvpn-gw2-141-144-74-2.vpn.oracle.com by acsmt350.oracle.com with ESMTP id 3331738191193773767; Tue, 30 Oct 2007 12:49:27 -0700 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-reply-to: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 Importance: Normal X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 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:82152 Archived-At: > >> 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. > > > transient-region-p? > > > BTW, what's the reason for creating this, again? I thought this > > was about harmonizing with XEmacs somehow. Now that doesn't seem possible. > > What's wrong with just (and mark-active transient-mark-mode)? that's short > > and leaves no doubt about the meaning. > > I thought the whole point was to add region-emptyness checking in there > as well (and potentially more, to account for things like a region that > has just been selected with the mouse). Oh, right; I forgot. A short name probably won't capture all 3 things this is a conjunction of: (1) tmm mode, (2) mark-active, (3) point diff from mark. The last can probably be dropped from the name, so perhaps `transient-region-p'? Whatever the name is, the doc string should make 1,2,3 clear. Also, I don't follow your remark in parens - could you elaborate?