]> git.eshelyaron.com Git - emacs.git/commitdiff
(isearch-yank-x-selection): Doc fix.
authorRichard M. Stallman <rms@gnu.org>
Mon, 27 Apr 1998 22:05:53 +0000 (22:05 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 27 Apr 1998 22:05:53 +0000 (22:05 +0000)
lisp/isearch.el

index bcc82b79b8b7695a1c33ff85a234099871d68340..05710466adc55b3d3b190f31b6d291135cbb41a6 100644 (file)
@@ -966,7 +966,11 @@ If no previous match was done, just beep."
   (isearch-yank-string (current-kill 0)))
 
 (defun isearch-yank-x-selection ()
-  "Pull current X selection into search string."
+  "Pull current X selection into search string.
+Some users like to put this command on Mouse-2.
+To do that, evaluate these expressions:
+    (define-key isearch-mode-map [down-mouse-2] nil)
+    (define-key isearch-mode-map [mouse-2] 'isearch-yank-x-selection)"
   (interactive)
   (isearch-yank-string (x-get-selection)))