comparison lisp/shell.el @ 62402:a7e02ef1e3d6

Replace `string-to-int' by `string-to-number'.
author Juanma Barranquero <lekktu@gmail.com>
date Mon, 16 May 2005 11:33:47 +0000
parents c157250db02c
children e5299a8016cb f042e7c0fe20
comparison
equal deleted inserted replaced
62401:4512c4db6912 62402:a7e02ef1e3d6
757 (shell-dirstack-message)))))) 757 (shell-dirstack-message))))))
758 758
759 ;; If STR is of the form +n, for n>0, return n. Otherwise, nil. 759 ;; If STR is of the form +n, for n>0, return n. Otherwise, nil.
760 (defun shell-extract-num (str) 760 (defun shell-extract-num (str)
761 (and (string-match "^\\+[1-9][0-9]*$" str) 761 (and (string-match "^\\+[1-9][0-9]*$" str)
762 (string-to-int str))) 762 (string-to-number str)))
763 763
764 764
765 (defun shell-dirtrack-mode () 765 (defun shell-dirtrack-mode ()
766 "Turn directory tracking on and off in a shell buffer." 766 "Turn directory tracking on and off in a shell buffer."
767 (interactive) 767 (interactive)