diff options
| author | Chong Yidong | 2012-07-07 17:33:28 +0800 |
|---|---|---|
| committer | Chong Yidong | 2012-07-07 17:33:28 +0800 |
| commit | 621b9d6c7e08cc8d0f79804a6ff78f159995af72 (patch) | |
| tree | abacde995e58c003616a0e32c2d87ad75bd486a1 | |
| parent | 5a16b9bc1deaee43c4a5d9c9ebdc16e6e53ca6ef (diff) | |
| download | emacs-621b9d6c7e08cc8d0f79804a6ff78f159995af72.tar.gz emacs-621b9d6c7e08cc8d0f79804a6ff78f159995af72.zip | |
* lisp/simple.el (yank-pop-change-selection): Doc fix.
(interprogram-cut-function, interprogram-paste-function): Mention
that we typically mean the clipboard.
Fixes: debbugs:11361
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/simple.el | 67 |
2 files changed, 42 insertions, 31 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 24ce2276991..6491025648f 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2012-07-07 Chong Yidong <cyd@gnu.org> | ||
| 2 | |||
| 3 | * simple.el (yank-pop-change-selection): Doc fix (Bug#11361). | ||
| 4 | (interprogram-cut-function, interprogram-paste-function): Mention | ||
| 5 | that we typically mean the clipboard. | ||
| 6 | |||
| 1 | 2012-07-06 Glenn Morris <rgm@gnu.org> | 7 | 2012-07-06 Glenn Morris <rgm@gnu.org> |
| 2 | 8 | ||
| 3 | * kmacro.el (kmacro-call-macro): Restore repeat message. (Bug#11817) | 9 | * kmacro.el (kmacro-call-macro): Restore repeat message. (Bug#11817) |
diff --git a/lisp/simple.el b/lisp/simple.el index 560616aa7c7..4527a9da0dc 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -3044,41 +3044,43 @@ be copied into other buffers." | |||
| 3044 | 3044 | ||
| 3045 | (defvar interprogram-cut-function nil | 3045 | (defvar interprogram-cut-function nil |
| 3046 | "Function to call to make a killed region available to other programs. | 3046 | "Function to call to make a killed region available to other programs. |
| 3047 | Most window systems provide a facility for cutting and pasting | ||
| 3048 | text between different programs, such as the clipboard on X and | ||
| 3049 | MS-Windows, or the pasteboard on Nextstep/Mac OS. | ||
| 3047 | 3050 | ||
| 3048 | Most window systems provide some sort of facility for cutting and | 3051 | This variable holds a function that Emacs calls whenever text is |
| 3049 | pasting text between the windows of different programs. | 3052 | put in the kill ring, to make the new kill available to other |
| 3050 | This variable holds a function that Emacs calls whenever text | 3053 | programs. The function takes one argument, TEXT, which is a |
| 3051 | is put in the kill ring, to make the new kill available to other | 3054 | string containing the text which should be made available.") |
| 3052 | programs. | ||
| 3053 | |||
| 3054 | The function takes one argument, TEXT, which is a string containing | ||
| 3055 | the text which should be made available.") | ||
| 3056 | 3055 | ||
| 3057 | (defvar interprogram-paste-function nil | 3056 | (defvar interprogram-paste-function nil |
| 3058 | "Function to call to get text cut from other programs. | 3057 | "Function to call to get text cut from other programs. |
| 3059 | 3058 | Most window systems provide a facility for cutting and pasting | |
| 3060 | Most window systems provide some sort of facility for cutting and | 3059 | text between different programs, such as the clipboard on X and |
| 3061 | pasting text between the windows of different programs. | 3060 | MS-Windows, or the pasteboard on Nextstep/Mac OS. |
| 3062 | This variable holds a function that Emacs calls to obtain | 3061 | |
| 3063 | text that other programs have provided for pasting. | 3062 | This variable holds a function that Emacs calls to obtain text |
| 3064 | 3063 | that other programs have provided for pasting. The function is | |
| 3065 | The function should be called with no arguments. If the function | 3064 | called with no arguments. If no other program has provided text |
| 3066 | returns nil, then no other program has provided such text, and the top | 3065 | to paste, the function should return nil (in which case the |
| 3067 | of the Emacs kill ring should be used. If the function returns a | 3066 | caller, usually `current-kill', should use the top of the Emacs |
| 3068 | string, then the caller of the function \(usually `current-kill') | 3067 | kill ring). If another program has provided text to paste, the |
| 3069 | should put this string in the kill ring as the latest kill. | 3068 | function should return that text as a string (in which case the |
| 3070 | 3069 | caller should put this string in the kill ring as the latest | |
| 3071 | This function may also return a list of strings if the window | 3070 | kill). |
| 3071 | |||
| 3072 | The function may also return a list of strings if the window | ||
| 3072 | system supports multiple selections. The first string will be | 3073 | system supports multiple selections. The first string will be |
| 3073 | used as the pasted text, but the other will be placed in the | 3074 | used as the pasted text, but the other will be placed in the kill |
| 3074 | kill ring for easy access via `yank-pop'. | 3075 | ring for easy access via `yank-pop'. |
| 3075 | 3076 | ||
| 3076 | Note that the function should return a string only if a program other | 3077 | Note that the function should return a string only if a program |
| 3077 | than Emacs has provided a string for pasting; if Emacs provided the | 3078 | other than Emacs has provided a string for pasting; if Emacs |
| 3078 | most recent string, the function should return nil. If it is | 3079 | provided the most recent string, the function should return nil. |
| 3079 | difficult to tell whether Emacs or some other program provided the | 3080 | If it is difficult to tell whether Emacs or some other program |
| 3080 | current string, it is probably good enough to return nil if the string | 3081 | provided the current string, it is probably good enough to return |
| 3081 | is equal (according to `string=') to the last text Emacs provided.") | 3082 | nil if the string is equal (according to `string=') to the last |
| 3083 | text Emacs provided.") | ||
| 3082 | 3084 | ||
| 3083 | 3085 | ||
| 3084 | 3086 | ||
| @@ -3184,7 +3186,10 @@ If `interprogram-cut-function' is set, pass the resulting kill to it." | |||
| 3184 | (set-advertised-calling-convention 'kill-append '(string before-p) "23.3") | 3186 | (set-advertised-calling-convention 'kill-append '(string before-p) "23.3") |
| 3185 | 3187 | ||
| 3186 | (defcustom yank-pop-change-selection nil | 3188 | (defcustom yank-pop-change-selection nil |
| 3187 | "If non-nil, rotating the kill ring changes the window system selection." | 3189 | "Whether rotating the kill ring changes the window system selection. |
| 3190 | If non-nil, whenever the kill ring is rotated (usually via the | ||
| 3191 | `yank-pop' command), Emacs also calls `interprogram-cut-function' | ||
| 3192 | to copy the new kill to the window system selection." | ||
| 3188 | :type 'boolean | 3193 | :type 'boolean |
| 3189 | :group 'killing | 3194 | :group 'killing |
| 3190 | :version "23.1") | 3195 | :version "23.1") |