From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Harry Putnam Newsgroups: gmane.emacs.help Subject: Re: middle mouse paste into isearch minibuffer Date: Fri, 11 Nov 2011 08:12:27 -0600 Organization: Still searching... Message-ID: <87k476wxx0.fsf@newsguy.com> References: <888C0416-F844-40E5-AC4D-CE9E15E81278@mac.com> <87wrbtl5rd.fsf@gmail.com> <245928C3-C1D7-4CB5-B64E-DAF7828D1A6B@mac.com> <8739eg1g3b.fsf@gmail.com> <9B70B016-B17B-4134-BB85-9E52CB3CFA3B@mac.com> <45A1589E-53D1-47AA-B13E-8B0870435586@mac.com> <5ED7E2FFE3584BFAA1828716412CB7BF@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1321020808 23945 80.91.229.12 (11 Nov 2011 14:13:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 11 Nov 2011 14:13:28 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 11 15:13:24 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ROrr9-0004VB-MM for geh-help-gnu-emacs@m.gmane.org; Fri, 11 Nov 2011 15:13:23 +0100 Original-Received: from localhost ([::1]:46368 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROrr8-0004At-Ra for geh-help-gnu-emacs@m.gmane.org; Fri, 11 Nov 2011 09:13:22 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:40174) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROrr1-0004Am-DL for help-gnu-emacs@gnu.org; Fri, 11 Nov 2011 09:13:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ROrr0-00047Z-4n for help-gnu-emacs@gnu.org; Fri, 11 Nov 2011 09:13:15 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:56128) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROrqz-00047V-Ui for help-gnu-emacs@gnu.org; Fri, 11 Nov 2011 09:13:14 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1ROrqw-0004Oq-DD for help-gnu-emacs@gnu.org; Fri, 11 Nov 2011 15:13:10 +0100 Original-Received: from c-98-215-179-64.hsd1.in.comcast.net ([98.215.179.64]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 11 Nov 2011 15:13:10 +0100 Original-Received: from reader by c-98-215-179-64.hsd1.in.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 11 Nov 2011 15:13:10 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 34 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-98-215-179-64.hsd1.in.comcast.net User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.90 (gnu/linux) Cancel-Lock: sha1:eJaPfrwAiJjS2m3TAXMO8IBQSEs= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:82851 Archived-At: "Drew Adams" writes: > Try this, Perry: > > (defun isearch-mouse-2 (click) > "..." > (interactive "e") > (isearch-yank-x-selection) > (deactivate-mark t)) What is supposed to happen there? Maybe I'm not understanding what Perry is trying to do. As I understood it, P would like to paste what ever is in highlighted buffer on middle mouse, into C-s. You mean while holding C-s with left hand right? And you also assume running emacs in X right? After evaluating Drews code... if I hold down C-s and try to press middle mouse... I see (in minibuffer) `C-mouse-down-2-' and a "text properties" dialog box pops up with the first 4 items greyed out. The first active item says "Special properties" and nothing is pasted whatsoever. I am in an elisp document if that matters. I don't mean to butt in here where a conversation that is actually over my head is going on, but I too would like to be able to paste to isearch with mid mouse as Perry describes. Perry, I've long thought it should be easier to do what you describe, but lacked the ability to explain the case as elegantly as you have. So I'm trying to ride on your coattails and get a functionality I've also hankered for.