From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: select and META key Date: Sun, 01 Apr 2007 13:45:42 -0400 Message-ID: <87ps6oj8e1.fsf@stupidchicken.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1175449600 32675 80.91.229.12 (1 Apr 2007 17:46:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 1 Apr 2007 17:46:40 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Apr 01 19:46:30 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 1HY48K-0001XQ-Tz for ged-emacs-devel@m.gmane.org; Sun, 01 Apr 2007 19:46:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HY4BG-0004vQ-Up for ged-emacs-devel@m.gmane.org; Sun, 01 Apr 2007 13:49:31 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HY4Ay-00046d-D0 for emacs-devel@gnu.org; Sun, 01 Apr 2007 13:49:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HY4Ax-00044l-Nh for emacs-devel@gnu.org; Sun, 01 Apr 2007 13:49:11 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HY4Ax-00044H-JP for emacs-devel@gnu.org; Sun, 01 Apr 2007 13:49:11 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HY480-0003eO-Jm for emacs-devel@gnu.org; Sun, 01 Apr 2007 13:46:08 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HY47q-0002ny-3T for emacs-devel@gnu.org; Sun, 01 Apr 2007 19:45:58 +0200 Original-Received: from 18.19.7.211 ([18.19.7.211]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 01 Apr 2007 19:45:58 +0200 Original-Received: from cyd by 18.19.7.211 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 01 Apr 2007 19:45:58 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 31 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 18.19.7.211 User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.96 (gnu/linux) Cancel-Lock: sha1:EpG9LOz43i98+UcOxNDzmkbk4zI= X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) 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:68892 Archived-At: Richard Stallman writes: > Would someone please check this for correctness? > If it is correct, please install it. > Then please report and ack. Looks correct to me. I've checked it in. > *** mouse.el.~1.241.8.44.~ 2007-03-19 09:11:41.000000000 +0800 > --- mouse.el 2007-03-28 11:26:41.000000000 +0800 > *************** > *** 1522,1528 **** > (with-current-buffer (window-buffer (posn-window posn)) > (if (numberp (posn-point posn)) > (setq beg (posn-point posn))) > ! (move-overlay mouse-secondary-overlay beg (posn-point end))))) > > (defun mouse-drag-secondary (start-event) > "Set the secondary selection to the text that the mouse is dragged over. > --- 1522,1532 ---- > (with-current-buffer (window-buffer (posn-window posn)) > (if (numberp (posn-point posn)) > (setq beg (posn-point posn))) > ! (move-overlay mouse-secondary-overlay beg (posn-point end)) > ! (x-set-selection > ! 'SECONDARY > ! (buffer-substring (overlay-start mouse-secondary-overlay) > ! (overlay-end mouse-secondary-overlay)))))) > > (defun mouse-drag-secondary (start-event) > "Set the secondary selection to the text that the mouse is dragged over.