emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] trunk r118016: * lisp/obsolete/lucid.el (read-number): Rem


From: Stefan Monnier
Subject: [Emacs-diffs] trunk r118016: * lisp/obsolete/lucid.el (read-number): Remove, redundant.
Date: Thu, 02 Oct 2014 17:19:03 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 118016
revision-id: address@hidden
parent: address@hidden
committer: Stefan Monnier <address@hidden>
branch nick: trunk
timestamp: Thu 2014-10-02 13:18:57 -0400
message:
  * lisp/obsolete/lucid.el (read-number): Remove, redundant.
  * lisp/obsolete/cl-compat.el (cl-floor, cl-ceiling, cl-round, cl-truncate):
  Remove, broken.
modified:
  lisp/ChangeLog                 changelog-20091113204419-o5vbwnq5f7feedwu-1432
  lisp/obsolete/cl-compat.el     clcompat.el-20091113204419-o5vbwnq5f7feedwu-610
  lisp/obsolete/lucid.el         lucid.el-20091113204419-o5vbwnq5f7feedwu-11410
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog    2014-10-02 15:13:05 +0000
+++ b/lisp/ChangeLog    2014-10-02 17:18:57 +0000
@@ -1,3 +1,9 @@
+2014-10-02  Stefan Monnier  <address@hidden>
+
+       * obsolete/lucid.el (read-number): Remove, redundant.
+       * obsolete/cl-compat.el (cl-floor, cl-ceiling, cl-round, cl-truncate):
+       Remove, broken.
+
 2014-10-02  Glenn Morris  <address@hidden>
 
        * emacs-lisp/package.el (package-import-keyring):

=== modified file 'lisp/obsolete/cl-compat.el'
--- a/lisp/obsolete/cl-compat.el        2014-01-01 07:43:34 +0000
+++ b/lisp/obsolete/cl-compat.el        2014-10-02 17:18:57 +0000
@@ -129,14 +129,6 @@
     (if test-not (not (funcall test-not item elt))
       (funcall (or test 'eql) item elt))))
 
-
-;;; Rounding functions with old-style multiple value returns.
-
-(defun cl-floor (a &optional b) (Values-list (floor* a b)))
-(defun cl-ceiling (a &optional b) (Values-list (ceiling* a b)))
-(defun cl-round (a &optional b) (Values-list (round* a b)))
-(defun cl-truncate (a &optional b) (Values-list (truncate* a b)))
-
 (defun safe-idiv (a b)
   (let* ((q (/ (abs a) (abs b)))
          (s (* (signum a) (signum b))))

=== modified file 'lisp/obsolete/lucid.el'
--- a/lisp/obsolete/lucid.el    2014-04-15 13:21:18 +0000
+++ b/lisp/obsolete/lucid.el    2014-10-02 17:18:57 +0000
@@ -30,27 +30,6 @@
 
 (defalias 'current-time-seconds 'current-time)
 
-(defun read-number (prompt &optional integers-only)
-  "Read a number from the minibuffer.
-Keep reentering the minibuffer until we get suitable input.
-If optional argument INTEGERS-ONLY is non-nil, insist on an integer."
-  (interactive)
-  (let (success
-       (number nil)
-       (predicate (if integers-only 'integerp 'numberp)))
-    (while (not success)
-      (let ((input-string (read-string prompt)))
-       (condition-case ()
-           (setq number (read input-string))
-         (error))
-       (if (funcall predicate number)
-           (setq success t)
-         (let ((cursor-in-echo-area t))
-           (message "Please type %s"
-                    (if integers-only "an integer" "a number"))
-           (sit-for 1)))))
-    number))
-
 (defun real-path-name (name &optional default)
   (file-truename (expand-file-name name default)))
 


reply via email to

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