aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/gnus/ChangeLog52
-rw-r--r--lisp/gnus/gnus-agent.el4
-rw-r--r--lisp/gnus/gnus-art.el2
-rw-r--r--lisp/gnus/gnus-cache.el4
-rw-r--r--lisp/gnus/gnus-group.el4
-rw-r--r--lisp/gnus/gnus-score.el8
-rw-r--r--lisp/gnus/gnus-soup.el8
-rw-r--r--lisp/gnus/gnus-spec.el2
-rw-r--r--lisp/gnus/gnus-start.el2
-rw-r--r--lisp/gnus/gnus-sum.el2
-rw-r--r--lisp/gnus/gnus-uu.el2
-rw-r--r--lisp/gnus/nnbabyl.el2
-rw-r--r--lisp/gnus/nndb.el2
-rw-r--r--lisp/gnus/nndiary.el16
-rw-r--r--lisp/gnus/nndoc.el4
-rw-r--r--lisp/gnus/nndraft.el4
-rw-r--r--lisp/gnus/nneething.el2
-rw-r--r--lisp/gnus/nnfolder.el6
-rw-r--r--lisp/gnus/nnheader.el4
-rw-r--r--lisp/gnus/nnkiboze.el2
-rw-r--r--lisp/gnus/nnmail.el4
-rw-r--r--lisp/gnus/nnmbox.el4
-rw-r--r--lisp/gnus/nnmh.el12
-rw-r--r--lisp/gnus/nnml.el4
-rw-r--r--lisp/gnus/nnrss.el2
-rw-r--r--lisp/gnus/nnsoup.el4
-rw-r--r--lisp/gnus/nnspool.el4
-rw-r--r--lisp/gnus/nntp.el6
-rw-r--r--lisp/gnus/pgg-gpg.el2
-rw-r--r--lisp/gnus/pgg-parse.el6
-rw-r--r--lisp/gnus/pop3.el6
-rw-r--r--lisp/gnus/qp.el6
-rw-r--r--lisp/gnus/spam-report.el4
33 files changed, 124 insertions, 72 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 16db594bf01..1f8f23bbf18 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,55 @@
12005-05-30 Reiner Steib <Reiner.Steib@gmx.de>
2
3 * gnus-agent.el (gnus-agent-regenerate-group)
4 (gnus-agent-fetch-articles): Replace `string-to-int' by
5 `string-to-number'.
6 * gnus-art.el (gnus-button-fetch-group): Ditto.
7 * gnus-cache.el (gnus-cache-generate-active)
8 (gnus-cache-articles-in-group): Ditto.
9 * gnus-group.el (gnus-group-set-current-level)
10 (gnus-group-insert-group-line): Ditto.
11 * gnus-score.el (gnus-score-set-expunge-below)
12 (gnus-score-set-mark-below, gnus-summary-score-effect)
13 (gnus-summary-score-entry): Ditto.
14 * gnus-soup.el (gnus-soup-send-packet, gnus-soup-parse-areas)
15 (gnus-soup-pack): Ditto.
16 * gnus-spec.el (gnus-xmas-format): Ditto.
17 * gnus-start.el (gnus-newsrc-to-gnus-format): Ditto.
18 * gnus-sum.el (gnus-create-xref-hashtb): Ditto.
19 * gnus-uu.el (gnus-uu-expand-numbers): Ditto.
20 * nnbabyl.el (nnbabyl-article-group-number): Ditto.
21 * nndb.el (nndb-get-remote-expire-response): Ditto.
22 * nndiary.el (nndiary-parse-schedule-value)
23 (nndiary-string-to-number, nndiary-request-replace-article)
24 (nndiary-request-article): Ditto.
25 * nndoc.el (nndoc-rnews-body-end, nndoc-mbox-body-end): Ditto.
26 * nndraft.el (nndraft-articles, nndraft-request-group): Ditto.
27 * nneething.el (nneething-make-head): Ditto.
28 * nnfolder.el (nnfolder-request-article)
29 (nnfolder-retrieve-headers): Ditto.
30 * nnheader.el (nnheader-file-to-number): Ditto.
31 * nnkiboze.el (nnkiboze-request-article): Ditto.
32 * nnmail.el (nnmail-process-unix-mail-format)
33 (nnmail-process-babyl-mail-format): Ditto.
34 * nnmbox.el (nnmbox-read-mbox, nnmbox-article-group-number): Ditto.
35 * nnmh.el (nnmh-update-gnus-unreads, nnmh-active-number)
36 (nnmh-request-create-group, nnmh-request-list-1)
37 (nnmh-request-group, nnmh-request-article): Ditto.
38 * nnml.el (nnml-request-replace-article, nnml-request-article): Ditto.
39 * nnrss.el (nnrss-find-rss-via-syndic8): Ditto.
40 * nnsoup.el (nnsoup-make-active): Ditto.
41 * nnspool.el (nnspool-find-id, nnspool-request-group): Ditto.
42 * nntp.el (nntp-find-group-and-number)
43 (nntp-retrieve-headers-with-xover): Ditto.
44 * pgg-gpg.el (pgg-gpg-snarf-keys-region): Ditto.
45 * pgg-parse.el (pgg-read-body, pgg-read-bytes)
46 (pgg-format-key-identifier): Ditto.
47 * pop3.el (pop3-last, pop3-stat): Ditto.
48 * qp.el (quoted-printable-decode-region): Ditto.
49
50 * spam-report.el (spam-report-url-ping-mm-url): Use format instead
51 of concat.
52
12005-05-30 Katsumi Yamaoka <yamaoka@jpl.org> 532005-05-30 Katsumi Yamaoka <yamaoka@jpl.org>
2 54
3 * gnus-agent.el (gnus-category-mode): Use gnus-run-mode-hooks. 55 * gnus-agent.el (gnus-category-mode): Use gnus-run-mode-hooks.
diff --git a/lisp/gnus/gnus-agent.el b/lisp/gnus/gnus-agent.el
index 3d353d1ba56..9f4525e1ae2 100644
--- a/lisp/gnus/gnus-agent.el
+++ b/lisp/gnus/gnus-agent.el
@@ -1540,7 +1540,7 @@ downloaded into the agent."
1540 (while (looking-at "\\([^: \n]+\\):\\([0-9]+\\) *") 1540 (while (looking-at "\\([^: \n]+\\):\\([0-9]+\\) *")
1541 (push (cons (buffer-substring (match-beginning 1) 1541 (push (cons (buffer-substring (match-beginning 1)
1542 (match-end 1)) 1542 (match-end 1))
1543 (string-to-int 1543 (string-to-number
1544 (buffer-substring (match-beginning 2) 1544 (buffer-substring (match-beginning 2)
1545 (match-end 2)))) 1545 (match-end 2))))
1546 crosses) 1546 crosses)
@@ -3703,7 +3703,7 @@ If REREAD is not nil, downloaded articles are marked as unread."
3703 (dir (file-name-directory file)) 3703 (dir (file-name-directory file))
3704 point 3704 point
3705 (downloaded (if (file-exists-p dir) 3705 (downloaded (if (file-exists-p dir)
3706 (sort (mapcar (lambda (name) (string-to-int name)) 3706 (sort (mapcar (lambda (name) (string-to-number name))
3707 (directory-files dir nil "^[0-9]+$" t)) 3707 (directory-files dir nil "^[0-9]+$" t))
3708 '>) 3708 '>)
3709 (progn (gnus-make-directory dir) nil))) 3709 (progn (gnus-make-directory dir) nil)))
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el
index 70096b58729..c3076cbb22e 100644
--- a/lisp/gnus/gnus-art.el
+++ b/lisp/gnus/gnus-art.el
@@ -6787,7 +6787,7 @@ specified by `gnus-button-alist'."
6787 (match-string 3 address) 6787 (match-string 3 address)
6788 "nntp"))) 6788 "nntp")))
6789 nil nil nil 6789 nil nil nil
6790 (and (match-end 6) (list (string-to-int (match-string 6 address)))))))) 6790 (and (match-end 6) (list (string-to-number (match-string 6 address))))))))
6791 6791
6792(defun gnus-url-parse-query-string (query &optional downcase) 6792(defun gnus-url-parse-query-string (query &optional downcase)
6793 (let (retval pairs cur key val) 6793 (let (retval pairs cur key val)
diff --git a/lisp/gnus/gnus-cache.el b/lisp/gnus/gnus-cache.el
index 657ade98167..55544d1525c 100644
--- a/lisp/gnus/gnus-cache.el
+++ b/lisp/gnus/gnus-cache.el
@@ -487,7 +487,7 @@ Returns the list of articles removed."
487 articles) 487 articles)
488 (when (file-exists-p dir) 488 (when (file-exists-p dir)
489 (setq articles 489 (setq articles
490 (sort (mapcar (lambda (name) (string-to-int name)) 490 (sort (mapcar (lambda (name) (string-to-number name))
491 (directory-files dir nil "^[0-9]+$" t)) 491 (directory-files dir nil "^[0-9]+$" t))
492 '<)) 492 '<))
493 ;; Update the cache active file, just to synch more. 493 ;; Update the cache active file, just to synch more.
@@ -681,7 +681,7 @@ If LOW, update the lower bound instead."
681 ;; Separate articles from all other files and directories. 681 ;; Separate articles from all other files and directories.
682 (while files 682 (while files
683 (if (string-match "^[0-9]+$" (file-name-nondirectory (car files))) 683 (if (string-match "^[0-9]+$" (file-name-nondirectory (car files)))
684 (push (string-to-int (file-name-nondirectory (pop files))) nums) 684 (push (string-to-number (file-name-nondirectory (pop files))) nums)
685 (push (pop files) alphs))) 685 (push (pop files) alphs)))
686 ;; If we have nums, then this is probably a valid group. 686 ;; If we have nums, then this is probably a valid group.
687 (when (setq nums (sort nums '<)) 687 (when (setq nums (sort nums '<))
diff --git a/lisp/gnus/gnus-group.el b/lisp/gnus/gnus-group.el
index 44d59729b6f..578e74d2a0e 100644
--- a/lisp/gnus/gnus-group.el
+++ b/lisp/gnus/gnus-group.el
@@ -1452,7 +1452,7 @@ if it is a string, only list groups matching REGEXP."
1452 (eval gnus-group-line-format-spec))) 1452 (eval gnus-group-line-format-spec)))
1453 `(gnus-group ,(gnus-intern-safe gnus-tmp-group gnus-active-hashtb) 1453 `(gnus-group ,(gnus-intern-safe gnus-tmp-group gnus-active-hashtb)
1454 gnus-unread ,(if (numberp number) 1454 gnus-unread ,(if (numberp number)
1455 (string-to-int gnus-tmp-number-of-unread) 1455 (string-to-number gnus-tmp-number-of-unread)
1456 t) 1456 t)
1457 gnus-marked ,gnus-tmp-marked-mark 1457 gnus-marked ,gnus-tmp-marked-mark
1458 gnus-indentation ,gnus-group-indentation 1458 gnus-indentation ,gnus-group-indentation
@@ -3246,7 +3246,7 @@ Uses the process/prefix convention."
3246 (progn 3246 (progn
3247 (unless (gnus-group-process-prefix current-prefix-arg) 3247 (unless (gnus-group-process-prefix current-prefix-arg)
3248 (error "No group on the current line")) 3248 (error "No group on the current line"))
3249 (string-to-int 3249 (string-to-number
3250 (let ((s (read-string 3250 (let ((s (read-string
3251 (format "Level (default %s): " 3251 (format "Level (default %s): "
3252 (or (gnus-group-group-level) 3252 (or (gnus-group-group-level)
diff --git a/lisp/gnus/gnus-score.el b/lisp/gnus/gnus-score.el
index 3a22f9030e5..a2c3b249343 100644
--- a/lisp/gnus/gnus-score.el
+++ b/lisp/gnus/gnus-score.el
@@ -826,7 +826,7 @@ If optional argument `EXTRA' is non-nil, it's a non-standard overview header."
826 ;; If this is an integer comparison, we transform from string to int. 826 ;; If this is an integer comparison, we transform from string to int.
827 (if (eq (nth 2 (assoc header gnus-header-index)) 'gnus-score-integer) 827 (if (eq (nth 2 (assoc header gnus-header-index)) 'gnus-score-integer)
828 (if (stringp match) 828 (if (stringp match)
829 (setq match (string-to-int match))) 829 (setq match (string-to-number match)))
830 (set-text-properties 0 (length match) nil match)) 830 (set-text-properties 0 (length match) nil match))
831 831
832 (unless (eq date 'now) 832 (unless (eq date 'now)
@@ -891,7 +891,7 @@ EXTRA is the possible non-standard header."
891 t) 891 t)
892 (read-string "Match: ") 892 (read-string "Match: ")
893 (if (y-or-n-p "Use regexp match? ") 'r 's) 893 (if (y-or-n-p "Use regexp match? ") 'r 's)
894 (string-to-int (read-string "Score: ")))) 894 (string-to-number (read-string "Score: "))))
895 (save-excursion 895 (save-excursion
896 (unless (and (stringp match) (> (length match) 0)) 896 (unless (and (stringp match) (> (length match) 0))
897 (error "No match")) 897 (error "No match"))
@@ -945,7 +945,7 @@ EXTRA is the possible non-standard header."
945 "Automatically mark articles with score below SCORE as read." 945 "Automatically mark articles with score below SCORE as read."
946 (interactive 946 (interactive
947 (list (or (and current-prefix-arg (prefix-numeric-value current-prefix-arg)) 947 (list (or (and current-prefix-arg (prefix-numeric-value current-prefix-arg))
948 (string-to-int (read-string "Mark below: "))))) 948 (string-to-number (read-string "Mark below: ")))))
949 (setq score (or score gnus-summary-default-score 0)) 949 (setq score (or score gnus-summary-default-score 0))
950 (gnus-score-set 'mark (list score)) 950 (gnus-score-set 'mark (list score))
951 (gnus-score-set 'touched '(t)) 951 (gnus-score-set 'touched '(t))
@@ -979,7 +979,7 @@ EXTRA is the possible non-standard header."
979 "Automatically expunge articles with score below SCORE." 979 "Automatically expunge articles with score below SCORE."
980 (interactive 980 (interactive
981 (list (or (and current-prefix-arg (prefix-numeric-value current-prefix-arg)) 981 (list (or (and current-prefix-arg (prefix-numeric-value current-prefix-arg))
982 (string-to-int (read-string "Set expunge below: "))))) 982 (string-to-number (read-string "Set expunge below: ")))))
983 (setq score (or score gnus-summary-default-score 0)) 983 (setq score (or score gnus-summary-default-score 0))
984 (gnus-score-set 'expunge (list score)) 984 (gnus-score-set 'expunge (list score))
985 (gnus-score-set 'touched '(t))) 985 (gnus-score-set 'touched '(t)))
diff --git a/lisp/gnus/gnus-soup.el b/lisp/gnus/gnus-soup.el
index 55dc1635542..48a8fc0c380 100644
--- a/lisp/gnus/gnus-soup.el
+++ b/lisp/gnus/gnus-soup.el
@@ -349,9 +349,9 @@ If NOT-ALL, don't pack ticked articles."
349 (packer (if (< (string-match "%s" packer) 349 (packer (if (< (string-match "%s" packer)
350 (string-match "%d" packer)) 350 (string-match "%d" packer))
351 (format packer files 351 (format packer files
352 (string-to-int (gnus-soup-unique-prefix dir))) 352 (string-to-number (gnus-soup-unique-prefix dir)))
353 (format packer 353 (format packer
354 (string-to-int (gnus-soup-unique-prefix dir)) 354 (string-to-number (gnus-soup-unique-prefix dir))
355 files))) 355 files)))
356 (dir (expand-file-name dir))) 356 (dir (expand-file-name dir)))
357 (gnus-make-directory dir) 357 (gnus-make-directory dir)
@@ -385,7 +385,7 @@ though the two last may be nil if they are missing."
385 (and (eq (preceding-char) ?\t) 385 (and (eq (preceding-char) ?\t)
386 (gnus-soup-field)) 386 (gnus-soup-field))
387 (and (eq (preceding-char) ?\t) 387 (and (eq (preceding-char) ?\t)
388 (string-to-int (gnus-soup-field)))) 388 (string-to-number (gnus-soup-field))))
389 areas) 389 areas)
390 (when (eq (preceding-char) ?\t) 390 (when (eq (preceding-char) ?\t)
391 (beginning-of-line 2))) 391 (beginning-of-line 2)))
@@ -535,7 +535,7 @@ Return whether the unpacking was successful."
535 (error "Bad header")) 535 (error "Bad header"))
536 (forward-line 1) 536 (forward-line 1)
537 (setq beg (point) 537 (setq beg (point)
538 end (+ (point) (string-to-int 538 end (+ (point) (string-to-number
539 (buffer-substring 539 (buffer-substring
540 (match-beginning 1) (match-end 1))))) 540 (match-beginning 1) (match-end 1)))))
541 (switch-to-buffer tmp-buf) 541 (switch-to-buffer tmp-buf)
diff --git a/lisp/gnus/gnus-spec.el b/lisp/gnus/gnus-spec.el
index ef1c43167f5..39b87727279 100644
--- a/lisp/gnus/gnus-spec.el
+++ b/lisp/gnus/gnus-spec.el
@@ -509,7 +509,7 @@ are supported for %s."
509 (t 509 (t
510 (if (null args) 510 (if (null args)
511 (error 'wrong-number-of-arguments #'my-format n fstring)) 511 (error 'wrong-number-of-arguments #'my-format n fstring))
512 (let* ((minlen (string-to-int (or (match-string 2) ""))) 512 (let* ((minlen (string-to-number (or (match-string 2) "")))
513 (arg (car args)) 513 (arg (car args))
514 (str (if (stringp arg) arg (format "%s" arg))) 514 (str (if (stringp arg) arg (format "%s" arg)))
515 (lpad (null (match-string 1))) 515 (lpad (null (match-string 1)))
diff --git a/lisp/gnus/gnus-start.el b/lisp/gnus/gnus-start.el
index 6eec4f4e846..785ad87a2ee 100644
--- a/lisp/gnus/gnus-start.el
+++ b/lisp/gnus/gnus-start.el
@@ -2517,7 +2517,7 @@ If FORCE is non-nil, the .newsrc file is read."
2517 (cond 2517 (cond
2518 ((looking-at "[0-9]+") 2518 ((looking-at "[0-9]+")
2519 ;; We narrow and read a number instead of buffer-substring/ 2519 ;; We narrow and read a number instead of buffer-substring/
2520 ;; string-to-int because it's faster. narrow/widen is 2520 ;; string-to-number because it's faster. narrow/widen is
2521 ;; faster than save-restriction/narrow, and save-restriction 2521 ;; faster than save-restriction/narrow, and save-restriction
2522 ;; produces a garbage object. 2522 ;; produces a garbage object.
2523 (setq num1 (progn 2523 (setq num1 (progn
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el
index fd44e475ddd..8d4c536229b 100644
--- a/lisp/gnus/gnus-sum.el
+++ b/lisp/gnus/gnus-sum.el
@@ -5660,7 +5660,7 @@ The resulting hash table is returned, or nil if no Xrefs were found."
5660 (match-end 1))) 5660 (match-end 1)))
5661 (substring xrefs (match-beginning 1) (match-end 1)))) 5661 (substring xrefs (match-beginning 1) (match-end 1))))
5662 (setq number 5662 (setq number
5663 (string-to-int (substring xrefs (match-beginning 2) 5663 (string-to-number (substring xrefs (match-beginning 2)
5664 (match-end 2)))) 5664 (match-end 2))))
5665 (if (setq entry (gnus-gethash group xref-hashtb)) 5665 (if (setq entry (gnus-gethash group xref-hashtb))
5666 (setcdr entry (cons number (cdr entry))) 5666 (setcdr entry (cons number (cdr entry)))
diff --git a/lisp/gnus/gnus-uu.el b/lisp/gnus/gnus-uu.el
index 3b2a29c238e..a705f230241 100644
--- a/lisp/gnus/gnus-uu.el
+++ b/lisp/gnus/gnus-uu.el
@@ -1185,7 +1185,7 @@ When called interactively, prompt for REGEXP."
1185 (ignore-errors 1185 (ignore-errors
1186 (replace-match 1186 (replace-match
1187 (format "%06d" 1187 (format "%06d"
1188 (string-to-int (buffer-substring 1188 (string-to-number (buffer-substring
1189 (match-beginning 0) (match-end 0))))))) 1189 (match-beginning 0) (match-end 0)))))))
1190 (setq string (buffer-substring 1 (point-max))) 1190 (setq string (buffer-substring 1 (point-max)))
1191 (setcar (car string-list) string) 1191 (setcar (car string-list) string)
diff --git a/lisp/gnus/nnbabyl.el b/lisp/gnus/nnbabyl.el
index e69b6a0304a..dae51fca50b 100644
--- a/lisp/gnus/nnbabyl.el
+++ b/lisp/gnus/nnbabyl.el
@@ -493,7 +493,7 @@
493 (when (re-search-forward "^X-Gnus-Newsgroup: +\\([^:]+\\):\\([0-9]+\\) " 493 (when (re-search-forward "^X-Gnus-Newsgroup: +\\([^:]+\\):\\([0-9]+\\) "
494 nil t) 494 nil t)
495 (cons (buffer-substring (match-beginning 1) (match-end 1)) 495 (cons (buffer-substring (match-beginning 1) (match-end 1))
496 (string-to-int 496 (string-to-number
497 (buffer-substring (match-beginning 2) (match-end 2))))))) 497 (buffer-substring (match-beginning 2) (match-end 2)))))))
498 498
499(defun nnbabyl-insert-lines () 499(defun nnbabyl-insert-lines ()
diff --git a/lisp/gnus/nndb.el b/lisp/gnus/nndb.el
index 6aaf57c81e1..fe4072c5d35 100644
--- a/lisp/gnus/nndb.el
+++ b/lisp/gnus/nndb.el
@@ -196,7 +196,7 @@ article was posted to nndb")
196 ;; otherwise, pull all of the following numbers into the list 196 ;; otherwise, pull all of the following numbers into the list
197 (re-search-forward "follows\r?\n?" nil t) 197 (re-search-forward "follows\r?\n?" nil t)
198 (while (re-search-forward "^[0-9]+$" nil t) 198 (while (re-search-forward "^[0-9]+$" nil t)
199 (push (string-to-int (match-string 0)) list))) 199 (push (string-to-number (match-string 0)) list)))
200 list)) 200 list))
201 201
202(defun nndb-request-expire-articles-remote 202(defun nndb-request-expire-articles-remote
diff --git a/lisp/gnus/nndiary.el b/lisp/gnus/nndiary.el
index de33cd156c6..e4b087eec2e 100644
--- a/lisp/gnus/nndiary.el
+++ b/lisp/gnus/nndiary.el
@@ -601,7 +601,7 @@ all. This may very well take some time.")
601 (nnheader-report 'nndiary "Article %s retrieved" id) 601 (nnheader-report 'nndiary "Article %s retrieved" id)
602 ;; We return the article number. 602 ;; We return the article number.
603 (cons (if group-num (car group-num) group) 603 (cons (if group-num (car group-num) group)
604 (string-to-int (file-name-nondirectory path))))))) 604 (string-to-number (file-name-nondirectory path)))))))
605 605
606(deffoo nndiary-request-group (group &optional server dont-check) 606(deffoo nndiary-request-group (group &optional server dont-check)
607 (let ((file-name-coding-system nnmail-pathname-coding-system)) 607 (let ((file-name-coding-system nnmail-pathname-coding-system))
@@ -820,7 +820,7 @@ all. This may very well take some time.")
820 ;; we should insert it. (This situation should never 820 ;; we should insert it. (This situation should never
821 ;; occur, but one likes to make sure...) 821 ;; occur, but one likes to make sure...)
822 (while (and (looking-at "[0-9]+\t") 822 (while (and (looking-at "[0-9]+\t")
823 (< (string-to-int 823 (< (string-to-number
824 (buffer-substring 824 (buffer-substring
825 (match-beginning 0) (match-end 0))) 825 (match-beginning 0) (match-end 0)))
826 article) 826 article)
@@ -1281,14 +1281,14 @@ all. This may very well take some time.")
1281 (nnheader-article-to-file-alist nndiary-current-directory)))) 1281 (nnheader-article-to-file-alist nndiary-current-directory))))
1282 1282
1283 1283
1284(defun nndiary-string-to-int (str min &optional max) 1284(defun nndiary-string-to-number (str min &optional max)
1285 ;; Like `string-to-int' but barf if STR is not exactly an integer, and not 1285 ;; Like `string-to-number' but barf if STR is not exactly an integer, and not
1286 ;; within the specified bounds. 1286 ;; within the specified bounds.
1287 ;; Signals are caught by `nndiary-schedule'. 1287 ;; Signals are caught by `nndiary-schedule'.
1288 (if (not (string-match "^[ \t]*[0-9]+[ \t]*$" str)) 1288 (if (not (string-match "^[ \t]*[0-9]+[ \t]*$" str))
1289 (nndiary-error "not an integer value") 1289 (nndiary-error "not an integer value")
1290 ;; else 1290 ;; else
1291 (let ((val (string-to-int str))) 1291 (let ((val (string-to-number str)))
1292 (and (or (< val min) 1292 (and (or (< val min)
1293 (and max (> val max))) 1293 (and max (> val max)))
1294 (nndiary-error "value out of range")) 1294 (nndiary-error "value out of range"))
@@ -1315,12 +1315,12 @@ all. This may very well take some time.")
1315 (let ((res (split-string val "-"))) 1315 (let ((res (split-string val "-")))
1316 (cond 1316 (cond
1317 ((= (length res) 1) 1317 ((= (length res) 1)
1318 (nndiary-string-to-int (car res) min-or-values max)) 1318 (nndiary-string-to-number (car res) min-or-values max))
1319 ((= (length res) 2) 1319 ((= (length res) 2)
1320 ;; don't know if crontab accepts this, but ensure 1320 ;; don't know if crontab accepts this, but ensure
1321 ;; that BEG is <= END 1321 ;; that BEG is <= END
1322 (let ((beg (nndiary-string-to-int (car res) min-or-values max)) 1322 (let ((beg (nndiary-string-to-number (car res) min-or-values max))
1323 (end (nndiary-string-to-int (cadr res) min-or-values max))) 1323 (end (nndiary-string-to-number (cadr res) min-or-values max)))
1324 (cond ((< beg end) 1324 (cond ((< beg end)
1325 (cons beg end)) 1325 (cons beg end))
1326 ((= beg end) 1326 ((= beg end)
diff --git a/lisp/gnus/nndoc.el b/lisp/gnus/nndoc.el
index 47a3cbd0292..a7948365680 100644
--- a/lisp/gnus/nndoc.el
+++ b/lisp/gnus/nndoc.el
@@ -421,7 +421,7 @@ from the document.")
421 (search-forward "\n\n" beg t) 421 (search-forward "\n\n" beg t)
422 (re-search-backward 422 (re-search-backward
423 "^Content-Length:[ \t]*\\([0-9]+\\) *$" end t) 423 "^Content-Length:[ \t]*\\([0-9]+\\) *$" end t)
424 (setq len (string-to-int (match-string 1))) 424 (setq len (string-to-number (match-string 1)))
425 (search-forward "\n\n" beg t) 425 (search-forward "\n\n" beg t)
426 (unless (= (setq len (+ (point) len)) (point-max)) 426 (unless (= (setq len (+ (point) len)) (point-max))
427 (and (< len (point-max)) 427 (and (< len (point-max))
@@ -444,7 +444,7 @@ from the document.")
444(defun nndoc-rnews-body-end () 444(defun nndoc-rnews-body-end ()
445 (and (re-search-backward nndoc-article-begin nil t) 445 (and (re-search-backward nndoc-article-begin nil t)
446 (forward-line 1) 446 (forward-line 1)
447 (goto-char (+ (point) (string-to-int (match-string 1)))))) 447 (goto-char (+ (point) (string-to-number (match-string 1))))))
448 448
449(defun nndoc-babyl-type-p () 449(defun nndoc-babyl-type-p ()
450 (when (re-search-forward "\^_\^L *\n" nil t) 450 (when (re-search-forward "\^_\^L *\n" nil t)
diff --git a/lisp/gnus/nndraft.el b/lisp/gnus/nndraft.el
index 9235bf72a29..a71376155c1 100644
--- a/lisp/gnus/nndraft.el
+++ b/lisp/gnus/nndraft.el
@@ -185,7 +185,7 @@
185 (file-name-coding-system nnmail-pathname-coding-system) 185 (file-name-coding-system nnmail-pathname-coding-system)
186 dir file) 186 dir file)
187 (nnheader-re-read-dir pathname) 187 (nnheader-re-read-dir pathname)
188 (setq dir (mapcar (lambda (name) (string-to-int (substring name 1))) 188 (setq dir (mapcar (lambda (name) (string-to-number (substring name 1)))
189 (ignore-errors (directory-files 189 (ignore-errors (directory-files
190 pathname nil "^#[0-9]+#$" t)))) 190 pathname nil "^#[0-9]+#$" t))))
191 (dolist (n dir) 191 (dolist (n dir)
@@ -293,7 +293,7 @@
293 "Return the list of messages in the group." 293 "Return the list of messages in the group."
294 (gnus-make-directory nndraft-current-directory) 294 (gnus-make-directory nndraft-current-directory)
295 (sort 295 (sort
296 (mapcar 'string-to-int 296 (mapcar 'string-to-number
297 (directory-files nndraft-current-directory nil "\\`[0-9]+\\'" t)) 297 (directory-files nndraft-current-directory nil "\\`[0-9]+\\'" t))
298 '<)) 298 '<))
299 299
diff --git a/lisp/gnus/nneething.el b/lisp/gnus/nneething.el
index d7698efb845..61f8eefbf17 100644
--- a/lisp/gnus/nneething.el
+++ b/lisp/gnus/nneething.el
@@ -329,7 +329,7 @@ included.")
329 (when (re-search-forward "<[a-zA-Z0-9_]@[-a-zA-Z0-9_]>" 1000 t) 329 (when (re-search-forward "<[a-zA-Z0-9_]@[-a-zA-Z0-9_]>" 1000 t)
330 (concat "From: " (match-string 0) "\n")))) 330 (concat "From: " (match-string 0) "\n"))))
331 (nneething-from-line (nth 2 atts) file)) 331 (nneething-from-line (nth 2 atts) file))
332 (if (> (string-to-int (int-to-string (nth 7 atts))) 0) 332 (if (> (string-to-number (int-to-string (nth 7 atts))) 0)
333 (concat "Chars: " (int-to-string (nth 7 atts)) "\n") 333 (concat "Chars: " (int-to-string (nth 7 atts)) "\n")
334 "") 334 "")
335 (if buffer 335 (if buffer
diff --git a/lisp/gnus/nnfolder.el b/lisp/gnus/nnfolder.el
index f50530ab459..961f124a614 100644
--- a/lisp/gnus/nnfolder.el
+++ b/lisp/gnus/nnfolder.el
@@ -200,7 +200,7 @@ the group. Then the marks file will be regenerated properly by Gnus.")
200 ((search-backward (concat "\n" nnfolder-article-marker) 200 ((search-backward (concat "\n" nnfolder-article-marker)
201 nil t) 201 nil t)
202 (goto-char (match-end 0)) 202 (goto-char (match-end 0))
203 (setq num (string-to-int 203 (setq num (string-to-number
204 (buffer-substring 204 (buffer-substring
205 (point) (gnus-point-at-eol)))) 205 (point) (gnus-point-at-eol))))
206 (goto-char start) 206 (goto-char start)
@@ -210,7 +210,7 @@ the group. Then the marks file will be regenerated properly by Gnus.")
210 (search-forward (concat "\n" nnfolder-article-marker) 210 (search-forward (concat "\n" nnfolder-article-marker)
211 nil t) 211 nil t)
212 (progn 212 (progn
213 (setq num (string-to-int 213 (setq num (string-to-number
214 (buffer-substring 214 (buffer-substring
215 (point) (gnus-point-at-eol)))) 215 (point) (gnus-point-at-eol))))
216 (> num article)) 216 (> num article))
@@ -285,7 +285,7 @@ the group. Then the marks file will be regenerated properly by Gnus.")
285 (cons nnfolder-current-group 285 (cons nnfolder-current-group
286 (if (search-forward (concat "\n" nnfolder-article-marker) 286 (if (search-forward (concat "\n" nnfolder-article-marker)
287 nil t) 287 nil t)
288 (string-to-int (buffer-substring 288 (string-to-number (buffer-substring
289 (point) (gnus-point-at-eol))) 289 (point) (gnus-point-at-eol)))
290 -1)))))))) 290 -1))))))))
291 291
diff --git a/lisp/gnus/nnheader.el b/lisp/gnus/nnheader.el
index 6224f9718f1..c55252e5b64 100644
--- a/lisp/gnus/nnheader.el
+++ b/lisp/gnus/nnheader.el
@@ -683,9 +683,9 @@ the line could be found."
683(defsubst nnheader-file-to-number (file) 683(defsubst nnheader-file-to-number (file)
684 "Take a FILE name and return the article number." 684 "Take a FILE name and return the article number."
685 (if (string= nnheader-numerical-short-files "^[0-9]+$") 685 (if (string= nnheader-numerical-short-files "^[0-9]+$")
686 (string-to-int file) 686 (string-to-number file)
687 (string-match nnheader-numerical-short-files file) 687 (string-match nnheader-numerical-short-files file)
688 (string-to-int (match-string 0 file)))) 688 (string-to-number (match-string 0 file))))
689 689
690(defvar nnheader-directory-files-is-safe 690(defvar nnheader-directory-files-is-safe
691 (or (eq system-type 'windows-nt) 691 (or (eq system-type 'windows-nt)
diff --git a/lisp/gnus/nnkiboze.el b/lisp/gnus/nnkiboze.el
index f68bb8b5f55..f6766836fe1 100644
--- a/lisp/gnus/nnkiboze.el
+++ b/lisp/gnus/nnkiboze.el
@@ -106,7 +106,7 @@
106 (error "nnkiboze: No xref")) 106 (error "nnkiboze: No xref"))
107 (unless (string-match " \\([^ ]+\\):\\([0-9]+\\)" xref) 107 (unless (string-match " \\([^ ]+\\):\\([0-9]+\\)" xref)
108 (error "nnkiboze: Malformed xref")) 108 (error "nnkiboze: Malformed xref"))
109 (setq num (string-to-int (match-string 2 xref)) 109 (setq num (string-to-number (match-string 2 xref))
110 group (match-string 1 xref)) 110 group (match-string 1 xref))
111 (or (with-current-buffer buffer 111 (or (with-current-buffer buffer
112 (or (and gnus-use-cache (gnus-cache-request-article num group)) 112 (or (and gnus-use-cache (gnus-cache-request-article num group))
diff --git a/lisp/gnus/nnmail.el b/lisp/gnus/nnmail.el
index c0689335f67..affe72c75c8 100644
--- a/lisp/gnus/nnmail.el
+++ b/lisp/gnus/nnmail.el
@@ -769,7 +769,7 @@ If SOURCE is a directory spec, try to return the group name component."
769 (if (not (save-excursion 769 (if (not (save-excursion
770 (and (re-search-backward 770 (and (re-search-backward
771 "^Content-Length:[ \t]*\\([0-9]+\\)" start t) 771 "^Content-Length:[ \t]*\\([0-9]+\\)" start t)
772 (setq content-length (string-to-int 772 (setq content-length (string-to-number
773 (buffer-substring 773 (buffer-substring
774 (match-beginning 1) 774 (match-beginning 1)
775 (match-end 1)))) 775 (match-end 1))))
@@ -906,7 +906,7 @@ If SOURCE is a directory spec, try to return the group name component."
906 (if (not (re-search-forward 906 (if (not (re-search-forward
907 "^Content-Length:[ \t]*\\([0-9]+\\)" nil t)) 907 "^Content-Length:[ \t]*\\([0-9]+\\)" nil t))
908 (setq content-length nil) 908 (setq content-length nil)
909 (setq content-length (string-to-int (match-string 1))) 909 (setq content-length (string-to-number (match-string 1)))
910 ;; We destroy the header, since none of the backends ever 910 ;; We destroy the header, since none of the backends ever
911 ;; use it, and we do not want to confuse other mailers by 911 ;; use it, and we do not want to confuse other mailers by
912 ;; having a (possibly) faulty header. 912 ;; having a (possibly) faulty header.
diff --git a/lisp/gnus/nnmbox.el b/lisp/gnus/nnmbox.el
index a1957fa0dcd..42721f2e92e 100644
--- a/lisp/gnus/nnmbox.el
+++ b/lisp/gnus/nnmbox.el
@@ -475,7 +475,7 @@
475 (when (re-search-forward "^X-Gnus-Newsgroup: +\\([^:]+\\):\\([0-9]+\\) " 475 (when (re-search-forward "^X-Gnus-Newsgroup: +\\([^:]+\\):\\([0-9]+\\) "
476 nil t) 476 nil t)
477 (cons (buffer-substring (match-beginning 1) (match-end 1)) 477 (cons (buffer-substring (match-beginning 1) (match-end 1))
478 (string-to-int 478 (string-to-number
479 (buffer-substring (match-beginning 2) (match-end 2))))))) 479 (buffer-substring (match-beginning 2) (match-end 2)))))))
480 480
481(defun nnmbox-in-header-p (pos) 481(defun nnmbox-in-header-p (pos)
@@ -681,7 +681,7 @@
681 (let (alist) 681 (let (alist)
682 (while (re-search-forward " \\([^:]+\\):\\([0-9]+\\)" end-header t) 682 (while (re-search-forward " \\([^:]+\\):\\([0-9]+\\)" end-header t)
683 (push (cons (match-string 1) 683 (push (cons (match-string 1)
684 (string-to-int (match-string 2))) alist)) 684 (string-to-number (match-string 2))) alist))
685 (nnmbox-insert-newsgroup-line alist)) 685 (nnmbox-insert-newsgroup-line alist))
686 ;; this is really a new article 686 ;; this is really a new article
687 (nnmbox-save-mail 687 (nnmbox-save-mail
diff --git a/lisp/gnus/nnmh.el b/lisp/gnus/nnmh.el
index 37f0bb353e8..af99217fe6d 100644
--- a/lisp/gnus/nnmh.el
+++ b/lisp/gnus/nnmh.el
@@ -150,7 +150,7 @@ as unread by Gnus.")
150 (file-exists-p file) 150 (file-exists-p file)
151 (not (file-directory-p file)) 151 (not (file-directory-p file))
152 (save-excursion (nnmail-find-file file)) 152 (save-excursion (nnmail-find-file file))
153 (string-to-int (file-name-nondirectory file))))) 153 (string-to-number (file-name-nondirectory file)))))
154 154
155(deffoo nnmh-request-group (group &optional server dont-check) 155(deffoo nnmh-request-group (group &optional server dont-check)
156 (nnheader-init-server-buffer) 156 (nnheader-init-server-buffer)
@@ -176,7 +176,7 @@ as unread by Gnus.")
176 (nnheader-re-read-dir pathname) 176 (nnheader-re-read-dir pathname)
177 (setq dir 177 (setq dir
178 (sort 178 (sort
179 (mapcar (lambda (name) (string-to-int name)) 179 (mapcar (lambda (name) (string-to-number name))
180 (directory-files pathname nil "^[0-9]+$" t)) 180 (directory-files pathname nil "^[0-9]+$" t))
181 '<)) 181 '<))
182 (cond 182 (cond
@@ -224,7 +224,7 @@ as unread by Gnus.")
224 ;; For each directory, generate an active file line. 224 ;; For each directory, generate an active file line.
225 (unless (string= (expand-file-name nnmh-toplev) dir) 225 (unless (string= (expand-file-name nnmh-toplev) dir)
226 (let ((files (mapcar 226 (let ((files (mapcar
227 (lambda (name) (string-to-int name)) 227 (lambda (name) (string-to-number name))
228 (directory-files dir nil "^[0-9]+$" t)))) 228 (directory-files dir nil "^[0-9]+$" t))))
229 (when files 229 (when files
230 (save-excursion 230 (save-excursion
@@ -358,7 +358,7 @@ as unread by Gnus.")
358 (nnmh-possibly-change-directory group server) 358 (nnmh-possibly-change-directory group server)
359 (let ((articles (mapcar 359 (let ((articles (mapcar
360 (lambda (file) 360 (lambda (file)
361 (string-to-int file)) 361 (string-to-number file))
362 (directory-files 362 (directory-files
363 nnmh-current-directory nil "^[0-9]+$")))) 363 nnmh-current-directory nil "^[0-9]+$"))))
364 (when articles 364 (when articles
@@ -486,7 +486,7 @@ as unread by Gnus.")
486 (let ((files (sort 486 (let ((files (sort
487 (mapcar 487 (mapcar
488 (lambda (f) 488 (lambda (f)
489 (string-to-int f)) 489 (string-to-number f))
490 (directory-files dir nil "^[0-9]+$")) 490 (directory-files dir nil "^[0-9]+$"))
491 '>))) 491 '>)))
492 (when files 492 (when files
@@ -509,7 +509,7 @@ as unread by Gnus.")
509 ;; articles in this folder. The articles that are "new" will be 509 ;; articles in this folder. The articles that are "new" will be
510 ;; marked as unread by Gnus. 510 ;; marked as unread by Gnus.
511 (let* ((dir nnmh-current-directory) 511 (let* ((dir nnmh-current-directory)
512 (files (sort (mapcar (function (lambda (name) (string-to-int name))) 512 (files (sort (mapcar (function (lambda (name) (string-to-number name)))
513 (directory-files nnmh-current-directory 513 (directory-files nnmh-current-directory
514 nil "^[0-9]+$" t)) 514 nil "^[0-9]+$" t))
515 '<)) 515 '<))
diff --git a/lisp/gnus/nnml.el b/lisp/gnus/nnml.el
index b82df8f979a..f330fa97a5a 100644
--- a/lisp/gnus/nnml.el
+++ b/lisp/gnus/nnml.el
@@ -212,7 +212,7 @@ marks file will be regenerated properly by Gnus.")
212 (nnheader-report 'nnml "Article %s retrieved" id) 212 (nnheader-report 'nnml "Article %s retrieved" id)
213 ;; We return the article number. 213 ;; We return the article number.
214 (cons (if group-num (car group-num) group) 214 (cons (if group-num (car group-num) group)
215 (string-to-int (file-name-nondirectory path))))))) 215 (string-to-number (file-name-nondirectory path)))))))
216 216
217(deffoo nnml-request-group (group &optional server dont-check) 217(deffoo nnml-request-group (group &optional server dont-check)
218 (let ((file-name-coding-system nnmail-pathname-coding-system)) 218 (let ((file-name-coding-system nnmail-pathname-coding-system))
@@ -426,7 +426,7 @@ marks file will be regenerated properly by Gnus.")
426 ;; we should insert it. (This situation should never 426 ;; we should insert it. (This situation should never
427 ;; occur, but one likes to make sure...) 427 ;; occur, but one likes to make sure...)
428 (while (and (looking-at "[0-9]+\t") 428 (while (and (looking-at "[0-9]+\t")
429 (< (string-to-int 429 (< (string-to-number
430 (buffer-substring 430 (buffer-substring
431 (match-beginning 0) (match-end 0))) 431 (match-beginning 0) (match-end 0)))
432 article) 432 article)
diff --git a/lisp/gnus/nnrss.el b/lisp/gnus/nnrss.el
index 42ab072f438..ee5d6560354 100644
--- a/lisp/gnus/nnrss.el
+++ b/lisp/gnus/nnrss.el
@@ -899,7 +899,7 @@ whether they are `offsite' or `onsite'."
899 (selection 899 (selection
900 (mapcar (lambda (listinfo) 900 (mapcar (lambda (listinfo)
901 (cons (cdr (assoc "sitename" listinfo)) 901 (cons (cdr (assoc "sitename" listinfo))
902 (string-to-int 902 (string-to-number
903 (cdr (assoc "feedid" listinfo))))) 903 (cdr (assoc "feedid" listinfo)))))
904 feedinfo))) 904 feedinfo)))
905 (cdr (assoc 905 (cdr (assoc
diff --git a/lisp/gnus/nnsoup.el b/lisp/gnus/nnsoup.el
index 9c69b1d3c63..836d97e1e42 100644
--- a/lisp/gnus/nnsoup.el
+++ b/lisp/gnus/nnsoup.el
@@ -752,9 +752,9 @@ backend for the messages.")
752 (let ((files (sort (directory-files nnsoup-directory t "IDX$") 752 (let ((files (sort (directory-files nnsoup-directory t "IDX$")
753 (lambda (f1 f2) 753 (lambda (f1 f2)
754 (< (progn (string-match "/\\([0-9]+\\)\\." f1) 754 (< (progn (string-match "/\\([0-9]+\\)\\." f1)
755 (string-to-int (match-string 1 f1))) 755 (string-to-number (match-string 1 f1)))
756 (progn (string-match "/\\([0-9]+\\)\\." f2) 756 (progn (string-match "/\\([0-9]+\\)\\." f2)
757 (string-to-int (match-string 1 f2))))))) 757 (string-to-number (match-string 1 f2)))))))
758 active group lines ident elem min) 758 active group lines ident elem min)
759 (set-buffer (get-buffer-create " *nnsoup work*")) 759 (set-buffer (get-buffer-create " *nnsoup work*"))
760 (while files 760 (while files
diff --git a/lisp/gnus/nnspool.el b/lisp/gnus/nnspool.el
index d54897a7750..6418c96d931 100644
--- a/lisp/gnus/nnspool.el
+++ b/lisp/gnus/nnspool.el
@@ -248,7 +248,7 @@ there.")
248 ;; Fix by Sudish Joseph <joseph@cis.ohio-state.edu> 248 ;; Fix by Sudish Joseph <joseph@cis.ohio-state.edu>
249 (when (setq dir (directory-files pathname nil "^[0-9]+$" t)) 249 (when (setq dir (directory-files pathname nil "^[0-9]+$" t))
250 (setq dir 250 (setq dir
251 (sort (mapcar (lambda (name) (string-to-int name)) dir) '<))) 251 (sort (mapcar (lambda (name) (string-to-number name)) dir) '<)))
252 (if dir 252 (if dir
253 (nnheader-insert 253 (nnheader-insert
254 "211 %d %d %d %s\n" (length dir) (car dir) 254 "211 %d %d %d %s\n" (length dir) (car dir)
@@ -440,7 +440,7 @@ there.")
440 (goto-char (point-min)) 440 (goto-char (point-min))
441 (prog1 441 (prog1
442 (when (looking-at "<[^>]+>[ \t]+[-0-9~]+[ \t]+\\([^ /\t\n]+\\)/\\([0-9]+\\)[ \t\n]") 442 (when (looking-at "<[^>]+>[ \t]+[-0-9~]+[ \t]+\\([^ /\t\n]+\\)/\\([0-9]+\\)[ \t\n]")
443 (cons (match-string 1) (string-to-int (match-string 2)))) 443 (cons (match-string 1) (string-to-number (match-string 2))))
444 (kill-buffer (current-buffer))))) 444 (kill-buffer (current-buffer)))))
445 445
446(defun nnspool-find-file (file) 446(defun nnspool-find-file (file)
diff --git a/lisp/gnus/nntp.el b/lisp/gnus/nntp.el
index ab85ad25931..1c964a5706c 100644
--- a/lisp/gnus/nntp.el
+++ b/lisp/gnus/nntp.el
@@ -1499,7 +1499,7 @@ password contained in '~/.nntp-authinfo'."
1499 (when (<= count 1) 1499 (when (<= count 1)
1500 (goto-char (point-min)) 1500 (goto-char (point-min))
1501 (when (re-search-forward "^[0-9][0-9][0-9] .*\n\\([0-9]+\\)" nil t) 1501 (when (re-search-forward "^[0-9][0-9][0-9] .*\n\\([0-9]+\\)" nil t)
1502 (let ((low-limit (string-to-int 1502 (let ((low-limit (string-to-number
1503 (buffer-substring (match-beginning 1) 1503 (buffer-substring (match-beginning 1)
1504 (match-end 1))))) 1504 (match-end 1)))))
1505 (while (and articles (<= (car articles) low-limit)) 1505 (while (and articles (<= (car articles) low-limit))
@@ -1571,7 +1571,7 @@ password contained in '~/.nntp-authinfo'."
1571 (goto-char (point-min)) 1571 (goto-char (point-min))
1572 ;; We first find the number by looking at the status line. 1572 ;; We first find the number by looking at the status line.
1573 (let ((number (and (looking-at "2[0-9][0-9] +\\([0-9]+\\) ") 1573 (let ((number (and (looking-at "2[0-9][0-9] +\\([0-9]+\\) ")
1574 (string-to-int 1574 (string-to-number
1575 (buffer-substring (match-beginning 1) 1575 (buffer-substring (match-beginning 1)
1576 (match-end 1))))) 1576 (match-end 1)))))
1577 newsgroups xref) 1577 newsgroups xref)
@@ -1609,7 +1609,7 @@ password contained in '~/.nntp-authinfo'."
1609 "\\([^ :]+\\):\\([0-9]+\\)") 1609 "\\([^ :]+\\):\\([0-9]+\\)")
1610 xref)) 1610 xref))
1611 (setq group (match-string 1 xref) 1611 (setq group (match-string 1 xref)
1612 number (string-to-int (match-string 2 xref)))) 1612 number (string-to-number (match-string 2 xref))))
1613 ((and (setq newsgroups 1613 ((and (setq newsgroups
1614 (mail-fetch-field "newsgroups")) 1614 (mail-fetch-field "newsgroups"))
1615 (not (string-match "," newsgroups))) 1615 (not (string-match "," newsgroups)))
diff --git a/lisp/gnus/pgg-gpg.el b/lisp/gnus/pgg-gpg.el
index 2b3e521c60f..463020838c9 100644
--- a/lisp/gnus/pgg-gpg.el
+++ b/lisp/gnus/pgg-gpg.el
@@ -252,7 +252,7 @@ If optional argument SIGN is non-nil, do a combined sign and encrypt."
252 (when (re-search-forward "^\\[GNUPG:] IMPORT_RES\\>" nil t) 252 (when (re-search-forward "^\\[GNUPG:] IMPORT_RES\\>" nil t)
253 (setq status (buffer-substring (match-end 0) 253 (setq status (buffer-substring (match-end 0)
254 (progn (end-of-line)(point))) 254 (progn (end-of-line)(point)))
255 status (vconcat (mapcar #'string-to-int (split-string status)))) 255 status (vconcat (mapcar #'string-to-number (split-string status))))
256 (erase-buffer) 256 (erase-buffer)
257 (insert (format "Imported %d key(s). 257 (insert (format "Imported %d key(s).
258\tArmor contains %d key(s) [%d bad, %d old].\n" 258\tArmor contains %d key(s) [%d bad, %d old].\n"
diff --git a/lisp/gnus/pgg-parse.el b/lisp/gnus/pgg-parse.el
index bf04ca914a8..7929b54010d 100644
--- a/lisp/gnus/pgg-parse.el
+++ b/lisp/gnus/pgg-parse.el
@@ -113,7 +113,7 @@
113 `(mapconcat (lambda (c) (format "%02X" (pgg-char-int c))) 113 `(mapconcat (lambda (c) (format "%02X" (pgg-char-int c)))
114 ,string "") 114 ,string "")
115 ;; `(upcase (apply #'format "%02x%02x%02x%02x%02x%02x%02x%02x" 115 ;; `(upcase (apply #'format "%02x%02x%02x%02x%02x%02x%02x%02x"
116 ;; (string-to-int-list ,string))) 116 ;; (string-to-number-list ,string)))
117 ) 117 )
118 118
119(defmacro pgg-parse-time-field (bytes) 119(defmacro pgg-parse-time-field (bytes)
@@ -136,7 +136,7 @@
136 136
137(defmacro pgg-read-bytes (nbytes) 137(defmacro pgg-read-bytes (nbytes)
138 `(mapcar #'pgg-char-int (pgg-read-bytes-string ,nbytes)) 138 `(mapcar #'pgg-char-int (pgg-read-bytes-string ,nbytes))
139 ;; `(string-to-int-list (pgg-read-bytes-string ,nbytes)) 139 ;; `(string-to-number-list (pgg-read-bytes-string ,nbytes))
140 ) 140 )
141 141
142(defmacro pgg-read-body-string (ptag) 142(defmacro pgg-read-body-string (ptag)
@@ -146,7 +146,7 @@
146 146
147(defmacro pgg-read-body (ptag) 147(defmacro pgg-read-body (ptag)
148 `(mapcar #'pgg-char-int (pgg-read-body-string ,ptag)) 148 `(mapcar #'pgg-char-int (pgg-read-body-string ,ptag))
149 ;; `(string-to-int-list (pgg-read-body-string ,ptag)) 149 ;; `(string-to-number-list (pgg-read-body-string ,ptag))
150 ) 150 )
151 151
152(defalias 'pgg-skip-bytes 'forward-char) 152(defalias 'pgg-skip-bytes 'forward-char)
diff --git a/lisp/gnus/pop3.el b/lisp/gnus/pop3.el
index b21b3dcd5ae..75efaf4e512 100644
--- a/lisp/gnus/pop3.el
+++ b/lisp/gnus/pop3.el
@@ -398,8 +398,8 @@ If NOW, use that time instead."
398 "Return the number of messages in the maildrop and the maildrop's size." 398 "Return the number of messages in the maildrop and the maildrop's size."
399 (pop3-send-command process "STAT") 399 (pop3-send-command process "STAT")
400 (let ((response (pop3-read-response process t))) 400 (let ((response (pop3-read-response process t)))
401 (list (string-to-int (nth 1 (split-string response " "))) 401 (list (string-to-number (nth 1 (split-string response " ")))
402 (string-to-int (nth 2 (split-string response " ")))) 402 (string-to-number (nth 2 (split-string response " "))))
403 )) 403 ))
404 404
405(defun pop3-list (process &optional msg) 405(defun pop3-list (process &optional msg)
@@ -449,7 +449,7 @@ This function currently does nothing.")
449 "Return highest accessed message-id number for the session." 449 "Return highest accessed message-id number for the session."
450 (pop3-send-command process "LAST") 450 (pop3-send-command process "LAST")
451 (let ((response (pop3-read-response process t))) 451 (let ((response (pop3-read-response process t)))
452 (string-to-int (nth 1 (split-string response " "))) 452 (string-to-number (nth 1 (split-string response " ")))
453 )) 453 ))
454 454
455(defun pop3-rset (process) 455(defun pop3-rset (process)
diff --git a/lisp/gnus/qp.el b/lisp/gnus/qp.el
index 1004abeb02b..07ed552ef46 100644
--- a/lisp/gnus/qp.el
+++ b/lisp/gnus/qp.el
@@ -69,9 +69,9 @@ them into characters should be done separately."
69 (cond ((eq (char-after (1+ (point))) ?\n) 69 (cond ((eq (char-after (1+ (point))) ?\n)
70 (delete-char 2)) 70 (delete-char 2))
71 ((looking-at "=[0-9A-F][0-9A-F]") 71 ((looking-at "=[0-9A-F][0-9A-F]")
72 (let ((byte (string-to-int (buffer-substring (1+ (point)) 72 (let ((byte (string-to-number (buffer-substring (1+ (point))
73 (+ 3 (point))) 73 (+ 3 (point)))
74 16))) 74 16)))
75 (mm-insert-byte byte 1) 75 (mm-insert-byte byte 1)
76 (delete-char 3))) 76 (delete-char 3)))
77 (t 77 (t
diff --git a/lisp/gnus/spam-report.el b/lisp/gnus/spam-report.el
index e988199755d..ded68aba4ed 100644
--- a/lisp/gnus/spam-report.el
+++ b/lisp/gnus/spam-report.el
@@ -183,14 +183,14 @@ symbol `ask', query before flushing the queue file."
183the external program specified in `mm-url-program' to connect to 183the external program specified in `mm-url-program' to connect to
184server." 184server."
185 (with-temp-buffer 185 (with-temp-buffer
186 (let ((url (concat "http://" host report))) 186 (let ((url (format "http://%s%s" host report)))
187 (mm-url-insert url t)))) 187 (mm-url-insert url t))))
188 188
189;;;###autoload 189;;;###autoload
190(defun spam-report-url-to-file (host report) 190(defun spam-report-url-to-file (host report)
191 "Collect spam report requests in `spam-report-requests-file'. 191 "Collect spam report requests in `spam-report-requests-file'.
192Customize `spam-report-url-ping-function' to use this function." 192Customize `spam-report-url-ping-function' to use this function."
193 (let ((url (concat "http://" host report)) 193 (let ((url (format "http://%s%s" host report))
194 (file spam-report-requests-file)) 194 (file spam-report-requests-file))
195 (gnus-make-directory (file-name-directory file)) 195 (gnus-make-directory (file-name-directory file))
196 (gnus-message 9 "Writing URL `%s' to file `%s'" url file) 196 (gnus-message 9 "Writing URL `%s' to file `%s'" url file)