diff options
| author | Roland McGrath | 1993-03-07 23:41:34 +0000 |
|---|---|---|
| committer | Roland McGrath | 1993-03-07 23:41:34 +0000 |
| commit | 188d4d111de08e375dc28e7d105457116dd1d65e (patch) | |
| tree | 2310e22c5c20e64050d0339cf8b698867458523e /src | |
| parent | 6ba6e250c91e29d12ff51100f01998b2db397b2e (diff) | |
| download | emacs-188d4d111de08e375dc28e7d105457116dd1d65e.tar.gz emacs-188d4d111de08e375dc28e7d105457116dd1d65e.zip | |
(syms_of_buffer): Make erase-buffer a disabled command.
Diffstat (limited to 'src')
| -rw-r--r-- | src/buffer.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c index 28091e763ea..e254db179c7 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -1402,6 +1402,8 @@ init_buffer () | |||
| 1402 | /* initialize the buffer routines */ | 1402 | /* initialize the buffer routines */ |
| 1403 | syms_of_buffer () | 1403 | syms_of_buffer () |
| 1404 | { | 1404 | { |
| 1405 | extern Lisp_Object Qdisabled; | ||
| 1406 | |||
| 1405 | staticpro (&Vbuffer_defaults); | 1407 | staticpro (&Vbuffer_defaults); |
| 1406 | staticpro (&Vbuffer_local_symbols); | 1408 | staticpro (&Vbuffer_local_symbols); |
| 1407 | staticpro (&Qfundamental_mode); | 1409 | staticpro (&Qfundamental_mode); |
| @@ -1417,6 +1419,8 @@ syms_of_buffer () | |||
| 1417 | Fput (Qprotected_field, Qerror_message, | 1419 | Fput (Qprotected_field, Qerror_message, |
| 1418 | build_string ("Attempt to modify a protected field")); | 1420 | build_string ("Attempt to modify a protected field")); |
| 1419 | 1421 | ||
| 1422 | Fput (intern ("erase-buffer"), Qdisabled, Qt); | ||
| 1423 | |||
| 1420 | /* All these use DEFVAR_LISP_NOPRO because the slots in | 1424 | /* All these use DEFVAR_LISP_NOPRO because the slots in |
| 1421 | buffer_defaults will all be marked via Vbuffer_defaults. */ | 1425 | buffer_defaults will all be marked via Vbuffer_defaults. */ |
| 1422 | 1426 | ||