emacs-diffs
[Top][All Lists]
Advanced

[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)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]