From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: XeCycle Newsgroups: gmane.emacs.help Subject: Re: middle mouse paste into isearch minibuffer Date: Wed, 26 Oct 2011 13:23:20 +0800 Message-ID: <8739eg1g3b.fsf@gmail.com> References: <888C0416-F844-40E5-AC4D-CE9E15E81278@mac.com> <87wrbtl5rd.fsf@gmail.com> <245928C3-C1D7-4CB5-B64E-DAF7828D1A6B@mac.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: dough.gmane.org 1319606638 19010 80.91.229.12 (26 Oct 2011 05:23:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 26 Oct 2011 05:23:58 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 26 07:23:54 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 1RIvxy-0003uR-Ek for geh-help-gnu-emacs@m.gmane.org; Wed, 26 Oct 2011 07:23:54 +0200 Original-Received: from localhost ([::1]:53171 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIvxx-0004HI-P2 for geh-help-gnu-emacs@m.gmane.org; Wed, 26 Oct 2011 01:23:53 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:47068) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIvxr-0004HD-0X for help-gnu-emacs@gnu.org; Wed, 26 Oct 2011 01:23:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RIvxp-0001Zw-RM for help-gnu-emacs@gnu.org; Wed, 26 Oct 2011 01:23:46 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:36787) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIvxp-0001Zh-Em for help-gnu-emacs@gnu.org; Wed, 26 Oct 2011 01:23:45 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RIvxn-0003rm-Cj for help-gnu-emacs@gnu.org; Wed, 26 Oct 2011 07:23:43 +0200 Original-Received: from 59.78.37.25 ([59.78.37.25]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 26 Oct 2011 07:23:43 +0200 Original-Received: from xecycle by 59.78.37.25 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 26 Oct 2011 07:23:43 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 93 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 59.78.37.25 User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.90 (gnu/linux) Cancel-Lock: sha1:UGSGFXX1h5f4pQ2IG8xhXu9hYIs= 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:82655 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Perry Wagle writes: [...] >> So you want to search the word at point, right? Try C-s C-w. If you >> need more, just press C-w more. > > No, I have something in my mouse-2 paste buffer, one way or another. Hmm, Emacs does have some problems with X primary selection. > Also, I can double mouse-1 anywhere in a word. Emacs wants me to be > more precise, by going to the beginning. If you don't mind writing some Elisp, it's easy. After all there's built-in M-h, you can refer to that. > The mouse is not a precise instrument. Rather, its a fast one, used > properly. You're right, but how do you define "properly"? I believe that's not my way of moving and clicking, it should be what I use it for. [...] >> I suggest throwing away your mouse. > > I suggest learning to use your mouse effectively with a real GUI. > Then come back and make more refined suggestions. I won't bother to learn more about mouse using, but here's the more refined suggestion: In GNU Emacs, use keyboard more, mouse less. As for me, I use mouse to drag the windows for resizing and moving, and when it's sometimes confused by the primary selection. If you're very annoyed when dealing X primary selection, you can write some Elisp to insert the primary selection at point, perhaps with an external tool like `xsel'. >> Some hints: Use isearch extensively. Jump to somewhere with C-s (or >> C-r), and after you finished your edits there, jump back with C-u C-SPC >> --- you may press it more if it failed. > > As I said above, the stuff gets into my mouse-2 paste buffer in a number = of > ways. I make no sense of the above. It doesn't apply. Sorry, I have the prejudice that one who uses mouse a lot will use mouse to move around in the buffer. If you don't do that, please ignore these. >>> Apparently, I'm going to have to do this myself, unless someone else >>> sees my light this time. What's the best way to do it? I have the >>> feeling I'm fighting the foundations of emacs to try to funnel mouse >>> button events into the minibuffer. If you're interested in mouse in Emacs, you can help extending it. In this case, you don't need to hack the core of Emacs yet. >>> Thanks for whatever help, hints, and guidance you can give me! > > With a little help from #emacs, I got isearch.el to do what I want, by > telling it to NOT abort itself if mouse-2 is pressed outside the > minibuffer. But now it drags the highlighted region all over the > place when I keep pressing control s. Don't know about this, since I don't know what you did exactly. =2D-=20 Carl Lei (XeCycle) Department of Physics, Shanghai Jiao Tong University OpenPGP public key: 7795E591 Fingerprint: 1FB6 7F1F D45D F681 C845 27F7 8D71 8EC4 7795 E591 --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEcBAEBAgAGBQJOp5lJAAoJEI1xjsR3leWRabwIALFbRn8Bs40QsYiCJJiu5PYq +MnEZyFig8QBiOIlJZSffZ8hzDOYnBi4RE32ckD2Ip1KYUj4zDz5KL3w49/tencF UQDUSsfkBepuUtFNwEKHzIjQp6Hg73CidiYjT+WX/GUmJQqs5QDrQqjJEeSlY5qo AmVVrvcvYrZrvDqZrX1/e51/FIAEXkTXuCWvvqM43wZ3fRWorGRdyB33+WPgRKSr Kaad4rzhn7CH5Ja0jOAkEVTYikOlGBdZeDJAtvjhaF9h+bFogT2q7xzQV7jajhuA nMaGSnInGfhjPcKi0ul7zFa4RXz8DQoM12oj9zWrpNrFDjVjq8RrTx37SbgG1jk= =CmV4 -----END PGP SIGNATURE----- --=-=-=--