Function: isearch-mouse-2

isearch-mouse-2 is an interactive and byte-compiled function defined in isearch.el.gz.

Signature

(isearch-mouse-2 CLICK)

Documentation

Handle mouse-2 in Isearch mode.

For a click in the echo area, invoke isearch-yank-x-selection. Otherwise invoke whatever the calling mouse-2 command sequence is bound to outside of Isearch.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/isearch.el.gz
(defun isearch-mouse-2 (click)
  "Handle mouse-2 in Isearch mode.
For a click in the echo area, invoke `isearch-yank-x-selection'.
Otherwise invoke whatever the calling mouse-2 command sequence
is bound to outside of Isearch."
  (interactive "e")
  (let ((w (posn-window (event-start click)))
        (binding (let ((overriding-terminal-local-map nil)
                       ;; Key search depends on mode (bug#47755)
                       (isearch-mode nil))
                   (key-binding (this-command-keys-vector) t))))
    (if (or mouse-yank-at-point
            (and (window-minibuffer-p w)
                 (not (minibuffer-window-active-p w)))) ; in echo area
        (isearch-yank-x-selection)
      (when (functionp binding)
	(call-interactively binding)))))