aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorRoland McGrath <[email protected]>1993-03-07 23:41:34 +0000
committerRoland McGrath <[email protected]>1993-03-07 23:41:34 +0000
commit188d4d111de08e375dc28e7d105457116dd1d65e (patch)
tree2310e22c5c20e64050d0339cf8b698867458523e /src/buffer.c
parent6ba6e250c91e29d12ff51100f01998b2db397b2e (diff)
(syms_of_buffer): Make erase-buffer a disabled command.
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 28091e763e..e254db179c 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -1402,6 +1402,8 @@ init_buffer ()
/* initialize the buffer routines */
syms_of_buffer ()
{
+ extern Lisp_Object Qdisabled;
+
staticpro (&Vbuffer_defaults);
staticpro (&Vbuffer_local_symbols);
staticpro (&Qfundamental_mode);
@@ -1417,6 +1419,8 @@ syms_of_buffer ()
Fput (Qprotected_field, Qerror_message,
build_string ("Attempt to modify a protected field"));
+ Fput (intern ("erase-buffer"), Qdisabled, Qt);
+
/* All these use DEFVAR_LISP_NOPRO because the slots in
buffer_defaults will all be marked via Vbuffer_defaults. */