From: Phil Sainty Date: Sun, 26 Mar 2023 12:19:19 +0000 (+1300) Subject: * lisp/term.el (term-mouse-paste) Do not treat as a yank command (bug#58608) X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0770d7a0d084ffa3287b4232ef548f885d6fa4b4;p=emacs.git * lisp/term.el (term-mouse-paste) Do not treat as a yank command (bug#58608) This command sends the primary selection to the inferior process rather than inserting it into the buffer, and it's entirely up to the process as to whether anything at all gets inserted into the buffer as a result, so this is not a `yank' as far as Emacs is concerned. --- diff --git a/lisp/term.el b/lisp/term.el index 2e719567058..e1392908b90 100644 --- a/lisp/term.el +++ b/lisp/term.el @@ -1370,7 +1370,6 @@ Entry to this mode runs the hooks on `term-mode-hook'." (interactive "e") ;; Give temporary modes such as isearch a chance to turn off. (run-hooks 'mouse-leave-buffer-hook) - (setq this-command 'yank) (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