From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Romain Francoise Newsgroups: gmane.emacs.devel Subject: Re: [jdsmith@as.arizona.edu: mouse-yank-at-point in Comint modes] Date: Sat, 09 Dec 2006 14:20:22 +0100 Organization: orebokech dot com Message-ID: <87y7ph1a09.fsf@pacem.orebokech.com> References: <87ac1x2ubx.fsf@pacem.orebokech.com> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1165670411 25858 80.91.229.10 (9 Dec 2006 13:20:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 9 Dec 2006 13:20:11 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 09 14:20:09 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1Gt27c-0007Aw-Iv for ged-emacs-devel@m.gmane.org; Sat, 09 Dec 2006 14:20:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gt27c-0002ZG-35 for ged-emacs-devel@m.gmane.org; Sat, 09 Dec 2006 08:20:08 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gt27R-0002ZB-Bn for emacs-devel@gnu.org; Sat, 09 Dec 2006 08:19:57 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gt27P-0002Yz-TI for emacs-devel@gnu.org; Sat, 09 Dec 2006 08:19:57 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gt27P-0002Yw-Pk for emacs-devel@gnu.org; Sat, 09 Dec 2006 08:19:55 -0500 Original-Received: from [82.67.41.165] (helo=yeast.orebokech.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Gt27P-0007Sh-FD for emacs-devel@gnu.org; Sat, 09 Dec 2006 08:19:55 -0500 Original-Received: from pacem.orebokech.com (pacem.orebokech.com [192.168.1.3]) by yeast.orebokech.com (Postfix) with ESMTP id 9803713484 for ; Sat, 9 Dec 2006 14:19:54 +0100 (CET) Original-Received: by pacem.orebokech.com (Postfix, from userid 1000) id 87F335243B; Sat, 9 Dec 2006 14:20:22 +0100 (CET) Original-To: emacs-devel@gnu.org X-Face: }9mYu,e_@+e!`Z-P5kVXa3\_b:hdJ"B)ww[&=b<2=awG:GOIM (Johan =?iso-8859-1?Q?Bockg=E5rd's?= message of "Sat\, 09 Dec 2006 13\:17\:33 +0100") 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:63505 Archived-At: bojohan+news@dd.chalmers.se (Johan Bockg=E5rd) writes: > The call to `mouse-set-point' that was removed used to select the > comint window/buffer. After this change the code is executed in the > wrong buffer if a different window was selected before the click. Ah, right. It seems that trying to handle this case is hopeless because when `mouse-yank-at-point' is t, yanking will always try to yank in the wrong buffer if the target buffer is not current when Emacs receives the event (since `mouse-yank-at-click' skips the `mouse-set-point' call in that case). So instead of adding a workaround for this problem, I just reverted my change. I guess that calling `posn-window' to select the window first would work, but it's better left for later... Thanks, --=20 Romain Francoise | The sea! the sea! the open it's a miracle -- http://orebokech.com/ | sea! The blue, the fresh, the | ever free! --Bryan W. Procter