Variable: kill-transform-function
kill-transform-function is a customizable variable defined in
simple.el.gz.
Value
nil
Documentation
Function to call to transform a string before it's put on the kill ring.
The function is called with one parameter (the string that's to be put on the kill ring). It should return a string or nil. If the latter, the string is not put on the kill ring.
This variable was added, or its default value changed, in Emacs 28.1.
Probably introduced at or before Emacs version 28.1.
Source Code
;; Defined in /usr/src/emacs/lisp/simple.el.gz
(defcustom kill-transform-function nil
"Function to call to transform a string before it's put on the kill ring.
The function is called with one parameter (the string that's to
be put on the kill ring). It should return a string or nil. If
the latter, the string is not put on the kill ring."
:type '(choice (const :tag "No transform" nil)
function)
:group 'killing
:version "28.1")