diff options
| author | Juanma Barranquero | 2011-06-24 23:25:22 +0200 |
|---|---|---|
| committer | Juanma Barranquero | 2011-06-24 23:25:22 +0200 |
| commit | cd3520a41df21d80a9d894c58af2daba23c8dd24 (patch) | |
| tree | 945eaef322c65471833954ddce161a7a913ee3c8 /src/eval.c | |
| parent | 7d0da90e7b98f5c09df82be9985cc27d30adea07 (diff) | |
| download | emacs-cd3520a41df21d80a9d894c58af2daba23c8dd24.tar.gz emacs-cd3520a41df21d80a9d894c58af2daba23c8dd24.zip | |
Move DEFSYM to lisp.h and use everywhere.
Diffstat (limited to 'src/eval.c')
| -rw-r--r-- | src/eval.c | 56 |
1 files changed, 15 insertions, 41 deletions
diff --git a/src/eval.c b/src/eval.c index be582775fea..6ca8eacb100 100644 --- a/src/eval.c +++ b/src/eval.c | |||
| @@ -3694,46 +3694,23 @@ To prevent this happening, set `quit-flag' to nil | |||
| 3694 | before making `inhibit-quit' nil. */); | 3694 | before making `inhibit-quit' nil. */); |
| 3695 | Vinhibit_quit = Qnil; | 3695 | Vinhibit_quit = Qnil; |
| 3696 | 3696 | ||
| 3697 | Qinhibit_quit = intern_c_string ("inhibit-quit"); | 3697 | DEFSYM (Qinhibit_quit, "inhibit-quit"); |
| 3698 | staticpro (&Qinhibit_quit); | 3698 | DEFSYM (Qautoload, "autoload"); |
| 3699 | 3699 | DEFSYM (Qdebug_on_error, "debug-on-error"); | |
| 3700 | Qautoload = intern_c_string ("autoload"); | 3700 | DEFSYM (Qmacro, "macro"); |
| 3701 | staticpro (&Qautoload); | 3701 | DEFSYM (Qdeclare, "declare"); |
| 3702 | |||
| 3703 | Qdebug_on_error = intern_c_string ("debug-on-error"); | ||
| 3704 | staticpro (&Qdebug_on_error); | ||
| 3705 | |||
| 3706 | Qmacro = intern_c_string ("macro"); | ||
| 3707 | staticpro (&Qmacro); | ||
| 3708 | |||
| 3709 | Qdeclare = intern_c_string ("declare"); | ||
| 3710 | staticpro (&Qdeclare); | ||
| 3711 | 3702 | ||
| 3712 | /* Note that the process handling also uses Qexit, but we don't want | 3703 | /* Note that the process handling also uses Qexit, but we don't want |
| 3713 | to staticpro it twice, so we just do it here. */ | 3704 | to staticpro it twice, so we just do it here. */ |
| 3714 | Qexit = intern_c_string ("exit"); | 3705 | DEFSYM (Qexit, "exit"); |
| 3715 | staticpro (&Qexit); | ||
| 3716 | |||
| 3717 | Qinteractive = intern_c_string ("interactive"); | ||
| 3718 | staticpro (&Qinteractive); | ||
| 3719 | |||
| 3720 | Qcommandp = intern_c_string ("commandp"); | ||
| 3721 | staticpro (&Qcommandp); | ||
| 3722 | |||
| 3723 | Qdefun = intern_c_string ("defun"); | ||
| 3724 | staticpro (&Qdefun); | ||
| 3725 | |||
| 3726 | Qand_rest = intern_c_string ("&rest"); | ||
| 3727 | staticpro (&Qand_rest); | ||
| 3728 | |||
| 3729 | Qand_optional = intern_c_string ("&optional"); | ||
| 3730 | staticpro (&Qand_optional); | ||
| 3731 | |||
| 3732 | Qclosure = intern_c_string ("closure"); | ||
| 3733 | staticpro (&Qclosure); | ||
| 3734 | 3706 | ||
| 3735 | Qdebug = intern_c_string ("debug"); | 3707 | DEFSYM (Qinteractive, "interactive"); |
| 3736 | staticpro (&Qdebug); | 3708 | DEFSYM (Qcommandp, "commandp"); |
| 3709 | DEFSYM (Qdefun, "defun"); | ||
| 3710 | DEFSYM (Qand_rest, "&rest"); | ||
| 3711 | DEFSYM (Qand_optional, "&optional"); | ||
| 3712 | DEFSYM (Qclosure, "closure"); | ||
| 3713 | DEFSYM (Qdebug, "debug"); | ||
| 3737 | 3714 | ||
| 3738 | DEFVAR_LISP ("debug-on-error", Vdebug_on_error, | 3715 | DEFVAR_LISP ("debug-on-error", Vdebug_on_error, |
| 3739 | doc: /* *Non-nil means enter debugger if an error is signaled. | 3716 | doc: /* *Non-nil means enter debugger if an error is signaled. |
| @@ -3807,9 +3784,7 @@ The value the function returns is not used. */); | |||
| 3807 | Every element of this list can be either a cons (VAR . VAL) | 3784 | Every element of this list can be either a cons (VAR . VAL) |
| 3808 | specifying a lexical binding, or a single symbol VAR indicating | 3785 | specifying a lexical binding, or a single symbol VAR indicating |
| 3809 | that this variable should use dynamic scoping. */ | 3786 | that this variable should use dynamic scoping. */ |
| 3810 | Qinternal_interpreter_environment | 3787 | DEFSYM (Qinternal_interpreter_environment, "internal-interpreter-environment"); |
| 3811 | = intern_c_string ("internal-interpreter-environment"); | ||
| 3812 | staticpro (&Qinternal_interpreter_environment); | ||
| 3813 | DEFVAR_LISP ("internal-interpreter-environment", | 3788 | DEFVAR_LISP ("internal-interpreter-environment", |
| 3814 | Vinternal_interpreter_environment, | 3789 | Vinternal_interpreter_environment, |
| 3815 | doc: /* If non-nil, the current lexical environment of the lisp interpreter. | 3790 | doc: /* If non-nil, the current lexical environment of the lisp interpreter. |
| @@ -3821,8 +3796,7 @@ alist of active lexical bindings. */); | |||
| 3821 | (Just imagine if someone makes it buffer-local). */ | 3796 | (Just imagine if someone makes it buffer-local). */ |
| 3822 | Funintern (Qinternal_interpreter_environment, Qnil); | 3797 | Funintern (Qinternal_interpreter_environment, Qnil); |
| 3823 | 3798 | ||
| 3824 | Vrun_hooks = intern_c_string ("run-hooks"); | 3799 | DEFSYM (Vrun_hooks, "run-hooks"); |
| 3825 | staticpro (&Vrun_hooks); | ||
| 3826 | 3800 | ||
| 3827 | staticpro (&Vautoload_queue); | 3801 | staticpro (&Vautoload_queue); |
| 3828 | Vautoload_queue = Qnil; | 3802 | Vautoload_queue = Qnil; |