Commit 65a0c81b authored by Jan Djärv's avatar Jan Djärv
Browse files

* term/x-win.el (x-select-text, x-cut-buffer-or-selection-value):

 Encode/decode text to/from cut buffers to/from iso-latin-1 only.
parent b9660a6f
2006-11-10 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
* term/x-win.el (x-select-text, x-cut-buffer-or-selection-value):
Encode/decode text to/from cut buffers to/from iso-latin-1 only.
2006-11-10 Juanma Barranquero <lekktu@gmail.com>
 
* bs.el (bs--window-for-buffer): Remove.
......@@ -2164,8 +2164,8 @@ in the clipboard."
(t
(setq x-last-selected-text-cut text
x-last-selected-text-cut-encoded
(encode-coding-string text (or locale-coding-system
'iso-latin-1)))
;; ICCCM says cut buffer always contain ISO-Latin-1
(encode-coding-string text 'iso-latin-1))
(x-set-cut-buffer x-last-selected-text-cut-encoded push)))
(x-set-selection 'PRIMARY text)
(setq x-last-selected-text-primary text)
......@@ -2346,8 +2346,8 @@ order until succeed.")
(t
(setq x-last-selected-text-cut-encoded cut-text
x-last-selected-text-cut
(decode-coding-string cut-text (or locale-coding-system
'iso-latin-1))))))
;; ICCCM says cut buffer always contain ISO-Latin-1
(decode-coding-string cut-text 'iso-latin-1)))))
;; As we have done one selection, clear this now.
(setq next-selection-coding-system nil)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment