aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorNoam Postavsky2017-02-11 19:47:55 -0500
committerNoam Postavsky2017-06-29 19:40:23 -0400
commitc87c87fcc361494815bbd1d92f450b0b80a3ecbb (patch)
tree60d7ae515b92944d1e90772df3ae5dac05b5c715 /doc
parent0ae28c71c739dfecbe94a5ff6786e81021d2d1cf (diff)
downloademacs-c87c87fcc361494815bbd1d92f450b0b80a3ecbb.tar.gz
emacs-c87c87fcc361494815bbd1d92f450b0b80a3ecbb.zip
Escape NUL bytes in X selections (Bug#6991)
* lisp/term/w32-win.el (w32--set-selection): * lisp/select.el (xselect--encode-string): Replace NUL bytes with "\0". * doc/emacs/killing.texi: Document new behavior. * etc/NEWS (times): Announce it.
Diffstat (limited to 'doc')
-rw-r--r--doc/emacs/killing.texi4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/emacs/killing.texi b/doc/emacs/killing.texi
index 47de0531292..0b5efd04a18 100644
--- a/doc/emacs/killing.texi
+++ b/doc/emacs/killing.texi
@@ -519,6 +519,10 @@ when exiting Emacs; if you wish to prevent Emacs from transferring
519data to the clipboard manager, change the variable 519data to the clipboard manager, change the variable
520@code{x-select-enable-clipboard-manager} to @code{nil}. 520@code{x-select-enable-clipboard-manager} to @code{nil}.
521 521
522 Since strings containing NUL bytes are usually truncated when passed
523through the clipboard, Emacs replaces such characters with ``\0''
524before transfering them to the system's clipboard.
525
522@vindex select-enable-primary 526@vindex select-enable-primary
523@findex clipboard-kill-region 527@findex clipboard-kill-region
524@findex clipboard-kill-ring-save 528@findex clipboard-kill-ring-save