diff options
| author | Richard M. Stallman | 1993-05-24 21:19:08 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-05-24 21:19:08 +0000 |
| commit | 9f112a3d4c5f47e0fb6bed349861c8470cd3b938 (patch) | |
| tree | 521eb7159cf76f0c73aeb0825bdf854340cf241c | |
| parent | 798aa8d0a7116e8bda2d204e851573c35464925c (diff) | |
| download | emacs-9f112a3d4c5f47e0fb6bed349861c8470cd3b938.tar.gz emacs-9f112a3d4c5f47e0fb6bed349861c8470cd3b938.zip | |
(kill-new): Pass t as 2nd arg to interprogram-cut-function.
| -rw-r--r-- | lisp/simple.el | 19 |
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 | ||
| 902 | Most window systems provide some sort of facility for cutting and | 902 | Most window systems provide some sort of facility for cutting and |
| 903 | pasting text between the windows of different programs. On startup, | 903 | pasting text between the windows of different programs. |
| 904 | this variable is set to a function which emacs will call whenever text | 904 | This variable holds a function that Emacs calls whenever text |
| 905 | is put in the kill ring to make the new kill available to other | 905 | is put in the kill ring, to make the new kill available to other |
| 906 | programs. | 906 | programs. |
| 907 | 907 | ||
| 908 | The function takes one argument, TEXT, which is a string containing | 908 | The function takes one or two arguments. |
| 909 | the text which should be made available.") | 909 | The first argument, TEXT, is a string containing |
| 910 | the text which should be made available. | ||
| 911 | The second, PUSH, if non-nil means this is a \"new\" kill; | ||
| 912 | nil 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 | ||
| 914 | Most window systems provide some sort of facility for cutting and | 917 | Most window systems provide some sort of facility for cutting and |
| 915 | pasting text between the windows of different programs. On startup, | 918 | pasting text between the windows of different programs. |
| 916 | this variable is set to a function which emacs will call to obtain | 919 | This variable holds a function that Emacs calls to obtain |
| 917 | text that other programs have provided for pasting. | 920 | text that other programs have provided for pasting. |
| 918 | 921 | ||
| 919 | The function should be called with no arguments. If the function | 922 | The 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. |