2002-01-25 Yuuichi Teranishi <teranisi@gohome.org>
+ * wl-draft.el (wl-draft-create-buffer): Don't clear buffer-file-name.
+ (wl-draft-reedit): Ditto.
+ (wl-draft-prepare-edit): Add `wl-draft-save' to
+ `local-write-file-hooks'.
+ (wl-draft-prepare-edit): Call clear-visited-file-modtime.
+
* wl.el (wl-exit): If wl-delete-startup-frame-function is non-nil,
call it.
(wl-delete-startup-frame-function): New variable.
(make-local-variable 'truncate-partial-width-windows)
(setq truncate-partial-width-windows nil)
(setq truncate-lines wl-draft-truncate-lines)
- ;; Don't care about supersession.
- (setq buffer-file-name nil)
(setq wl-sent-message-via nil)
(setq wl-sent-message-queued nil)
(setq wl-draft-buffer-file-name file-name)
(error "wl-draft-create-header must be use in wl-draft-mode."))
(let (change-major-mode-hook)
(wl-draft-editor-mode)
+ (add-hook 'local-write-file-hooks 'wl-draft-save)
(wl-draft-overload-functions)
(wl-highlight-headers 'for-draft)
- (wl-draft-save)))
+ (wl-draft-save)
+ (clear-visited-file-modtime)))
(defun wl-draft-decode-header ()
(save-excursion
(rename-buffer (concat wl-draft-folder "/" (buffer-name))))
(auto-save-mode -1)
(wl-draft-mode)
- ;; Don't care about supersession.
(make-local-variable 'truncate-partial-width-windows)
(setq truncate-partial-width-windows nil)
(setq truncate-lines wl-draft-truncate-lines)
- (setq buffer-file-name nil)
(setq wl-sent-message-via nil)
(setq wl-sent-message-queued nil)
(setq wl-draft-buffer-file-name file-name)