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
db03492e
Commit
db03492e
authored
Oct 02, 1994
by
Richard M. Stallman
Browse files
(kill-rectangle): In read-only buffer, do record
the rectangle for later yanking.
parent
a89a914a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
lisp/rect.el
lisp/rect.el
+4
-0
No files found.
lisp/rect.el
View file @
db03492e
...
...
@@ -138,6 +138,10 @@ Value is list of strings, one for each line of the rectangle."
Calling from program, supply two args START and END, buffer positions.
But in programs you might prefer to use `delete-extract-rectangle'."
(
interactive
"r"
)
(
if
buffer-read-only
(
progn
(
setq
killed-rectangle
(
extract-rectangle
start
end
))
(
barf-if-buffer-read-only
)))
(
setq
killed-rectangle
(
delete-extract-rectangle
start
end
)))
;;;###autoload
...
...
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