Variable: save-interprogram-paste-before-kill
save-interprogram-paste-before-kill is a customizable variable defined
in simple.el.gz.
Value
nil
Documentation
Whether to save existing clipboard text into kill ring before replacing it.
A non-nil value means the clipboard text is saved to the kill-ring
prior to any kill command. Such text can subsequently be retrieved
via C-y (yank) M-y (yank-pop). This ensures that Emacs kill operations
do not irrevocably overwrite existing clipboard text.
The value of this variable can also be a number, in which case the
clipboard data is only saved to the kill-ring if it's shorter
(in characters) than that number. Any other non-nil value will save
the clipboard data unconditionally.
This variable was added, or its default value changed, in Emacs 23.2.
Probably introduced at or before Emacs version 23.2.
Source Code
;; Defined in /usr/src/emacs/lisp/simple.el.gz
(defcustom save-interprogram-paste-before-kill nil
"Whether to save existing clipboard text into kill ring before replacing it.
A non-nil value means the clipboard text is saved to the `kill-ring'
prior to any kill command. Such text can subsequently be retrieved
via \\[yank] \\[yank-pop]. This ensures that Emacs kill operations
do not irrevocably overwrite existing clipboard text.
The value of this variable can also be a number, in which case the
clipboard data is only saved to the `kill-ring' if it's shorter
(in characters) than that number. Any other non-nil value will save
the clipboard data unconditionally."
:type '(choice (const nil)
number
(other :tag "Always" t))
:group 'killing
:version "23.2")