+2006-01-26 Yoichi NAKAYAMA <yoichi@alcoholic.local-net>
+
+ * wl-draft.el (wl-draft-save, wl-draft-buffer-change-number):
+ Avoid error when the buffer name is already used.
+
2006-01-23 Yoichi NAKAYAMA <yoichi@geiin.org>
* wl-vars.el (wl-message-buffer-prefetch-folder-type-list): Follow
(elmo-folder-check (wl-draft-get-folder))
(elmo-folder-commit (wl-draft-get-folder))
(setq wl-draft-buffer-message-number next-number)
- (rename-buffer (format "%s/%d" wl-draft-folder next-number))
+ (rename-buffer (format "%s/%d" wl-draft-folder next-number) t)
(setq buffer-file-name (buffer-name))
(set-buffer-modified-p nil)
(wl-draft-config-info-operation wl-draft-buffer-message-number 'save)
(defun wl-draft-buffer-change-number (old-number new-number)
(when (eq wl-draft-buffer-message-number old-number)
(setq wl-draft-buffer-message-number new-number)
- (rename-buffer (format "%s/%d" wl-draft-folder new-number))
+ (rename-buffer (format "%s/%d" wl-draft-folder new-number) t)
(setq buffer-file-name (buffer-name))
(set-buffer-modified-p nil)))