From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David De La Harpe Golden Newsgroups: gmane.emacs.devel Subject: Re: how to test whether region is active during a mouse event? Date: Mon, 03 Aug 2009 01:13:12 +0100 Message-ID: <4A762B98.1060307@harpegolden.net> References: <1907CCC7DE424D73AA8FD0E2F798DF49@us.oracle.com> <4A75F794.103@harpegolden.net> <4A760F98.8090904@harpegolden.net> <9F61EE6C95DF490CBF8F82BDA876EC08@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1249258427 3672 80.91.229.12 (3 Aug 2009 00:13:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Aug 2009 00:13:47 +0000 (UTC) Cc: emacs-devel@gnu.org To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 03 02:13:40 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 1MXlBL-0007rX-6y for ged-emacs-devel@m.gmane.org; Mon, 03 Aug 2009 02:13:39 +0200 Original-Received: from localhost ([127.0.0.1]:45678 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MXlBK-0007Xw-Ar for ged-emacs-devel@m.gmane.org; Sun, 02 Aug 2009 20:13:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MXlBD-0007Xo-QS for emacs-devel@gnu.org; Sun, 02 Aug 2009 20:13:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MXlB9-0007XO-BG for emacs-devel@gnu.org; Sun, 02 Aug 2009 20:13:31 -0400 Original-Received: from [199.232.76.173] (port=34853 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MXlB9-0007XL-6J for emacs-devel@gnu.org; Sun, 02 Aug 2009 20:13:27 -0400 Original-Received: from harpegolden.net ([65.99.215.13]:47127) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MXlB8-0007bV-PI for emacs-devel@gnu.org; Sun, 02 Aug 2009 20:13:27 -0400 Original-Received: from [87.198.47.55] (87-198-47-55.ptr.magnet.ie [87.198.47.55]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "David De La Harpe Golden", Issuer "David De La Harpe Golden Personal CA rev 3" (verified OK)) by harpegolden.net (Postfix) with ESMTP id 7E0898275; Mon, 3 Aug 2009 01:13:25 +0100 (IST) User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090701) In-Reply-To: <9F61EE6C95DF490CBF8F82BDA876EC08@us.oracle.com> X-detected-operating-system: 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:113580 Archived-At: Drew Adams wrote: > FWIW - > > I never heard of `select-active-regions'. It's actually been discussed quite a bit on-list*, though in bursts spread over the past couple of years. Its behaviour until recently and in the 23.1 branch was flawed. The various required fixes were a bit too involved for the release and are only in trunk, so it was intentionally removed (or at least de-documented) from 23.1 just a bit before the release [1]. * e.g. Eli Zaretskii just recently raised a couple of issues with the initial fixed (see bug #973) implementation now in trunk, I am presently attempting to bring up emacs under wine to look more closely at them - basically (a) making it optionally affect clipboard and (b) making it a bit less platform-specific in implementation. > Doc string: > "If non-nil, an active region automatically becomes the window selection." > > I have no idea what the "window-selection" is. And that term is not even used > anywhere else in the same file that defines it (simple.el). Is it > described/defined anywhere? It's pretty close to X11 terminology, though I would have said "window system primary selection". Primary? X11 has multiple vaguely-clipboard-like entities called "selections", a perennial source of confusion. select-active-regions in conjunction with a few other customizations helps emacs optionally largely match one particular convention for their use. primary and select-active-regions are mentioned in the post-23.1 manual, at Frames > Cut and Paste > Cut/Paste Other App > This is a user option. If you really expect users to understand and > use it, Only post-23.1... [1] http://cvs.savannah.gnu.org/viewvc/emacs/etc/NEWS?view=log&root=emacs&pathrev=EMACS_23_1#rev1.2029.2.3