From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bob Newsgroups: gmane.emacs.devel Subject: mouse-yank-at-point in Comint modes Date: Thu, 11 Sep 2008 15:37:39 -0600 Message-ID: <760710620809111437m29314548g9255bbb27c8bb275@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_84_13345519.1221169059833" X-Trace: ger.gmane.org 1221169078 5595 80.91.229.12 (11 Sep 2008 21:37:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Sep 2008 21:37:58 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 11 23:38:53 2008 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 1KdtsK-0008RG-J2 for ged-emacs-devel@m.gmane.org; Thu, 11 Sep 2008 23:38:53 +0200 Original-Received: from localhost ([127.0.0.1]:34518 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KdtrJ-0002bj-0e for ged-emacs-devel@m.gmane.org; Thu, 11 Sep 2008 17:37:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KdtrF-0002be-18 for emacs-devel@gnu.org; Thu, 11 Sep 2008 17:37:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KdtrE-0002bM-EC for emacs-devel@gnu.org; Thu, 11 Sep 2008 17:37:44 -0400 Original-Received: from [199.232.76.173] (port=33150 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KdtrE-0002bH-BE for emacs-devel@gnu.org; Thu, 11 Sep 2008 17:37:44 -0400 Original-Received: from yx-out-1718.google.com ([74.125.44.155]:25631) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KdtrD-0004Bw-Li for emacs-devel@gnu.org; Thu, 11 Sep 2008 17:37:44 -0400 Original-Received: by yx-out-1718.google.com with SMTP id 34so208428yxf.66 for ; Thu, 11 Sep 2008 14:37:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=+spEUc2/pcJOiT1zRGs9nMd99cgA4pDbUeDH0zL/YeE=; b=ie8vh1SB+Qua+7VHwnHZP9U/2Q6jCEn0ykefKbwjKb6gJmsOUINrT7qHFBrnLoOVDL Pns8rkQX3Fan0pSdPYzPGRvtC3UPVJNDkcF0tkLOPjS8N178UrNOirDBhAZJvq17Vrxp eQQBfXyfMLLjVb6W6uqIsjAkMG9T2f2uIxq3I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=CiOJvtLrpKeL2xiTNnp/9Fc+/cZssdumAm3LQtwJPYokny62fKSMTinmulo7BwbW/X dHugJBDWECHCu8pZh8gpre6tu5vHAVDSXRBnDdEiC7NJDbDcog3+OnNVSP3OynZUIi2J bZe18SeSHh7yh9hgfbHgFGWHfqjhVuU++I8Kg= Original-Received: by 10.86.27.19 with SMTP id a19mr2546353fga.56.1221169059854; Thu, 11 Sep 2008 14:37:39 -0700 (PDT) Original-Received: by 10.86.89.19 with HTTP; Thu, 11 Sep 2008 14:37:39 -0700 (PDT) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:103832 Archived-At: ------=_Part_84_13345519.1221169059833 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline The simple fix described in this email: http://www.nabble.com/mouse-yank-at-point-in-Comint-modes-td7731895.html never got applied to the trunk. Thus the problem of yanks not honoring mouse-yank-at-point is still present in comint mode. Is it possible that it could be applied? Here is an updated version of the patch: --- emacs/lisp/comint.el 2008-09-08 14:46:43.000000000 -0600 +++ emacs-080908/lisp/comint.el 2008-09-11 15:24:11.000000000 -0600 @@ -815,7 +815,7 @@ If there is no previous input at point, run the command specified by the global keymap (usually `mouse-yank-at-point')." (interactive "e") - (mouse-set-point event) + (unless mouse-yank-at-point (mouse-set-point event)) (let ((pos (posn-point (event-end event))) field input) (with-selected-window (posn-window (event-end event)) Thanks, Bob ------=_Part_84_13345519.1221169059833 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
The simple fix described in this email:

http://www.nabble.com/mouse-yank-at-point-in-Comint-modes-td7731895.html

never got applied to the trunk.  Thus the problem of yanks not honoring mouse-yank-at-point is still present in comint mode.  Is it possible that it could be applied?  Here is an updated version of the patch:

--- emacs/lisp/comint.el    2008-09-08 14:46:43.000000000 -0600
+++ emacs-080908/lisp/comint.el    2008-09-11 15:24:11.000000000 -0600
@@ -815,7 +815,7 @@
 If there is no previous input at point, run the command specified
 by the global keymap (usually `mouse-yank-at-point')."
   (interactive "e")
-  (mouse-set-point event)
+  (unless mouse-yank-at-point (mouse-set-point event))
   (let ((pos (posn-point (event-end event)))
     field input)
     (with-selected-window (posn-window (event-end event))

Thanks,
Bob
------=_Part_84_13345519.1221169059833--