diff options
| author | Stefan Monnier | 2012-06-08 09:18:26 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2012-06-08 09:18:26 -0400 |
| commit | 513749ee1862278385028d6700e1d2ce8abd35e6 (patch) | |
| tree | cb835ce77cd2aa8d828dca57b55642e85f3942c5 /src/lread.c | |
| parent | 595ef4ad76fb75db4a0adb2baf117ef6d68a2e41 (diff) | |
| download | emacs-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.c | 7 |
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. |
| 4378 | Order 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 | ||
| 4394 | The positions are relative to the last call to `read' or | 4395 | The 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 |
| 4396 | the toplevel; bind it instead. */); | 4397 | the 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 | ||
| 4409 | Note that a symbol will appear multiple times in this list, if it was | 4410 | Note that a symbol will appear multiple times in this list, if it was |
| 4410 | read multiple times. The list is in the same order as the symbols | 4411 | read multiple times. The list is in the same order as the symbols |
| 4411 | were read in. */); | 4412 | were 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, |