Mercurial > emacs
changeset 6446:d31f12f6a319
(Fmake_local_variable): Void variables stay void.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Mon, 21 Mar 1994 01:39:07 +0000 |
parents | 19bf0e182eda |
children | dcbbdafaf41e |
files | src/data.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/data.c Mon Mar 21 00:37:56 1994 +0000 +++ b/src/data.c Mon Mar 21 01:39:07 1994 +0000 @@ -1113,6 +1113,8 @@ 1, 1, "vMake Local Variable: ", "Make VARIABLE have a separate value in the current buffer.\n\ Other buffers will continue to share a common default value.\n\ +\(The buffer-local value of VARIABLE starts out as the same value\n +VARIABLE previously had. If VARIABLE was void, it remains void.\)\n See also `make-variable-buffer-local'.\n\n\ If the variable is already arranged to become local when set,\n\ this function causes a local value to exist for this buffer,\n\ @@ -1141,8 +1143,6 @@ /* Make sure sym is set up to hold per-buffer values */ if (XTYPE (valcontents) != Lisp_Some_Buffer_Local_Value) { - if (EQ (valcontents, Qunbound)) - XSYMBOL (sym)->value = Qnil; tem = Fcons (Qnil, do_symval_forwarding (valcontents)); XCONS (tem)->car = tem; XSYMBOL (sym)->value = Fcons (XSYMBOL (sym)->value, Fcons (Qnil, tem));