Mercurial > emacs
changeset 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 | 0e76050e1b4b |
children | 5a240d7bd802 |
files | src/undo.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
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. */