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: how to test whether region is active during a mouse event? Date: Sun, 2 Aug 2009 12:00:30 -0700 Message-ID: <1B1316307B0C41E4BAD514FDF25B2EF7@us.oracle.com> References: <1907CCC7DE424D73AA8FD0E2F798DF49@us.oracle.com> 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 1249239634 25527 80.91.229.12 (2 Aug 2009 19:00:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 2 Aug 2009 19:00:34 +0000 (UTC) To: Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 02 21:00:27 2009 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 1MXgIF-000304-2Y for ged-emacs-devel@m.gmane.org; Sun, 02 Aug 2009 21:00:27 +0200 Original-Received: from localhost ([127.0.0.1]:59931 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MXgIE-0000hZ-GP for ged-emacs-devel@m.gmane.org; Sun, 02 Aug 2009 15:00:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MXgIA-0000hU-P9 for emacs-devel@gnu.org; Sun, 02 Aug 2009 15:00:22 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MXgI5-0000hI-FM for emacs-devel@gnu.org; Sun, 02 Aug 2009 15:00:21 -0400 Original-Received: from [199.232.76.173] (port=49364 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MXgI5-0000hF-7j for emacs-devel@gnu.org; Sun, 02 Aug 2009 15:00:17 -0400 Original-Received: from rcsinet12.oracle.com ([148.87.113.124]:63042 helo=rgminet12.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MXgI4-0004cD-Q2 for emacs-devel@gnu.org; Sun, 02 Aug 2009 15:00:16 -0400 Original-Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rgminet12.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n72J0BUx010578 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 2 Aug 2009 19:00:13 GMT Original-Received: from abhmt009.oracle.com (abhmt009.oracle.com [141.146.116.18]) by acsinet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n72J0WHv021242 for ; Sun, 2 Aug 2009 19:00:32 GMT Original-Received: from dradamslap1 (/141.144.232.5) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 02 Aug 2009 12:00:10 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <1907CCC7DE424D73AA8FD0E2F798DF49@us.oracle.com> Thread-Index: AcoTosT/droDxARJSiOMoIwKPJpnkwAAEUSw X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Source-IP: abhmt009.oracle.com [141.146.116.18] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090201.4A75E23B.01CA:SCFSTAT5015188,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) 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:113562 Archived-At: P.S. I suppose I could assume the down, down, click scenario and record the region info for only the first down. IOW, I could save some state. But I'm hoping for something a bit cleaner and simpler. Also, I had the impression (not sure, but I think I saw this when testing) that if the button-click is in a different frame from the one that had the focus, then a `switch-frame' event replaces the first `down'. If that kind of thing happens, then I can't assume a down, down, click event sequence.