# HG changeset patch # User Pavel Jank # Date 1004869491 0 # Node ID 21597de09a0d458099059b2a0aa749b6439f8485 # Parent c6abdf439937b26c9282e9e407b6a74a916f3c45 (top_level_value, top_level_set): Remove commented and #ifdef'd-out code. (Fdefvar): Fix usage in doc-string. diff -r c6abdf439937 -r 21597de09a0d src/eval.c --- a/src/eval.c Sun Nov 04 03:21:13 2001 +0000 +++ b/src/eval.c Sun Nov 04 10:24:51 2001 +0000 @@ -720,7 +720,7 @@ This means that M-x set-variable recognizes it. See also `user-variable-p'. If INITVALUE is missing, SYMBOL's value is not set. -usage: (defvar SYMBOL [INITVALUE DOCSTRING]) */) +usage: (defvar SYMBOL &optional INITVALUE DOCSTRING) */) (args) Lisp_Object args; { @@ -3106,46 +3106,6 @@ return value; } -#if 0 - -/* Get the value of symbol's global binding, even if that binding - is not now dynamically visible. */ - -Lisp_Object -top_level_value (symbol) - Lisp_Object symbol; -{ - register struct specbinding *ptr = specpdl; - - CHECK_SYMBOL (symbol); - for (; ptr != specpdl_ptr; ptr++) - { - if (EQ (ptr->symbol, symbol)) - return ptr->old_value; - } - return Fsymbol_value (symbol); -} - -Lisp_Object -top_level_set (symbol, newval) - Lisp_Object symbol, newval; -{ - register struct specbinding *ptr = specpdl; - - CHECK_SYMBOL (symbol); - for (; ptr != specpdl_ptr; ptr++) - { - if (EQ (ptr->symbol, symbol)) - { - ptr->old_value = newval; - return newval; - } - } - return Fset (symbol, newval); -} - -#endif /* 0 */ - DEFUN ("backtrace-debug", Fbacktrace_debug, Sbacktrace_debug, 2, 2, 0, doc: /* Set the debug-on-exit flag of eval frame LEVEL levels down to FLAG. The debugger is entered when that frame exits, if the flag is non-nil. */)