aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/term/x-win.el12
1 files changed, 9 insertions, 3 deletions
diff --git a/lisp/term/x-win.el b/lisp/term/x-win.el
index 5665d5a9471..c25b7402260 100644
--- a/lisp/term/x-win.el
+++ b/lisp/term/x-win.el
@@ -2126,14 +2126,20 @@ This is in addition to, but in preference to, the primary selection."
2126 (cond ((>= (length text) x-cut-buffer-max) 2126 (cond ((>= (length text) x-cut-buffer-max)
2127 (x-set-cut-buffer "" push) 2127 (x-set-cut-buffer "" push)
2128 (setq x-last-selected-text-cut "")) 2128 (setq x-last-selected-text-cut ""))
2129 ((and (multibyte-string-p text)
2130 (let ((charsets (find-charset-string text)))
2131 (or (memq 'eight-bit-control charsets)
2132 (memq 'eight-bit-graphic charsets))))
2133 (x-set-cut-buffer "" push)
2134 (setq x-last-selected-text-cut ""))
2129 (t 2135 (t
2130 (x-set-cut-buffer text push) 2136 (x-set-cut-buffer text push)
2131 (setq x-last-selected-text-cut text))) 2137 (setq x-last-selected-text-cut text)))
2132 (x-set-selection 'PRIMARY text) 2138 (x-set-selection 'PRIMARY text)
2133 (setq x-last-selected-text-primary text) 2139 (setq x-last-selected-text-primary text)
2134 (when x-select-enable-clipboard 2140 (when x-select-enable-clipboard
2135 (x-set-selection 'CLIPBOARD text) 2141 (x-set-selection 'CLIPBOARD text)
2136 (setq x-last-selected-text-clipboard text)) 2142 (setq x-last-selected-text-clipboard text))
2137 ) 2143 )
2138 2144
2139;;; Return the value of the current X selection. 2145;;; Return the value of the current X selection.