diff lisp/prim/minibuf.el @ 136:b980b6286996 r20-2b2

Import from CVS: tag r20-2b2
author cvs
date Mon, 13 Aug 2007 09:31:12 +0200
parents cca96a509cfe
children 318232e2a3f0
line wrap: on
line diff
--- a/lisp/prim/minibuf.el	Mon Aug 13 09:30:13 2007 +0200
+++ b/lisp/prim/minibuf.el	Mon Aug 13 09:31:12 2007 +0200
@@ -284,6 +284,8 @@
 		 integer)
   :group 'minibuffer)
 
+(define-error 'input-error "Keyboard input error")
+
 (defun read-from-minibuffer (prompt &optional initial-contents
                                     keymap
                                     readp
@@ -436,7 +438,10 @@
                            ;; total total kludge
                            (if (stringp v) (setq v (list 'quote v)))
                            (setq val v))
-                       (error (setq err e))))
+                       (end-of-file
+			(setq err
+			      '(input-error "End of input before end of expression")))
+		       (error (setq err e))))
                  ;; Add the value to the appropriate history list unless
                  ;; it's already the most recent element, or it's only
                  ;; two characters long.