From 9f7b19259de7c93d3c132f359901c608a3f2e2b2 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Wed, 21 Aug 2013 14:26:15 -0400 Subject: * lisp/emacs-lisp/pp.el (pp-eval-expression, pp-macroexpand-expression): Use read--expression so that completion works again. --- lisp/emacs-lisp/pp.el | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lisp/emacs-lisp') diff --git a/lisp/emacs-lisp/pp.el b/lisp/emacs-lisp/pp.el index b7e553272f2..4cb089aca97 100644 --- a/lisp/emacs-lisp/pp.el +++ b/lisp/emacs-lisp/pp.el @@ -127,8 +127,7 @@ after OUT-BUFFER-NAME." "Evaluate EXPRESSION and pretty-print its value. Also add the value to the front of the list in the variable `values'." (interactive - (list (read-from-minibuffer "Eval: " nil read-expression-map t - 'read-expression-history))) + (list (read--expression "Eval: "))) (message "Evaluating...") (setq values (cons (eval expression) values)) (pp-display-expression (car values) "*Pp Eval Output*")) @@ -137,8 +136,7 @@ Also add the value to the front of the list in the variable `values'." (defun pp-macroexpand-expression (expression) "Macroexpand EXPRESSION and pretty-print its value." (interactive - (list (read-from-minibuffer "Macroexpand: " nil read-expression-map t - 'read-expression-history))) + (list (read--expression "Macroexpand: "))) (pp-display-expression (macroexpand expression) "*Pp Macroexpand Output*")) (defun pp-last-sexp () -- cgit v1.2.3