diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2021-06-13 14:03:49 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2021-06-13 14:04:45 +0200 |
commit | 407062c296677f8d370706c8a620d2526a83df97 (patch) | |
tree | 35b62f1ca81476676b77647792b484f0533077d5 /doc/emacs/killing.texi | |
parent | dc471feee3bcac872cc52cdc73282955cd2d219d (diff) | |
download | emacs-407062c296677f8d370706c8a620d2526a83df97.tar.gz |
Allow save-interprogram-paste-before-kill to be a number
* doc/emacs/killing.texi (Clipboard): Document it.
* lisp/simple.el (save-interprogram-paste-before-kill): Extend
range (bug#41168).
(kill-new): Implement it (bug#41168).
Diffstat (limited to 'doc/emacs/killing.texi')
-rw-r--r-- | doc/emacs/killing.texi | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/doc/emacs/killing.texi b/doc/emacs/killing.texi index 56763b2967a..4291afec56f 100644 --- a/doc/emacs/killing.texi +++ b/doc/emacs/killing.texi @@ -522,11 +522,14 @@ clipboard. @vindex save-interprogram-paste-before-kill When an Emacs kill command puts text in the clipboard, the existing -clipboard contents are normally lost. Optionally, you can change -@code{save-interprogram-paste-before-kill} to @code{t}. Then Emacs -will first save the clipboard to its kill ring, preventing you from -losing the old clipboard data---at the risk of high memory consumption -if that data turns out to be large. +clipboard contents are normally lost. Optionally, Emacs can save the +existing clipboard contents to the kill ring, preventing you from +losing the old clipboard data. If +@code{save-interprogram-paste-before-kill} changed to a number, then +this data is copied over if it's smaller (in characters) than this +number. If this variable is any other non-@code{nil} value, it's +always copied over---at the risk of high memory consumption if that +data turns out to be large. Yank commands, such as @kbd{C-y} (@code{yank}), also use the clipboard. If another application ``owns'' the clipboard---i.e., if |