mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-05 11:21:04 -08: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue