diff options
| author | Leo Liu | 2014-07-02 13:05:50 +0800 |
|---|---|---|
| committer | Leo Liu | 2014-07-02 13:05:50 +0800 |
| commit | cc4f9c83bccac43a1463769286f0f6b10864ef15 (patch) | |
| tree | 3c77323ce88c480f7dc1243b67a9dc1d1c6daecc | |
| parent | cdadeecf05ab8a4bf5a513959f1fab2ef0d6323b (diff) | |
| download | emacs-cc4f9c83bccac43a1463769286f0f6b10864ef15.tar.gz emacs-cc4f9c83bccac43a1463769286f0f6b10864ef15.zip | |
* emacs-lisp/pp.el (pp-eval-expression, pp-eval-last-sexp):
Support lexical-binding.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/emacs-lisp/pp.el | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 017c7adad28..df299ec1341 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-07-02 Leo Liu <sdl.web@gmail.com> | ||
| 2 | |||
| 3 | * emacs-lisp/pp.el (pp-eval-expression, pp-eval-last-sexp): | ||
| 4 | Support lexical-binding. | ||
| 5 | |||
| 1 | 2014-07-01 Stefan Monnier <monnier@iro.umontreal.ca> | 6 | 2014-07-01 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 7 | ||
| 3 | * vc/log-edit.el (log-edit-goto-eoh): New function. | 8 | * vc/log-edit.el (log-edit-goto-eoh): New function. |
diff --git a/lisp/emacs-lisp/pp.el b/lisp/emacs-lisp/pp.el index 0e4139e1aeb..dd012fab9da 100644 --- a/lisp/emacs-lisp/pp.el +++ b/lisp/emacs-lisp/pp.el | |||
| @@ -129,7 +129,7 @@ Also add the value to the front of the list in the variable `values'." | |||
| 129 | (interactive | 129 | (interactive |
| 130 | (list (read--expression "Eval: "))) | 130 | (list (read--expression "Eval: "))) |
| 131 | (message "Evaluating...") | 131 | (message "Evaluating...") |
| 132 | (setq values (cons (eval expression) values)) | 132 | (setq values (cons (eval expression lexical-binding) values)) |
| 133 | (pp-display-expression (car values) "*Pp Eval Output*")) | 133 | (pp-display-expression (car values) "*Pp Eval Output*")) |
| 134 | 134 | ||
| 135 | ;;;###autoload | 135 | ;;;###autoload |
| @@ -165,7 +165,7 @@ With argument, pretty-print output into current buffer. | |||
| 165 | Ignores leading comment characters." | 165 | Ignores leading comment characters." |
| 166 | (interactive "P") | 166 | (interactive "P") |
| 167 | (if arg | 167 | (if arg |
| 168 | (insert (pp-to-string (eval (pp-last-sexp)))) | 168 | (insert (pp-to-string (eval (pp-last-sexp) lexical-binding))) |
| 169 | (pp-eval-expression (pp-last-sexp)))) | 169 | (pp-eval-expression (pp-last-sexp)))) |
| 170 | 170 | ||
| 171 | ;;;###autoload | 171 | ;;;###autoload |