diff options
| author | Kenichi Handa | 2004-05-10 12:09:08 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2004-05-10 12:09:08 +0000 |
| commit | d28eab19f9b3c887208492c32692db6f480dc8c5 (patch) | |
| tree | bba1e5f9d3885c276e2a5dbcc43aa8423db21f42 /src | |
| parent | 5c2a995dc95ab4073f6366d0eeb200b2a39d74e9 (diff) | |
| download | emacs-d28eab19f9b3c887208492c32692db6f480dc8c5.tar.gz emacs-d28eab19f9b3c887208492c32692db6f480dc8c5.zip | |
(temp_output_buffer_setup): Bind inhibit-read-only and
inhibit-modification-hooks to t temporarily before calling
Ferase_buffer.
Diffstat (limited to 'src')
| -rw-r--r-- | src/print.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/print.c b/src/print.c index 7548bc75661..e729b468fd1 100644 --- a/src/print.c +++ b/src/print.c | |||
| @@ -601,6 +601,8 @@ temp_output_buffer_setup (bufname) | |||
| 601 | eassert (current_buffer->overlays_after == NULL); | 601 | eassert (current_buffer->overlays_after == NULL); |
| 602 | current_buffer->enable_multibyte_characters | 602 | current_buffer->enable_multibyte_characters |
| 603 | = buffer_defaults.enable_multibyte_characters; | 603 | = buffer_defaults.enable_multibyte_characters; |
| 604 | specbind (Qinhibit_read_only, Qt); | ||
| 605 | specbind (Qinhibit_modification_hooks, Qt); | ||
| 604 | Ferase_buffer (); | 606 | Ferase_buffer (); |
| 605 | XSETBUFFER (buf, current_buffer); | 607 | XSETBUFFER (buf, current_buffer); |
| 606 | 608 | ||