mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-26 07:33:47 +00:00
* emacs-lisp/pp.el (pp-eval-expression, pp-eval-last-sexp):
Support lexical-binding.
This commit is contained in:
parent
cdadeecf05
commit
cc4f9c83bc
@ -1,3 +1,8 @@
|
||||
2014-07-02 Leo Liu <sdl.web@gmail.com>
|
||||
|
||||
* emacs-lisp/pp.el (pp-eval-expression, pp-eval-last-sexp):
|
||||
Support lexical-binding.
|
||||
|
||||
2014-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
|
||||
|
||||
* vc/log-edit.el (log-edit-goto-eoh): New function.
|
||||
|
@ -129,7 +129,7 @@ Also add the value to the front of the list in the variable `values'."
|
||||
(interactive
|
||||
(list (read--expression "Eval: ")))
|
||||
(message "Evaluating...")
|
||||
(setq values (cons (eval expression) values))
|
||||
(setq values (cons (eval expression lexical-binding) values))
|
||||
(pp-display-expression (car values) "*Pp Eval Output*"))
|
||||
|
||||
;;;###autoload
|
||||
@ -165,7 +165,7 @@ With argument, pretty-print output into current buffer.
|
||||
Ignores leading comment characters."
|
||||
(interactive "P")
|
||||
(if arg
|
||||
(insert (pp-to-string (eval (pp-last-sexp))))
|
||||
(insert (pp-to-string (eval (pp-last-sexp) lexical-binding)))
|
||||
(pp-eval-expression (pp-last-sexp))))
|
||||
|
||||
;;;###autoload
|
||||
|
Loading…
Reference in New Issue
Block a user