aboutsummaryrefslogtreecommitdiffstats
path: root/src/eval.c
diff options
context:
space:
mode:
authorPavel Janík2001-11-04 10:28:01 +0000
committerPavel Janík2001-11-04 10:28:01 +0000
commit2df5238c1a7e97c9271a6bebd369b9a2c3e304eb (patch)
tree8285efa5bbd45e9c94fa722833be9e7d46b581e5 /src/eval.c
parent203480d952cce0e56b6ab59f9bcbf4dbae0df361 (diff)
downloademacs-2df5238c1a7e97c9271a6bebd369b9a2c3e304eb.tar.gz
emacs-2df5238c1a7e97c9271a6bebd369b9a2c3e304eb.zip
(top_level_value, top_level_set): Remove commented and #ifdef'd-out code.
(Fdefvar): Fix usage in doc-string.
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c42
1 files changed, 1 insertions, 41 deletions
diff --git a/src/eval.c b/src/eval.c
index bcb3a76d708..8a3ee8cb761 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -720,7 +720,7 @@ If DOCSTRING starts with *, this variable is identified as a user option.
720 This means that M-x set-variable recognizes it. 720 This means that M-x set-variable recognizes it.
721 See also `user-variable-p'. 721 See also `user-variable-p'.
722If INITVALUE is missing, SYMBOL's value is not set. 722If INITVALUE is missing, SYMBOL's value is not set.
723usage: (defvar SYMBOL [INITVALUE DOCSTRING]) */) 723usage: (defvar SYMBOL &optional INITVALUE DOCSTRING) */)
724 (args) 724 (args)
725 Lisp_Object args; 725 Lisp_Object args;
726{ 726{
@@ -3106,46 +3106,6 @@ unbind_to (count, value)
3106 return value; 3106 return value;
3107} 3107}
3108 3108
3109#if 0
3110
3111/* Get the value of symbol's global binding, even if that binding
3112 is not now dynamically visible. */
3113
3114Lisp_Object
3115top_level_value (symbol)
3116 Lisp_Object symbol;
3117{
3118 register struct specbinding *ptr = specpdl;
3119
3120 CHECK_SYMBOL (symbol);
3121 for (; ptr != specpdl_ptr; ptr++)
3122 {
3123 if (EQ (ptr->symbol, symbol))
3124 return ptr->old_value;
3125 }
3126 return Fsymbol_value (symbol);
3127}
3128
3129Lisp_Object
3130top_level_set (symbol, newval)
3131 Lisp_Object symbol, newval;
3132{
3133 register struct specbinding *ptr = specpdl;
3134
3135 CHECK_SYMBOL (symbol);
3136 for (; ptr != specpdl_ptr; ptr++)
3137 {
3138 if (EQ (ptr->symbol, symbol))
3139 {
3140 ptr->old_value = newval;
3141 return newval;
3142 }
3143 }
3144 return Fset (symbol, newval);
3145}
3146
3147#endif /* 0 */
3148
3149DEFUN ("backtrace-debug", Fbacktrace_debug, Sbacktrace_debug, 2, 2, 0, 3109DEFUN ("backtrace-debug", Fbacktrace_debug, Sbacktrace_debug, 2, 2, 0,
3150 doc: /* Set the debug-on-exit flag of eval frame LEVEL levels down to FLAG. 3110 doc: /* Set the debug-on-exit flag of eval frame LEVEL levels down to FLAG.
3151The debugger is entered when that frame exits, if the flag is non-nil. */) 3111The debugger is entered when that frame exits, if the flag is non-nil. */)