+2008-02-18 TAKAHASHI Kaoru <kaoru@kaisei.org>
+
+ * wl.el (wl-plugged-toggle): Use `string-to-number' instead of
+ `string-to-int'.
+
+ * wl-util.el (wl-unique-id): Use `string-to-number' instead of
+ `string-to-int'.
+
+ * wl-thread.el (wl-thread-jump-to-msg, wl-thread-set-parent): Use
+ `string-to-number' instead of `string-to-int'.
+
+ * wl-summary.el (wl-summary-get-list-info)
+ (wl-summary-message-number): Use `string-to-number' instead of
+ `string-to-int'.
+
+ * wl-score.el (wl-score-overview-entity-get-lines)
+ (wl-score-set-mark-below, wl-score-set-expunge-below)
+ (wl-summary-increase-score, wl-score-get-header-entry): Use
+ `string-to-number' instead of `string-to-int'.
+
+ * wl-folder.el (wl-folder-update-diff-line): Use
+ `string-to-number' instead of `string-to-int'.
+
+ * wl-expire.el (wl-expire-archive-number2): Use `string-to-number'
+ instead of `string-to-int'.
+
+ * wl-draft.el (wl-jump-to-draft-folder): Use `string-to-number'
+ instead of `string-to-int'.
+
+ * wl-dnd.el (wl-dnd-drop-func): Use `string-to-number' instead of
+ `string-to-int'.
+
2008-02-17 TAKAHASHI Kaoru <kaoru@kaisei.org>
* wl-util.el (wl-match-string, wl-match-buffer)
(split-string (nth 2 (car (cdr object)))
" ")))
(src-fld (nth 0 src-spec))
- (number (string-to-int (nth 1 src-spec)))
+ (number (string-to-number (nth 1 src-spec)))
target)
(setq target
(wl-folder-get-folder-name-by-id (get-text-property
(message "No draft message exist.")
(if (string-match (concat "^" wl-draft-folder "/") mybuf)
(setq msg (cadr (memq
- (string-to-int (substring mybuf (match-end 0)))
+ (string-to-number (substring mybuf (match-end 0)))
msgs))))
(or msg (setq msg (car msgs)))
(if (setq buf (get-buffer (format "%s/%d" wl-draft-folder msg)))
(setq dels (nth 1 tmp)))
(wl-append deleted-list (car (wl-expire-delete folder dels))))
(setq delete-list (car tmp)
- filenum (string-to-int (nth 3 tmp))
+ filenum (string-to-number (nth 3 tmp))
len (nth 4 tmp)
arc-len len)
(catch 'done
(setq is-group (get-text-property (point) 'wl-folder-is-group))
(when (looking-at "^[ ]*\\(.*\\):\\([0-9\\*-]*\\)/\\([0-9\\*-]*\\)/\\([0-9\\*]*\\)")
;;(looking-at "^[ ]*\\([^\\[].+\\):\\([0-9\\*-]*/[0-9\\*-]*/[0-9\\*]*\\)")
- (setq cur-new (string-to-int
+ (setq cur-new (string-to-number
(wl-match-buffer 2)))
- (setq cur-unread (string-to-int
+ (setq cur-unread (string-to-number
(wl-match-buffer 3)))
- (setq cur-all (string-to-int
+ (setq cur-all (string-to-number
(wl-match-buffer 4)))
(delete-region (match-beginning 2)
(match-end 4))
(defun wl-score-overview-entity-get-lines (entity)
(let ((lines (elmo-message-entity-field entity 'lines)))
(and lines
- (string-to-int lines))))
+ (string-to-number lines))))
(defun wl-score-overview-entity-get-xref (entity)
(or (elmo-message-entity-field entity 'xref)
"Automatically mark messages with score below SCORE as read."
(interactive
(list (or (and current-prefix-arg (prefix-numeric-value current-prefix-arg))
- (string-to-int (read-string "Mark below: ")))))
+ (string-to-number (read-string "Mark below: ")))))
(setq score (or score wl-summary-default-score 0))
(wl-score-set 'mark (list score))
(wl-score-set 'touched '(t))
"Automatically expunge messages with score below SCORE."
(interactive
(list (or (and current-prefix-arg (prefix-numeric-value current-prefix-arg))
- (string-to-int (read-string "Expunge below: ")))))
+ (string-to-number (read-string "Expunge below: ")))))
(setq score (or score wl-summary-default-score 0))
(wl-score-set 'expunge (list score))
(wl-score-set 'touched '(t)))
;; transform from string to int.
(when (eq (nth 1 (assoc (car entry) wl-score-header-index))
'wl-score-integer)
- (setq match (string-to-int match)))
+ (setq match (string-to-number match)))
;; set score
(if score
(setq lscore rscore)
;; read the score.
(unless (or score increase)
- (setq score (string-to-int (read-string "Set score: ")))))
+ (setq score (string-to-number (read-string "Set score: ")))))
(message "")
(wl-score-kill-help-buffer))
(count (elmo-find-list-match-value
elmo-mailing-list-count-spec-list
getter)))
- (cons name (and count (string-to-int count)))))))
+ (cons name (and count (string-to-number count)))))))
(defun wl-summary-overview-entity-compare-by-list-info (x y)
"Compare entity X and Y by mailing-list info."
(beginning-of-line)
(if (or (re-search-forward "\r\\(-?[0-9]+\\)" (point-at-eol) t)
(re-search-forward "^ *\\(-?[0-9]+\\)" (point-at-eol) t))
- (string-to-int (wl-match-buffer 1))
+ (string-to-number (wl-match-buffer 1))
nil)))
(defun wl-summary-delete-all-msgs ()
"Jump to the message with specified number in the current summary."
(interactive)
(let ((num (or number
- (string-to-int
+ (string-to-number
(read-from-minibuffer "Jump to Message(No.): ")))))
(wl-thread-entity-force-open (wl-thread-get-entity num))
(wl-summary-jump-to-msg num)))
(if (string= dst-parent "")
(setq dst-parent nil)
(if (interactive-p)
- (setq dst-parent (string-to-int dst-parent))
+ (setq dst-parent (string-to-number dst-parent))
(setq dst-parent parent-number)))
(if (and dst-parent
(memq dst-parent (wl-thread-get-children-msgs number)))
("Jul" . "07") ("Aug" . "08")
("Sep" . "09") ("Oct" . "10")
("Nov" . "11") ("Dec" . "12"))))))
- (list (string-to-int (concat (nth 6 cts) m
- (substring (nth 2 cts) 0 1)))
- (string-to-int (concat (substring (nth 2 cts) 1)
- (nth 4 cts) (nth 5 cts)
- (nth 6 cts))))))))
+ (list (string-to-number (concat (nth 6 cts) m
+ (substring (nth 2 cts) 0 1)))
+ (string-to-number (concat (substring (nth 2 cts) 1)
+ (nth 4 cts) (nth 5 cts)
+ (nth 6 cts))))))))
(concat
(if (memq system-type '(ms-dos emx vax-vms))
(let ((user (downcase (user-login-name))))
((eq indent wl-plugged-port-indent) ;; toggle port plug
(cond
((string-match "\\([^([]*\\)(\\([^)[]+\\))" name)
- (setq port (string-to-int (elmo-match-string 2 name)))
+ (setq port (string-to-number (elmo-match-string 2 name)))
(if (string-match "!" (setq name-1 (elmo-match-string 1 name)))
(setq stream-type
(intern (substring name-1 (match-end 0))))))