aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2005-05-09 08:47:56 +0000
committerJuanma Barranquero2005-05-09 08:47:56 +0000
commit786401049ff46b08442a7a9f9ba2b7360433dd7a (patch)
tree03768e77748a74eac51d5505fa9bb45270d30fdb
parent084ea2c3ee70f5403da0d0bbdda8b9a123c65636 (diff)
downloademacs-786401049ff46b08442a7a9f9ba2b7360433dd7a.tar.gz
emacs-786401049ff46b08442a7a9f9ba2b7360433dd7a.zip
(news-parse-range, news-select-message, news-get-pruned-list-of-files):
Replace `string-to-int' by `string-to-number'.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/obsolete/rnews.el12
2 files changed, 12 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d6c88be6b8c..6e688453c28 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,11 @@
12005-05-09 Juanma Barranquero <lekktu@gmail.com> 12005-05-09 Juanma Barranquero <lekktu@gmail.com>
2 2
3 * obsolete/float.el (string-to-float):
4 * obsolete/hilit19.el (hilit-add-pattern):
5 * obsolete/rnews.el (news-parse-range, news-select-message)
6 (news-get-pruned-list-of-files): Replace `string-to-int' by
7 `string-to-number'.
8
3 * obsolete/uncompress.el: Set `find-file-not-found-functions', not 9 * obsolete/uncompress.el: Set `find-file-not-found-functions', not
4 `find-file-not-found-hooks'; use `add-hook'. 10 `find-file-not-found-hooks'; use `add-hook'.
5 (uncompress-while-visiting): Set `write-file-functions', not 11 (uncompress-while-visiting): Set `write-file-functions', not
diff --git a/lisp/obsolete/rnews.el b/lisp/obsolete/rnews.el
index 45d4f768a07..cb2ed034ffc 100644
--- a/lisp/obsolete/rnews.el
+++ b/lisp/obsolete/rnews.el
@@ -397,9 +397,9 @@ U unsubscribe from specified newsgroup."
397to a list (a . b)" 397to a list (a . b)"
398 (let ((n (string-match "-" number-string))) 398 (let ((n (string-match "-" number-string)))
399 (if n 399 (if n
400 (cons (string-to-int (substring number-string 0 n)) 400 (cons (string-to-number (substring number-string 0 n))
401 (string-to-int (substring number-string (1+ n)))) 401 (string-to-number (substring number-string (1+ n))))
402 (setq n (string-to-int number-string)) 402 (setq n (string-to-number number-string))
403 (cons n n)))) 403 (cons n n))))
404 404
405;(defun is-in (elt lis) 405;(defun is-in (elt lis)
@@ -524,7 +524,7 @@ to a list (a . b)"
524 (news-select-message arg)) 524 (news-select-message arg))
525 525
526(defun news-select-message (arg) 526(defun news-select-message (arg)
527 (if (stringp arg) (setq arg (string-to-int arg))) 527 (if (stringp arg) (setq arg (string-to-number arg)))
528 (let ((file (concat news-path 528 (let ((file (concat news-path
529 (string-subst-char ?/ ?. news-current-news-group) 529 (string-subst-char ?/ ?. news-current-news-group)
530 "/" arg))) 530 "/" arg)))
@@ -803,7 +803,7 @@ Using ls was found to be too slow in a previous version."
803 ;; don't get confused by directories that look like numbers 803 ;; don't get confused by directories that look like numbers
804 (file-directory-p 804 (file-directory-p
805 (concat file-directory "/" (car tem))) 805 (concat file-directory "/" (car tem)))
806 (<= (string-to-int (car tem)) end-file-no)) 806 (<= (string-to-number (car tem)) end-file-no))
807 (setq news-list-of-files 807 (setq news-list-of-files
808 (delq (car tem) news-list-of-files))) 808 (delq (car tem) news-list-of-files)))
809 (setq tem (cdr tem))) 809 (setq tem (cdr tem)))
@@ -811,7 +811,7 @@ Using ls was found to be too slow in a previous version."
811 (progn (setq news-current-group-end 0) 811 (progn (setq news-current-group-end 0)
812 nil) 812 nil)
813 (setq news-list-of-files 813 (setq news-list-of-files
814 (mapcar 'string-to-int news-list-of-files)) 814 (mapcar 'string-to-number news-list-of-files))
815 (setq news-list-of-files (sort news-list-of-files '<)) 815 (setq news-list-of-files (sort news-list-of-files '<))
816 (setq news-current-group-end 816 (setq news-current-group-end
817 (elt news-list-of-files 817 (elt news-list-of-files