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 14:19:20 +1300

Looking at the docstring for `deactivate-mark' told me about
`select-active-regions'.  I don't know whether this is the correct
solution, but I can confirm that this change to `term-mouse-paste'
appears (after only cursory testing) to fix the bug:

-  (term-send-raw-string (gui-get-primary-selection)))
+  (let ((select-active-regions nil))
+    (term-send-raw-string (gui-get-primary-selection))))