diff options
| author | Richard M. Stallman | 1993-05-24 21:19:26 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-05-24 21:19:26 +0000 |
| commit | 39479f7efaa24bb3f2ffe9f4c3c3ac1da7dda45a (patch) | |
| tree | bcfc2e9677418fdc3925382671343d30fc5e8b65 | |
| parent | 9f112a3d4c5f47e0fb6bed349861c8470cd3b938 (diff) | |
| download | emacs-39479f7efaa24bb3f2ffe9f4c3c3ac1da7dda45a.tar.gz emacs-39479f7efaa24bb3f2ffe9f4c3c3ac1da7dda45a.zip | |
(x-set-cut-buffer): New arg PUSH.
| -rw-r--r-- | lisp/select.el | 8 |
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." | |||
| 102 | which-one) | 102 | which-one) |
| 103 | 'CUT_BUFFER0))) | 103 | 'CUT_BUFFER0))) |
| 104 | 104 | ||
| 105 | (defun x-set-cut-buffer (string) | 105 | (defun x-set-cut-buffer (string &optional push) |
| 106 | "Store STRING into the X server's primary cut buffer. | 106 | "Store STRING into the X server's primary cut buffer. |
| 107 | The previous value of the primary cut buffer is rotated to the secondary | 107 | If PUSH is non-nil, also rotate the cut buffers: |
| 108 | this means the previous value of the primary cut buffer moves the second | ||
| 108 | cut buffer, and the second to the third, and so on (there are 8 buffers.) | 109 | cut buffer, and the second to the third, and so on (there are 8 buffers.) |
| 109 | Cut buffers are considered obsolete; you should use selections instead." | 110 | Cut buffers are considered obsolete; you should use selections instead." |
| 110 | ;; Check the data type of STRING. | 111 | ;; Check the data type of STRING. |
| 111 | (substring string 0 0) | 112 | (substring string 0 0) |
| 112 | (x-rotate-cut-buffers-internal 1) | 113 | (if push |
| 114 | (x-rotate-cut-buffers-internal 1)) | ||
| 113 | (x-store-cut-buffer-internal 'CUT_BUFFER0 string)) | 115 | (x-store-cut-buffer-internal 'CUT_BUFFER0 string)) |
| 114 | 116 | ||
| 115 | 117 | ||