Subject: Re: bug#58608: 29.0.50; Nasty bug with pasting primary selection in term buffers

From: Phil Sainty <[email-masked]>
Date: Wed, 19 Oct 2022 15:09:57 +1300

Or with documentation included, in case that *is* the correct fix:

-  (term-send-raw-string (gui-get-primary-selection)))
+  ;; Prevent the `deactivate-mark' call in `term-send-raw-string'
+  ;; from changing this selection.
+  (let ((select-active-regions nil))
+    (term-send-raw-string (gui-get-primary-selection))))