From 9c2ffc771838765ec9f6b1621ec9c05617668aee Mon Sep 17 00:00:00 2001 From: Duncan Findlay Date: Thu, 2 Jun 2022 20:23:44 -0700 Subject: [PATCH 2/2] Support setting primary selection with xterm setSelection mode. This will cause the xterm user's X primary selection buffer to be updated when a selection is made in Emacs. * lisp/frame.el (display-selections-p): Return `t' when xterm's setSelection mode is enabled. --- lisp/frame.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lisp/frame.el b/lisp/frame.el index 27f99fb7d2..eb8ae1c27d 100644 --- a/lisp/frame.el +++ b/lisp/frame.el @@ -2164,6 +2164,9 @@ display-selections-p (not (null dos-windows-version)))) ((memq frame-type '(x w32 ns pgtk)) t) + ((and (memq frame-type '(t)) + (eq (terminal-parameter nil 'xterm--set-selection) t)) + t) (t nil)))) -- 2.36.1.255.ge46751e96f-goog