aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1993-05-24 21:19:08 +0000
committerRichard M. Stallman1993-05-24 21:19:08 +0000
commit9f112a3d4c5f47e0fb6bed349861c8470cd3b938 (patch)
tree521eb7159cf76f0c73aeb0825bdf854340cf241c
parent798aa8d0a7116e8bda2d204e851573c35464925c (diff)
downloademacs-9f112a3d4c5f47e0fb6bed349861c8470cd3b938.tar.gz
emacs-9f112a3d4c5f47e0fb6bed349861c8470cd3b938.zip
(kill-new): Pass t as 2nd arg to interprogram-cut-function.
-rw-r--r--lisp/simple.el19
1 files changed, 11 insertions, 8 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index 729685ddaed..72bca14e651 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -900,20 +900,23 @@ when given no argument at the beginning of a line."
900 "Function to call to make a killed region available to other programs. 900 "Function to call to make a killed region available to other programs.
901 901
902Most window systems provide some sort of facility for cutting and 902Most window systems provide some sort of facility for cutting and
903pasting text between the windows of different programs. On startup, 903pasting text between the windows of different programs.
904this variable is set to a function which emacs will call whenever text 904This variable holds a function that Emacs calls whenever text
905is put in the kill ring to make the new kill available to other 905is put in the kill ring, to make the new kill available to other
906programs. 906programs.
907 907
908The function takes one argument, TEXT, which is a string containing 908The function takes one or two arguments.
909the text which should be made available.") 909The first argument, TEXT, is a string containing
910the text which should be made available.
911The second, PUSH, if non-nil means this is a \"new\" kill;
912nil means appending to an \"old\" kill.")
910 913
911(defvar interprogram-paste-function nil 914(defvar interprogram-paste-function nil
912 "Function to call to get text cut from other programs. 915 "Function to call to get text cut from other programs.
913 916
914Most window systems provide some sort of facility for cutting and 917Most window systems provide some sort of facility for cutting and
915pasting text between the windows of different programs. On startup, 918pasting text between the windows of different programs.
916this variable is set to a function which emacs will call to obtain 919This variable holds a function that Emacs calls to obtain
917text that other programs have provided for pasting. 920text that other programs have provided for pasting.
918 921
919The function should be called with no arguments. If the function 922The function should be called with no arguments. If the function
@@ -957,7 +960,7 @@ If `interprogram-cut-function' is non-nil, apply it to STRING."
957 (setcdr (nthcdr (1- kill-ring-max) kill-ring) nil)) 960 (setcdr (nthcdr (1- kill-ring-max) kill-ring) nil))
958 (setq kill-ring-yank-pointer kill-ring) 961 (setq kill-ring-yank-pointer kill-ring)
959 (if interprogram-cut-function 962 (if interprogram-cut-function
960 (funcall interprogram-cut-function string))) 963 (funcall interprogram-cut-function string t)))
961 964
962(defun kill-append (string before-p) 965(defun kill-append (string before-p)
963 "Append STRING to the end of the latest kill in the kill ring. 966 "Append STRING to the end of the latest kill in the kill ring.