changeset 17133:fbdff0d0de3d

(eval-expression): No longer disabled, since M-: isn't as likely to be typed by mistake as the old ESC ESC binding was. Arg `expression' renamed to `eval-expression-arg' to avoid potential collision if its value mentions `expression'.
author Karl Heuer <kwzh@gnu.org>
date Sun, 02 Mar 1997 01:01:13 +0000
parents 07c01fa1e7fc
children 124013c4d7b2
files lisp/simple.el
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/simple.el	Sun Mar 02 00:15:34 1997 +0000
+++ b/lisp/simple.el	Sun Mar 02 01:01:13 1997 +0000
@@ -470,20 +470,18 @@
   "Minibuffer keymap used for reading Lisp expressions.")
 (define-key read-expression-map "\M-\t" 'lisp-complete-symbol)
 
-(put 'eval-expression 'disabled t)
-
 (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)
+(defun eval-expression (eval-expression-arg)
   "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
 			       'read-expression-history)))
-  (setq values (cons (eval expression) values))
+  (setq values (cons (eval eval-expression-arg) values))
   (prin1 (car values) t))
 
 (defun edit-and-eval-command (prompt command)