summaryrefslogtreecommitdiff
path: root/lisp/select.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1993-05-24 21:19:26 +0000
committerRichard M. Stallman <rms@gnu.org>1993-05-24 21:19:26 +0000
commit95f8acdd6b6a2278f57dc7e9360fffe4a4cb80b1 (patch)
tree4d7d3b34a4e16c34a14372d4d72288b5b7c4a504 /lisp/select.el
parent16651912e406ea27df82a3f049b64535f45d1799 (diff)
downloademacs-95f8acdd6b6a2278f57dc7e9360fffe4a4cb80b1.tar.gz
(x-set-cut-buffer): New arg PUSH.
Diffstat (limited to 'lisp/select.el')
-rw-r--r--lisp/select.el8
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/select.el b/lisp/select.el
index 0b55bebd24d..85c8d4a2ade 100644
--- a/lisp/select.el
+++ b/lisp/select.el
@@ -102,14 +102,16 @@ Cut buffers are considered obsolete; you should use selections instead."
which-one)
'CUT_BUFFER0)))
-(defun x-set-cut-buffer (string)
+(defun x-set-cut-buffer (string &optional push)
"Store STRING into the X server's primary cut buffer.
-The previous value of the primary cut buffer is rotated to the secondary
+If PUSH is non-nil, also rotate the cut buffers:
+this means the previous value of the primary cut buffer moves the second
cut buffer, and the second to the third, and so on (there are 8 buffers.)
Cut buffers are considered obsolete; you should use selections instead."
;; Check the data type of STRING.
(substring string 0 0)
- (x-rotate-cut-buffers-internal 1)
+ (if push
+ (x-rotate-cut-buffers-internal 1))
(x-store-cut-buffer-internal 'CUT_BUFFER0 string))