aboutsummaryrefslogtreecommitdiffstats
path: root/src/lread.c
diff options
context:
space:
mode:
authorStefan Monnier2012-06-08 09:18:26 -0400
committerStefan Monnier2012-06-08 09:18:26 -0400
commit513749ee1862278385028d6700e1d2ce8abd35e6 (patch)
treecb835ce77cd2aa8d828dca57b55642e85f3942c5 /src/lread.c
parent595ef4ad76fb75db4a0adb2baf117ef6d68a2e41 (diff)
downloademacs-513749ee1862278385028d6700e1d2ce8abd35e6.tar.gz
emacs-513749ee1862278385028d6700e1d2ce8abd35e6.zip
Clean up scoping rule of predefined single-word vars.
* lisp/startup.el (argv, argi): Make lexically scoped. * lisp/emacs-lisp/float-sup.el (pi): Use internal-make-var-non-special. * lisp/emacs-lisp/cl-macs.el: Use lexical-binding. Rename cl-bind-* to cl--bind-*. * lisp/files.el: Don't require `cl' since it doesn't use it. * lisp/emacs-lisp/pcase.el, lisp/emacs-lisp/macroexp.el: Add coding cookie. * src/eval.c (Fmake_var_non_special): New primitive. (syms_of_eval): Defsubr it. * src/lread.c (syms_of_lread): Mark `values' as lexically scoped.
Diffstat (limited to 'src/lread.c')
-rw-r--r--src/lread.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lread.c b/src/lread.c
index 38b00a66962..726f1f0e905 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -4375,7 +4375,8 @@ to find all the symbols in an obarray, use `mapatoms'. */);
4375 4375
4376 DEFVAR_LISP ("values", Vvalues, 4376 DEFVAR_LISP ("values", Vvalues,
4377 doc: /* List of values of all expressions which were read, evaluated and printed. 4377 doc: /* List of values of all expressions which were read, evaluated and printed.
4378Order is reverse chronological. */); 4378 Order is reverse chronological. */);
4379 XSYMBOL (intern ("values"))->declared_special = 0;
4379 4380
4380 DEFVAR_LISP ("standard-input", Vstandard_input, 4381 DEFVAR_LISP ("standard-input", Vstandard_input,
4381 doc: /* Stream for read to get input from. 4382 doc: /* Stream for read to get input from.
@@ -4393,7 +4394,7 @@ defined, although they may be in the future.
4393 4394
4394The positions are relative to the last call to `read' or 4395The positions are relative to the last call to `read' or
4395`read-from-string'. It is probably a bad idea to set this variable at 4396`read-from-string'. It is probably a bad idea to set this variable at
4396the toplevel; bind it instead. */); 4397the toplevel; bind it instead. */);
4397 Vread_with_symbol_positions = Qnil; 4398 Vread_with_symbol_positions = Qnil;
4398 4399
4399 DEFVAR_LISP ("read-symbol-positions-list", Vread_symbol_positions_list, 4400 DEFVAR_LISP ("read-symbol-positions-list", Vread_symbol_positions_list,
@@ -4408,7 +4409,7 @@ symbol from the position where `read' or `read-from-string' started.
4408 4409
4409Note that a symbol will appear multiple times in this list, if it was 4410Note that a symbol will appear multiple times in this list, if it was
4410read multiple times. The list is in the same order as the symbols 4411read multiple times. The list is in the same order as the symbols
4411were read in. */); 4412were read in. */);
4412 Vread_symbol_positions_list = Qnil; 4413 Vread_symbol_positions_list = Qnil;
4413 4414
4414 DEFVAR_LISP ("read-circle", Vread_circle, 4415 DEFVAR_LISP ("read-circle", Vread_circle,