Mercurial > emacs
diff src/undo.c @ 37527:d585b711c8d2
(Fprimitive_undo): In a writable buffer, enable undoing
read-only text that is so because of text properties.
| author | Gerd Moellmann <gerd@gnu.org> |
|---|---|
| date | Mon, 30 Apr 2001 14:57:35 +0000 |
| parents | 0b32632273e8 |
| children | d54a90934144 |
line wrap: on
line diff
--- a/src/undo.c Mon Apr 30 14:38:34 2001 +0000 +++ b/src/undo.c Mon Apr 30 14:57:35 2001 +0000 @@ -412,8 +412,9 @@ next = Qnil; GCPRO2 (next, list); - /* Don't let read-only properties interfere with undo. */ - if (!NILP (current_buffer->read_only)) + /* In a writable buffer, enable undoing read-only text that is so + because of text properties. */ + if (NILP (current_buffer->read_only)) specbind (Qinhibit_read_only, Qt); /* Don't let `intangible' properties interfere with undo. */
