]> git.eshelyaron.com Git - emacs.git/commitdiff
(read-expression-history): New defvar.
authorRoland McGrath <roland@gnu.org>
Mon, 26 Jul 1993 18:32:07 +0000 (18:32 +0000)
committerRoland McGrath <roland@gnu.org>
Mon, 26 Jul 1993 18:32:07 +0000 (18:32 +0000)
(eval-expression): Use it has history var in interactive spec.

lisp/simple.el

index 1a4dfb5a9a7994315432ffddeac3562a25d5a0d8..c697a4c95d0a1331034434c3effb700f0f64b48b 100644 (file)
@@ -375,13 +375,16 @@ Other major modes are defined by comparison with this one."
 
 (put 'eval-expression 'disabled t)
 
-;; We define this, rather than making  eval  interactive,
+(defvar read-expression-history nil)
+
+;; We define this, rather than making `eval' interactive,
 ;; for the sake of completion of names like eval-region, eval-current-buffer.
 (defun eval-expression (expression)
   "Evaluate EXPRESSION and print value in minibuffer.
 Value is also consed on to front of the variable `values'."
   (interactive (list (read-from-minibuffer "Eval: "
-                                          nil read-expression-map t)))
+                                          nil read-expression-map t
+                                          'read-expression-history)))
   (setq values (cons (eval expression) values))
   (prin1 (car values) t))