# HG changeset patch # User Richard M. Stallman # Date 738278348 0 # Node ID dd65780e62460bcc2ad5e9c608ace8aa8d917468 # Parent 8bf84289be173cdc37a68a19a410299b27b507f2 (kill-new): Pass t as 2nd arg to interprogram-cut-function. diff -r 8bf84289be17 -r dd65780e6246 lisp/simple.el --- a/lisp/simple.el Mon May 24 21:13:21 1993 +0000 +++ b/lisp/simple.el Mon May 24 21:19:08 1993 +0000 @@ -900,20 +900,23 @@ "Function to call to make a killed region available to other programs. Most window systems provide some sort of facility for cutting and -pasting text between the windows of different programs. On startup, -this variable is set to a function which emacs will call whenever text -is put in the kill ring to make the new kill available to other +pasting text between the windows of different programs. +This variable holds a function that Emacs calls whenever text +is put in the kill ring, to make the new kill available to other programs. -The function takes one argument, TEXT, which is a string containing -the text which should be made available.") +The function takes one or two arguments. +The first argument, TEXT, is a string containing +the text which should be made available. +The second, PUSH, if non-nil means this is a \"new\" kill; +nil means appending to an \"old\" kill.") (defvar interprogram-paste-function nil "Function to call to get text cut from other programs. Most window systems provide some sort of facility for cutting and -pasting text between the windows of different programs. On startup, -this variable is set to a function which emacs will call to obtain +pasting text between the windows of different programs. +This variable holds a function that Emacs calls to obtain text that other programs have provided for pasting. The function should be called with no arguments. If the function @@ -957,7 +960,7 @@ (setcdr (nthcdr (1- kill-ring-max) kill-ring) nil)) (setq kill-ring-yank-pointer kill-ring) (if interprogram-cut-function - (funcall interprogram-cut-function string))) + (funcall interprogram-cut-function string t))) (defun kill-append (string before-p) "Append STRING to the end of the latest kill in the kill ring.