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
1b270b55
Commit
1b270b55
authored
Nov 12, 1999
by
Gerd Moellmann
Browse files
(x-set-selection): Call buffer-substring, not
substring. Also fix docstring
parent
8f011fdc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
lisp/select.el
lisp/select.el
+3
-2
No files found.
lisp/select.el
View file @
1b270b55
...
...
@@ -51,10 +51,11 @@ can alter the effective value of the selection.
The data may also be a vector of valid non-vector selection values.
Interactively, the text of the region is used as the selection value."
Interactively, the text of the region is used as the selection value
if the prefix arg is set."
(
interactive
(
if
(
not
current-prefix-arg
)
(
list
'PRIMARY
(
read-string
"Set text for pasting: "
))
(
list
'PRIMARY
(
substring
(
region-beginning
)
(
region-end
)))))
(
list
'PRIMARY
(
buffer-
substring
(
region-beginning
)
(
region-end
)))))
;; This is for temporary compatibility with pre-release Emacs 19.
(
if
(
stringp
type
)
(
setq
type
(
intern
type
)))
...
...
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