From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: middle mouse paste into isearch minibuffer Date: Fri, 11 Nov 2011 06:40:06 -0800 Message-ID: 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> <87k476wxx0.fsf@newsguy.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1321022435 3463 80.91.229.12 (11 Nov 2011 14:40:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 11 Nov 2011 14:40:35 +0000 (UTC) To: "'Harry Putnam'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 11 15:40:31 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 1ROsHO-0001CM-OM for geh-help-gnu-emacs@m.gmane.org; Fri, 11 Nov 2011 15:40:30 +0100 Original-Received: from localhost ([::1]:41326 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROsHO-0004M1-85 for geh-help-gnu-emacs@m.gmane.org; Fri, 11 Nov 2011 09:40:30 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:46298) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROsHE-0004KX-BM for help-gnu-emacs@gnu.org; Fri, 11 Nov 2011 09:40:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ROsHC-0002gk-QY for help-gnu-emacs@gnu.org; Fri, 11 Nov 2011 09:40:20 -0500 Original-Received: from acsinet15.oracle.com ([141.146.126.227]:22418) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROsHC-0002gW-LT for help-gnu-emacs@gnu.org; Fri, 11 Nov 2011 09:40:18 -0500 Original-Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by acsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id pABEeGv0026434 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 11 Nov 2011 14:40:16 GMT Original-Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id pABEeFL3029140 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 11 Nov 2011 14:40:15 GMT Original-Received: from abhmt107.oracle.com (abhmt107.oracle.com [141.146.116.59]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id pABEeAOO012059; Fri, 11 Nov 2011 08:40:10 -0600 Original-Received: from dradamslap1 (/10.159.61.9) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 11 Nov 2011 06:40:09 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <87k476wxx0.fsf@newsguy.com> Thread-Index: AcygfBZ0VjxjbOdVSSyzvAu2E97O2gAAuI6w X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6109 X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A020201.4EBD33D1.001A,ss=1,re=0.000,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 141.146.126.227 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:82852 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? 1. Select text with mouse. 2. C-s. 3. Click `mouse-2'. The selected text becomes the text to find (the search string), and the first occurrence is sought/found. It might not work for everyone in every Emacs version. If your isearch.el already has function `isearch-mouse-2', and if your mouse selection fills the X selection, then it should work. It should work in Emacs 24 with a graphic display, for example. > 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. He selects first, then hits `C-s', then clicks `mouse-2'. Otherwise, what you say is what he's trying to do. > You mean while holding C-s with left hand right? No - see above. > And you also assume running emacs in X right? Yes, AFAIK. Something needs to put the selected text into the X selection, so that `isearch-yank-x-selection' can retrieve it.