Function: term-mouse-paste

term-mouse-paste is an interactive and byte-compiled function defined in term.el.gz.

Signature

(term-mouse-paste CLICK)

Documentation

Insert the primary selection at the position clicked on.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/term.el.gz
(defun term-mouse-paste (click)
  "Insert the primary selection at the position clicked on."
  (interactive "e")
  ;; Give temporary modes such as isearch a chance to turn off.
  (run-hooks 'mouse-leave-buffer-hook)
  (mouse-set-point click)
  ;; As we have moved point, bind `select-active-regions' to prevent
  ;; the `deactivate-mark' call in `term-send-raw-string' from
  ;; changing the primary selection (resulting in consecutive calls to
  ;; `term-mouse-paste' each sending different text). (bug#58608).
  ;; FIXME: Why does this command change point at all?
  (let ((select-active-regions nil))
    (term-send-raw-string (gui-get-primary-selection))))