From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: region-active-p Date: Tue, 30 Oct 2007 16:15:18 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1193775357 28918 80.91.229.12 (30 Oct 2007 20:15:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Oct 2007 20:15:57 +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: "Drew Adams" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 30 21:15:56 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 1ImxVB-0000TF-2i for ged-emacs-devel@m.gmane.org; Tue, 30 Oct 2007 21:15:53 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ImxV1-0005y2-Hg for ged-emacs-devel@m.gmane.org; Tue, 30 Oct 2007 16:15:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ImxUp-0005qs-83 for emacs-devel@gnu.org; Tue, 30 Oct 2007 16:15:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ImxUo-0005qD-Gn for emacs-devel@gnu.org; Tue, 30 Oct 2007 16:15:30 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ImxUo-0005q0-9r for emacs-devel@gnu.org; Tue, 30 Oct 2007 16:15:30 -0400 Original-Received: from x-132-204-242-121.xtpr.umontreal.ca ([132.204.242.121] helo=ceviche.home) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1ImxUk-0004lu-3J; Tue, 30 Oct 2007 16:15:26 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 01EA1B4ABE; Tue, 30 Oct 2007 16:15:18 -0400 (EDT) In-Reply-To: (Drew Adams's message of "Tue, 30 Oct 2007 12:49:32 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:82155 Archived-At: >> 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? Hmm.... [grepping frantically] ... oh I have it, it's in skeleton.el: (or (eq last-command 'mouse-drag-region) (and transient-mark-mode mark-active)) -- Stefan