From 0770d7a0d084ffa3287b4232ef548f885d6fa4b4 Mon Sep 17 00:00:00 2001 From: Phil Sainty Date: Mon, 27 Mar 2023 01:19:19 +1300 Subject: [PATCH] * 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. --- lisp/term.el | 1 - 1 file changed, 1 deletion(-) 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 -- 2.39.2