aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/textmodes
diff options
context:
space:
mode:
authorJuanma Barranquero2005-05-16 11:34:49 +0000
committerJuanma Barranquero2005-05-16 11:34:49 +0000
commit027a4b6b3fd229f8aea323f59cb246d99deb8a75 (patch)
treec92da7d3049376d7bd687db6bc5c8dce82ed9335 /lisp/textmodes
parent216d380630ec8be9569a56687f0e08b89ee97c47 (diff)
downloademacs-027a4b6b3fd229f8aea323f59cb246d99deb8a75.tar.gz
emacs-027a4b6b3fd229f8aea323f59cb246d99deb8a75.zip
Replace `string-to-int' by `string-to-number'.
Diffstat (limited to 'lisp/textmodes')
-rw-r--r--lisp/textmodes/ispell.el4
-rw-r--r--lisp/textmodes/nroff-mode.el2
-rw-r--r--lisp/textmodes/reftex-cite.el10
-rw-r--r--lisp/textmodes/reftex-parse.el4
-rw-r--r--lisp/textmodes/texinfmt.el2
5 files changed, 11 insertions, 11 deletions
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el
index c8926776400..1de27265b08 100644
--- a/lisp/textmodes/ispell.el
+++ b/lisp/textmodes/ispell.el
@@ -2296,9 +2296,9 @@ Optional third arg SHIFT is an offset to apply based on previous corrections."
2296 (setq output (substring output (match-end 0))) ; skip over misspelling 2296 (setq output (substring output (match-end 0))) ; skip over misspelling
2297 (if (eq type ?#) 2297 (if (eq type ?#)
2298 (setq count 0) ; no misses for type # 2298 (setq count 0) ; no misses for type #
2299 (setq count (string-to-int output) ; get number of misses. 2299 (setq count (string-to-number output) ; get number of misses.
2300 output (substring output (1+ (string-match " " output 1))))) 2300 output (substring output (1+ (string-match " " output 1)))))
2301 (setq offset (string-to-int output)) 2301 (setq offset (string-to-number output))
2302 (if (eq type ?#) ; No miss or guess list. 2302 (if (eq type ?#) ; No miss or guess list.
2303 (setq output nil) 2303 (setq output nil)
2304 (setq output (substring output (1+ (string-match " " output 1))))) 2304 (setq output (substring output (1+ (string-match " " output 1)))))
diff --git a/lisp/textmodes/nroff-mode.el b/lisp/textmodes/nroff-mode.el
index c0638804ffa..9c5addb85fa 100644
--- a/lisp/textmodes/nroff-mode.el
+++ b/lisp/textmodes/nroff-mode.el
@@ -134,7 +134,7 @@ closing requests for requests that are used in matched pairs."
134 (save-excursion 134 (save-excursion
135 (looking-at outline-regexp) 135 (looking-at outline-regexp)
136 (skip-chars-forward ".H ") 136 (skip-chars-forward ".H ")
137 (string-to-int (buffer-substring (point) (+ 1 (point)))))) 137 (string-to-number (buffer-substring (point) (+ 1 (point))))))
138 138
139;;; Compute how much to indent a comment in nroff/troff source. 139;;; Compute how much to indent a comment in nroff/troff source.
140;;; By mit-erl!gildea April 86 140;;; By mit-erl!gildea April 86
diff --git a/lisp/textmodes/reftex-cite.el b/lisp/textmodes/reftex-cite.el
index f12d01716fe..3f61e9c94ec 100644
--- a/lisp/textmodes/reftex-cite.el
+++ b/lisp/textmodes/reftex-cite.el
@@ -312,12 +312,12 @@
312 (not (stringp (car al1)))))) 312 (not (stringp (car al1))))))
313 313
314(defun reftex-bib-sort-year (e1 e2) 314(defun reftex-bib-sort-year (e1 e2)
315 (< (string-to-int (or (cdr (assoc "year" e1)) "0")) 315 (< (string-to-number (or (cdr (assoc "year" e1)) "0"))
316 (string-to-int (or (cdr (assoc "year" e2)) "0")))) 316 (string-to-number (or (cdr (assoc "year" e2)) "0"))))
317 317
318(defun reftex-bib-sort-year-reverse (e1 e2) 318(defun reftex-bib-sort-year-reverse (e1 e2)
319 (> (string-to-int (or (cdr (assoc "year" e1)) "0")) 319 (> (string-to-number (or (cdr (assoc "year" e1)) "0"))
320 (string-to-int (or (cdr (assoc "year" e2)) "0")))) 320 (string-to-number (or (cdr (assoc "year" e2)) "0"))))
321 321
322(defun reftex-get-crossref-alist (entry) 322(defun reftex-get-crossref-alist (entry)
323 ;; return the alist from a crossref entry 323 ;; return the alist from a crossref entry
@@ -988,7 +988,7 @@ While entering the regexp, completion on knows citation keys is possible.
988 (while (string-match 988 (while (string-match
989 "\\(\\`\\|[^%]\\)\\(\\(%\\([0-9]*\\)\\([a-zA-Z]\\)\\)[.,;: ]*\\)" 989 "\\(\\`\\|[^%]\\)\\(\\(%\\([0-9]*\\)\\([a-zA-Z]\\)\\)[.,;: ]*\\)"
990 format) 990 format)
991 (let ((n (string-to-int (match-string 4 format))) 991 (let ((n (string-to-number (match-string 4 format)))
992 (l (string-to-char (match-string 5 format))) 992 (l (string-to-char (match-string 5 format)))
993 rpl b e) 993 rpl b e)
994 (save-match-data 994 (save-match-data
diff --git a/lisp/textmodes/reftex-parse.el b/lisp/textmodes/reftex-parse.el
index ce1e3d77d72..3f1ff00494f 100644
--- a/lisp/textmodes/reftex-parse.el
+++ b/lisp/textmodes/reftex-parse.el
@@ -999,7 +999,7 @@ of master file."
999 (if (string-match "\\`[A-Z]\\'" number-string) 999 (if (string-match "\\`[A-Z]\\'" number-string)
1000 (aset reftex-section-numbers i 1000 (aset reftex-section-numbers i
1001 (- (string-to-char number-string) ?A -1)) 1001 (- (string-to-char number-string) ?A -1))
1002 (aset reftex-section-numbers i (string-to-int number-string))) 1002 (aset reftex-section-numbers i (string-to-number number-string)))
1003 (pop numbers)) 1003 (pop numbers))
1004 (decf i))) 1004 (decf i)))
1005 (put 'reftex-section-numbers 'appendix appendix)) 1005 (put 'reftex-section-numbers 'appendix appendix))
@@ -1045,7 +1045,7 @@ of master file."
1045 (setq string 1045 (setq string
1046 (concat 1046 (concat
1047 (char-to-string 1047 (char-to-string
1048 (1- (+ ?A (string-to-int (match-string 0 string))))) 1048 (1- (+ ?A (string-to-number (match-string 0 string)))))
1049 (substring string (match-end 0)))))) 1049 (substring string (match-end 0))))))
1050 (if star 1050 (if star
1051 (concat (make-string (1- (length string)) ?\ ) "*") 1051 (concat (make-string (1- (length string)) ?\ ) "*")
diff --git a/lisp/textmodes/texinfmt.el b/lisp/textmodes/texinfmt.el
index e478169c250..ad029266f3b 100644
--- a/lisp/textmodes/texinfmt.el
+++ b/lisp/textmodes/texinfmt.el
@@ -2807,7 +2807,7 @@ Default is to leave the number of spaces as is."
2807 (let ((arg (texinfo-parse-arg-discard))) 2807 (let ((arg (texinfo-parse-arg-discard)))
2808 (if (string= "asis" arg) 2808 (if (string= "asis" arg)
2809 (setq texinfo-paragraph-indent "asis") 2809 (setq texinfo-paragraph-indent "asis")
2810 (setq texinfo-paragraph-indent (string-to-int arg))))) 2810 (setq texinfo-paragraph-indent (string-to-number arg)))))
2811 2811
2812(put 'refill 'texinfo-format 'texinfo-format-refill) 2812(put 'refill 'texinfo-format 'texinfo-format-refill)
2813(defun texinfo-format-refill () 2813(defun texinfo-format-refill ()