aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/term
diff options
context:
space:
mode:
authorKenichi Handa2003-03-13 06:23:59 +0000
committerKenichi Handa2003-03-13 06:23:59 +0000
commit99b631c8bfeff7bfcf9a31abda79c03ccab0475b (patch)
tree7731ba3589b777a13bcdc491ec4d407b8cd98e80 /lisp/term
parent25cc008095f5749c5aaf74a88b017a95f2b0fa3a (diff)
downloademacs-99b631c8bfeff7bfcf9a31abda79c03ccab0475b.tar.gz
emacs-99b631c8bfeff7bfcf9a31abda79c03ccab0475b.zip
(x-select-text): Don't set a text containing
eight-bit-control/graphic into the cut buffer.
Diffstat (limited to 'lisp/term')
-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.