[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/subr.el,v
From: |
Richard M. Stallman |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/subr.el,v |
Date: |
Sun, 22 Apr 2007 16:56:19 +0000 |
CVSROOT: /cvsroot/emacs
Module name: emacs
Changes by: Richard M. Stallman <rms> 07/04/22 16:56:19
Index: subr.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/subr.el,v
retrieving revision 1.553
retrieving revision 1.554
diff -u -b -r1.553 -r1.554
--- subr.el 21 Apr 2007 08:55:41 -0000 1.553
+++ subr.el 22 Apr 2007 16:56:19 -0000 1.554
@@ -1735,9 +1735,11 @@
(let ((str (read-from-minibuffer prompt nil nil nil nil
(and default
(number-to-string default)))))
+ (condition-case nil
(setq n (cond
((zerop (length str)) default)
- ((stringp str) (read str)))))
+ ((stringp str) (read str))))
+ (error nil)))
(unless (numberp n)
(message "Please enter a number.")
(sit-for 1)
- [Emacs-diffs] Changes to emacs/lisp/subr.el,v, Chong Yidong, 2007/04/04
- [Emacs-diffs] Changes to emacs/lisp/subr.el,v, John Paul Wallington, 2007/04/06
- [Emacs-diffs] Changes to emacs/lisp/subr.el,v, Vinicius Jose Latorre, 2007/04/09
- [Emacs-diffs] Changes to emacs/lisp/subr.el,v, Richard M. Stallman, 2007/04/21
- [Emacs-diffs] Changes to emacs/lisp/subr.el,v,
Richard M. Stallman <=