aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann2001-09-11 13:09:15 +0000
committerGerd Moellmann2001-09-11 13:09:15 +0000
commita41edd99c5ebdac6e6e05adecf108eaae160c0a6 (patch)
tree5595d8804278386ac8ee039cbd010cdfd873809c /src
parent0ba7995bfe5e4a109824ae17a9720adc4ad988c4 (diff)
downloademacs-a41edd99c5ebdac6e6e05adecf108eaae160c0a6.tar.gz
emacs-a41edd99c5ebdac6e6e05adecf108eaae160c0a6.zip
(read_minibuf): Bind inhibit-modification-hooks to t,
in addition to read-only.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog11
-rw-r--r--src/minibuf.c3
2 files changed, 13 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index da8b012b3ae..c15cc1efc0c 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,16 @@
12001-09-11 Gerd Moellmann <gerd@gnu.org> 12001-09-11 Gerd Moellmann <gerd@gnu.org>
2 2
3 * minibuf.c (read_minibuf): Bind inhibit-modification-hooks to t,
4 in addition to read-only.
5
6 * xdisp.c (with_echo_area_buffer): Bind inhibit-modification-hooks
7 to t in addition to read-only.
8
9 * lisp.h (Qinhibit_modification_hooks): Declare.
10
11 * insdel.c (Qinhibit_modification_hooks): New variable.
12 (syms_of_insdel): Initialize and staticpro it.
13
3 * textprop.c (verify_interval_modification): Don't run 14 * textprop.c (verify_interval_modification): Don't run
4 modification-hooks if inhibit_modification_hooks. 15 modification-hooks if inhibit_modification_hooks.
5 16
diff --git a/src/minibuf.c b/src/minibuf.c
index a87127002bb..78c7c375f7d 100644
--- a/src/minibuf.c
+++ b/src/minibuf.c
@@ -511,8 +511,9 @@ read_minibuf (map, initial, prompt, backup_n, expflag,
511 511
512 /* Erase the buffer. */ 512 /* Erase the buffer. */
513 { 513 {
514 int count1 = specpdl_ptr - specpdl; 514 int count1 = BINDING_STACK_SIZE ();
515 specbind (Qinhibit_read_only, Qt); 515 specbind (Qinhibit_read_only, Qt);
516 specbind (Qinhibit_modification_hooks, Qt);
516 Ferase_buffer (); 517 Ferase_buffer ();
517 unbind_to (count1, Qnil); 518 unbind_to (count1, Qnil);
518 } 519 }