mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-24 10:38:38 +00:00
(Fprimitive_undo): Bind inhibit-read-only to t if
current buffer is read-only, not if it isn't.
This commit is contained in:
parent
ed8e506f24
commit
4c587cd3af
@ -412,7 +412,7 @@ Return what remains of the list.")
|
||||
GCPRO2 (next, list);
|
||||
|
||||
/* Don't let read-only properties interfere with undo. */
|
||||
if (NILP (current_buffer->read_only))
|
||||
if (!NILP (current_buffer->read_only))
|
||||
specbind (Qinhibit_read_only, Qt);
|
||||
|
||||
while (arg > 0)
|
||||
|
Loading…
Reference in New Issue
Block a user