diff options
author | Pavel Janík <Pavel@Janik.cz> | 2001-11-04 10:28:01 +0000 |
---|---|---|
committer | Pavel Janík <Pavel@Janik.cz> | 2001-11-04 10:28:01 +0000 |
commit | 2df5238c1a7e97c9271a6bebd369b9a2c3e304eb (patch) | |
tree | 8285efa5bbd45e9c94fa722833be9e7d46b581e5 /src/eval.c | |
parent | 203480d952cce0e56b6ab59f9bcbf4dbae0df361 (diff) | |
download | emacs-2df5238c1a7e97c9271a6bebd369b9a2c3e304eb.tar.gz |
(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.c | 42 |
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. 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 @@ unbind_to (count, value) 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. */) |