From: "Drew Adams" <drew.adams@oracle.com>
To: "'Harry Putnam'" <reader@newsguy.com>, <help-gnu-emacs@gnu.org>
Subject: RE: middle mouse paste into isearch minibuffer
Date: Fri, 11 Nov 2011 06:40:06 -0800 [thread overview]
Message-ID: <BC5841500AF9483FBA5E7C95904D3053@us.oracle.com> (raw)
In-Reply-To: <87k476wxx0.fsf@newsguy.com>
> "Drew Adams" <drew.adams@oracle.com> 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.
next prev parent reply other threads:[~2011-11-11 14:40 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-25 5:38 middle mouse paste into isearch minibuffer Perry Wagle
2011-10-25 10:33 ` XeCycle
2011-10-26 4:36 ` Perry Wagle
2011-10-26 5:23 ` XeCycle
2011-10-26 5:34 ` Perry Wagle
2011-11-10 4:09 ` Perry Wagle
2011-11-10 20:53 ` Drew Adams
2011-11-10 21:21 ` Perry Wagle
2011-11-11 14:12 ` Harry Putnam
2011-11-11 14:40 ` Drew Adams [this message]
2011-11-11 15:28 ` Harry Putnam
2011-11-11 15:36 ` Harry Putnam
2011-11-11 15:34 ` Harry Putnam
2011-11-11 15:48 ` Drew Adams
2011-11-12 1:22 ` Drew Adams
[not found] <mailman.1010.1319521101.15868.help-gnu-emacs@gnu.org>
2011-10-25 13:52 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BC5841500AF9483FBA5E7C95904D3053@us.oracle.com \
--to=drew.adams@oracle.com \
--cc=help-gnu-emacs@gnu.org \
--cc=reader@newsguy.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.