aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2012-07-07 17:33:28 +0800
committerChong Yidong2012-07-07 17:33:28 +0800
commit621b9d6c7e08cc8d0f79804a6ff78f159995af72 (patch)
treeabacde995e58c003616a0e32c2d87ad75bd486a1
parent5a16b9bc1deaee43c4a5d9c9ebdc16e6e53ca6ef (diff)
downloademacs-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/ChangeLog6
-rw-r--r--lisp/simple.el67
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 @@
12012-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
12012-07-06 Glenn Morris <rgm@gnu.org> 72012-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.
3047Most window systems provide a facility for cutting and pasting
3048text between different programs, such as the clipboard on X and
3049MS-Windows, or the pasteboard on Nextstep/Mac OS.
3047 3050
3048Most window systems provide some sort of facility for cutting and 3051This variable holds a function that Emacs calls whenever text is
3049pasting text between the windows of different programs. 3052put in the kill ring, to make the new kill available to other
3050This variable holds a function that Emacs calls whenever text 3053programs. The function takes one argument, TEXT, which is a
3051is put in the kill ring, to make the new kill available to other 3054string containing the text which should be made available.")
3052programs.
3053
3054The function takes one argument, TEXT, which is a string containing
3055the 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 3058Most window systems provide a facility for cutting and pasting
3060Most window systems provide some sort of facility for cutting and 3059text between different programs, such as the clipboard on X and
3061pasting text between the windows of different programs. 3060MS-Windows, or the pasteboard on Nextstep/Mac OS.
3062This variable holds a function that Emacs calls to obtain 3061
3063text that other programs have provided for pasting. 3062This variable holds a function that Emacs calls to obtain text
3064 3063that other programs have provided for pasting. The function is
3065The function should be called with no arguments. If the function 3064called with no arguments. If no other program has provided text
3066returns nil, then no other program has provided such text, and the top 3065to paste, the function should return nil (in which case the
3067of the Emacs kill ring should be used. If the function returns a 3066caller, usually `current-kill', should use the top of the Emacs
3068string, then the caller of the function \(usually `current-kill') 3067kill ring). If another program has provided text to paste, the
3069should put this string in the kill ring as the latest kill. 3068function should return that text as a string (in which case the
3070 3069caller should put this string in the kill ring as the latest
3071This function may also return a list of strings if the window 3070kill).
3071
3072The function may also return a list of strings if the window
3072system supports multiple selections. The first string will be 3073system supports multiple selections. The first string will be
3073used as the pasted text, but the other will be placed in the 3074used as the pasted text, but the other will be placed in the kill
3074kill ring for easy access via `yank-pop'. 3075ring for easy access via `yank-pop'.
3075 3076
3076Note that the function should return a string only if a program other 3077Note that the function should return a string only if a program
3077than Emacs has provided a string for pasting; if Emacs provided the 3078other than Emacs has provided a string for pasting; if Emacs
3078most recent string, the function should return nil. If it is 3079provided the most recent string, the function should return nil.
3079difficult to tell whether Emacs or some other program provided the 3080If it is difficult to tell whether Emacs or some other program
3080current string, it is probably good enough to return nil if the string 3081provided the current string, it is probably good enough to return
3081is equal (according to `string=') to the last text Emacs provided.") 3082nil if the string is equal (according to `string=') to the last
3083text 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.
3190If non-nil, whenever the kill ring is rotated (usually via the
3191`yank-pop' command), Emacs also calls `interprogram-cut-function'
3192to 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")