From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Herbert Euler" Newsgroups: gmane.emacs.bugs,gmane.emacs.devel Subject: RE: select and META key Date: Mon, 26 Mar 2007 19:32:33 +0800 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Trace: sea.gmane.org 1174908770 26433 80.91.229.12 (26 Mar 2007 11:32:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 26 Mar 2007 11:32:50 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org, emacs-devel@gnu.org To: herberteuler@hotmail.com, alinsoar@voila.fr Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 26 13:32:43 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HVnRJ-0001aB-Va for geb-bug-gnu-emacs@m.gmane.org; Mon, 26 Mar 2007 13:32:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HVnTY-0006R2-AR for geb-bug-gnu-emacs@m.gmane.org; Mon, 26 Mar 2007 06:35:00 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HVnTV-0006Q5-Is for bug-gnu-emacs@gnu.org; Mon, 26 Mar 2007 07:34:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HVnTT-0006Pf-U7 for bug-gnu-emacs@gnu.org; Mon, 26 Mar 2007 07:34:57 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HVnTT-0006PY-KL; Mon, 26 Mar 2007 06:34:55 -0500 Original-Received: from bay0-omc3-s8.bay0.hotmail.com ([65.54.246.208]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HVnRE-00033k-EU; Mon, 26 Mar 2007 07:32:36 -0400 Original-Received: from hotmail.com ([65.55.154.116]) by bay0-omc3-s8.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Mon, 26 Mar 2007 04:32:35 -0700 Original-Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 26 Mar 2007 04:32:35 -0700 Original-Received: from 65.55.154.123 by by143fd.bay143.hotmail.msn.com with HTTP; Mon, 26 Mar 2007 11:32:33 GMT X-Originating-IP: [216.145.54.7] X-Originating-Email: [herberteuler@hotmail.com] X-Sender: herberteuler@hotmail.com In-Reply-To: X-OriginalArrivalTime: 26 Mar 2007 11:32:35.0058 (UTC) FILETIME=[7321A520:01C76F9A] X-detected-kernel: Windows 2000 SP4, XP SP1+ X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:15639 gmane.emacs.devel:68587 Archived-At: >> > >1. Emacs -Q >> > > >> > >2. open en elisp file. for example edebug.el >> > > >> > >3. Press left mouse button and select a region. Before to release left >> > >mouse button press ALT. While keepeng ALT pressed release mouse button >> > > >> > >Result: a region is selected, and it cannot be unsected. >> > > >> > >This is a bug or an feature of emacs unknown by me? >> > >> > I think it is secondary selection. See also (info "(emacs) Secondary >> > Selection"). >> > >> > >> >> >>You are right. Thanks. > >However, there is surely a bug. Since you press the Meta key >only before releasing mouse-1, the event is slightly different from >pressing the Meta key before pressing mouse-1: in the former >case the first event is `down-mouse-1', and in the latter the >first event is `M-down-mouse-1'. Although the outcome is the >event `M-drag-mouse-1' in both cases, `mouse-drag-secondary' >seems not to get executed and other secondary selection >relating commands, such as `mouse-yank-secondary' fails to be >executed. And the opposite behaves in this way: 1. Press M-mouse-1 to generate a M-down-mouse-1 event. 2. Move mouse to generate a mouse-movement event. 3. First release the Meta key and then mouse-1. The outcome is drag-mouse-1 event. However, secondary selection has been successfully executed and pressing M-mouse-2 can certainly yank secondary selected texts. Are these behaviors desired? Regards, Guanpeng Xu _________________________________________________________________ FREE pop-up blocking with the new MSN Toolbar - get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/