aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2014-10-02 13:18:57 -0400
committerStefan Monnier2014-10-02 13:18:57 -0400
commita7f5d04fbf9ed4a095a242892a58bf28f1287fda (patch)
tree23f9e4d3fda7be9d20aa505c1a1a81e5f6e17eba
parent253428c4fb82ce7c6c7756f2dee0f16771d08150 (diff)
downloademacs-a7f5d04fbf9ed4a095a242892a58bf28f1287fda.tar.gz
emacs-a7f5d04fbf9ed4a095a242892a58bf28f1287fda.zip
* lisp/obsolete/lucid.el (read-number): Remove, redundant.
* lisp/obsolete/cl-compat.el (cl-floor, cl-ceiling, cl-round, cl-truncate): Remove, broken.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/obsolete/cl-compat.el8
-rw-r--r--lisp/obsolete/lucid.el21
3 files changed, 6 insertions, 29 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index aa8ce36325d..e5ef6703e68 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12014-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * obsolete/lucid.el (read-number): Remove, redundant.
4 * obsolete/cl-compat.el (cl-floor, cl-ceiling, cl-round, cl-truncate):
5 Remove, broken.
6
12014-10-02 Glenn Morris <rgm@gnu.org> 72014-10-02 Glenn Morris <rgm@gnu.org>
2 8
3 * emacs-lisp/package.el (package-import-keyring): 9 * emacs-lisp/package.el (package-import-keyring):
diff --git a/lisp/obsolete/cl-compat.el b/lisp/obsolete/cl-compat.el
index 191f885a900..bd702a84a25 100644
--- a/lisp/obsolete/cl-compat.el
+++ b/lisp/obsolete/cl-compat.el
@@ -129,14 +129,6 @@
129 (if test-not (not (funcall test-not item elt)) 129 (if test-not (not (funcall test-not item elt))
130 (funcall (or test 'eql) item elt)))) 130 (funcall (or test 'eql) item elt))))
131 131
132
133;;; Rounding functions with old-style multiple value returns.
134
135(defun cl-floor (a &optional b) (Values-list (floor* a b)))
136(defun cl-ceiling (a &optional b) (Values-list (ceiling* a b)))
137(defun cl-round (a &optional b) (Values-list (round* a b)))
138(defun cl-truncate (a &optional b) (Values-list (truncate* a b)))
139
140(defun safe-idiv (a b) 132(defun safe-idiv (a b)
141 (let* ((q (/ (abs a) (abs b))) 133 (let* ((q (/ (abs a) (abs b)))
142 (s (* (signum a) (signum b)))) 134 (s (* (signum a) (signum b))))
diff --git a/lisp/obsolete/lucid.el b/lisp/obsolete/lucid.el
index 15f80652809..2c6efa408ff 100644
--- a/lisp/obsolete/lucid.el
+++ b/lisp/obsolete/lucid.el
@@ -30,27 +30,6 @@
30 30
31(defalias 'current-time-seconds 'current-time) 31(defalias 'current-time-seconds 'current-time)
32 32
33(defun read-number (prompt &optional integers-only)
34 "Read a number from the minibuffer.
35Keep reentering the minibuffer until we get suitable input.
36If optional argument INTEGERS-ONLY is non-nil, insist on an integer."
37 (interactive)
38 (let (success
39 (number nil)
40 (predicate (if integers-only 'integerp 'numberp)))
41 (while (not success)
42 (let ((input-string (read-string prompt)))
43 (condition-case ()
44 (setq number (read input-string))
45 (error))
46 (if (funcall predicate number)
47 (setq success t)
48 (let ((cursor-in-echo-area t))
49 (message "Please type %s"
50 (if integers-only "an integer" "a number"))
51 (sit-for 1)))))
52 number))
53
54(defun real-path-name (name &optional default) 33(defun real-path-name (name &optional default)
55 (file-truename (expand-file-name name default))) 34 (file-truename (expand-file-name name default)))
56 35