From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: bojohan+news@dd.chalmers.se (Johan =?utf-8?Q?Bockg=C3=A5rd?=) Newsgroups: gmane.emacs.devel Subject: Re: [bportmann@yahoo.com: Re: mouse-yank-at-point in Comint modes] Date: Mon, 29 Jan 2007 15:48:49 +0100 Message-ID: References: <87tzya8swa.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1170082165 2789 80.91.229.12 (29 Jan 2007 14:49:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 29 Jan 2007 14:49:25 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 29 15:49:19 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 1HBXos-00037n-Bs for ged-emacs-devel@m.gmane.org; Mon, 29 Jan 2007 15:49:18 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HBXos-0006IV-0G for ged-emacs-devel@m.gmane.org; Mon, 29 Jan 2007 09:49:18 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HBXog-0006IG-NA for emacs-devel@gnu.org; Mon, 29 Jan 2007 09:49:06 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HBXof-0006I1-S9 for emacs-devel@gnu.org; Mon, 29 Jan 2007 09:49:06 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HBXof-0006Hy-Lv for emacs-devel@gnu.org; Mon, 29 Jan 2007 09:49:05 -0500 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_SHA:32) (Exim 4.52) id 1HBXof-0003J9-6i for emacs-devel@gnu.org; Mon, 29 Jan 2007 09:49:05 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HBXoX-00007O-Bq for emacs-devel@gnu.org; Mon, 29 Jan 2007 15:48:57 +0100 Original-Received: from gamma02.me.chalmers.se ([129.16.50.72]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 29 Jan 2007 15:48:57 +0100 Original-Received: from bojohan+news by gamma02.me.chalmers.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 29 Jan 2007 15:48:57 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 36 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: gamma02.me.chalmers.se Mail-Copies-To: never User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.90 (gnu/linux) Cancel-Lock: sha1:NQcDrmfkDXL0UOKbB5c3UWpfKdY= 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:65592 Archived-At: Chong Yidong writes: > I've checked in a fix into CVS. Good, but is this the correct thing to do when mouse-yank-at-point is nil?: + ;; Fall back to the global definition if (i) the selected + ;; buffer is not a comint buffer (which can happen if a + ;; non-comint window was selected and we clicked in a comint + ;; window) [...] Shouldn't the binding be looked up where you click in this case? Btw, the manual's description of what effect mouse-yank-at-point is supposed to have is confused: (info "(emacs)Secondary Selection") If `mouse-yank-at-point' is non-`nil', `M-Mouse-2' yanks at point. Then it does not matter precisely where you click; ALL THAT MATTERS IS WHICH WINDOW YOU CLICK ON. (info "(emacs)Mouse Commands") if `mouse-yank-at-point' is non-`nil', `Mouse-2' yanks at point. Then it does not matter where you click, OR EVEN WHICH OF THE FRAME'S WINDOWS YOU CLICK ON. The default value is `nil'. This variable also affects yanking the secondary selection. -- Johan Bockgård