Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
39479f7e
Commit
39479f7e
authored
May 24, 1993
by
Richard M. Stallman
Browse files
(x-set-cut-buffer): New arg PUSH.
parent
9f112a3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
lisp/select.el
lisp/select.el
+5
-3
No files found.
lisp/select.el
View file @
39479f7e
...
...
@@ -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
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment