instead of `save-excursion' (for suppress compile warnings).
* elmo-pop3.el (elmo-pop3-retrieve-headers): Ditto.
* elmo-nntp.el (elmo-nntp-list-folders-get-cache): Ditto.
(elmo-nntp-post): Ditto.
+2010-01-01 TAKAHASHI Kaoru <kaoru@kaisei.org>
+
+ * elmo-util.el (elmo-set-work-buf): Use `with-current-buffer'
+ instead of `save-excursion' (for suppress compile warnings).
+ * elmo-pop3.el (elmo-pop3-retrieve-headers): Ditto.
+ * elmo-nntp.el (elmo-nntp-list-folders-get-cache): Ditto.
+ (elmo-nntp-post): Ditto.
+
2009-08-01 TAKAHASHI Kaoru <kaoru@kaisei.org>
* utf7.el (utf7-get-u16char-converter): Revert BOM workaround for
(let* ((cache-time (car elmo-nntp-list-folders-cache)))
(unless (elmo-time-expire cache-time
elmo-nntp-list-folders-use-cache)
- (save-excursion
- (set-buffer buf)
+ (with-current-buffer buf
(erase-buffer)
(insert (nth 3 elmo-nntp-list-folders-cache))
(goto-char (point-min))
(elmo-get-network-stream-type
elmo-nntp-default-stream-type))))
response has-message-id)
- (save-excursion
- (set-buffer content-buf)
+ (with-current-buffer content-buf
(goto-char (point-min))
(if (search-forward mail-header-separator nil t)
(delete-region (match-beginning 0)(match-end 0)))
nil)))
(defun elmo-pop3-retrieve-headers (process tobuffer articles)
- (save-excursion
- (set-buffer (process-buffer process))
+ (with-current-buffer (process-buffer process)
(erase-buffer)
(let ((count 0)
(received 0)
(defmacro elmo-set-work-buf (&rest body)
"Execute BODY on work buffer. Work buffer remains."
- `(save-excursion
- (set-buffer (get-buffer-create elmo-work-buf-name))
+ `(with-current-buffer (get-buffer-create elmo-work-buf-name)
(set-buffer-multibyte default-enable-multibyte-characters)
(erase-buffer)
,@body))