diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2019-04-25 14:36:03 -0400 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2019-04-25 14:36:03 -0400 |
commit | e08e0880f9892fba747abdb95b1f3382ebd17e32 (patch) | |
tree | a77c6861a632026546804e6482c6a3adbdbab9bc /lisp/ielm.el | |
parent | 0c2d921a75375e5667224bfd92b28be3b77977b3 (diff) | |
download | emacs-e08e0880f9892fba747abdb95b1f3382ebd17e32.tar.gz |
Use lexical-binding by default for M-:, --eval, and *scratch*
* lisp/startup.el (command-line): Default to lexical-binding in *scratch*.
(normal-no-mouse-startup-screen, command-line-1):
Use startup--get-buffer-create-scratch.
(command-line-1):
* lisp/simple.el (eval-expression):
* lisp/server.el (server-eval-and-print): Use lexical-binding to
evaluate the expression.
(server-execute): Use startup--get-buffer-create-scratch.
* lisp/ielm.el (inferior-emacs-lisp-mode): Default to lexical-binding.
Diffstat (limited to 'lisp/ielm.el')
-rw-r--r-- | lisp/ielm.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/ielm.el b/lisp/ielm.el index 82aff9901ba..c7a31a23e68 100644 --- a/lisp/ielm.el +++ b/lisp/ielm.el @@ -559,10 +559,11 @@ Customized bindings may be defined in `ielm-map', which currently contains: ;; Useful for `hs-minor-mode'. (setq-local comment-start ";") (setq-local comment-use-syntax t) + (setq-local lexical-binding t) - (set (make-local-variable 'indent-line-function) 'ielm-indent-line) + (set (make-local-variable 'indent-line-function) #'ielm-indent-line) (set (make-local-variable 'ielm-working-buffer) (current-buffer)) - (set (make-local-variable 'fill-paragraph-function) 'lisp-fill-paragraph) + (set (make-local-variable 'fill-paragraph-function) #'lisp-fill-paragraph) ;; Value holders (set (make-local-variable '*) nil) |