Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
18aa68c3
Commit
18aa68c3
authored
Aug 21, 1996
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(kill-region): inhibit-read-only overrides text props too.
parent
a90ab372
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
lisp/simple.el
lisp/simple.el
+3
-2
No files found.
lisp/simple.el
View file @
18aa68c3
...
...
@@ -1221,8 +1221,9 @@ to make one entry in the kill ring."
;; If the buffer is read-only, we should beep, in case the person
;; just isn't aware of this. However, there's no harm in putting
;; the region's text in the kill ring, anyway.
((
or
(
and
buffer-read-only
(
not
inhibit-read-only
))
(
text-property-not-all
beg
end
'read-only
nil
))
((
and
(
not
inhibit-read-only
)
(
or
buffer-read-only
(
text-property-not-all
beg
end
'read-only
nil
)))
(
copy-region-as-kill
beg
end
)
;; This should always barf, and give us the correct error.
(
if
kill-read-only-ok
...
...
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