* wl-xmas.el (wl-draft-key-setup): Ditto.
* wl-mule.el (wl-draft-key-setup): Ditto.
* wl-draft.el (wl-draft-reedit): Set buffer-file-name.
(wl-draft-reedit): Add `wl-draft-save' to `local-write-file-hooks'.
2002-01-25 Yuuichi Teranishi <teranisi@gohome.org>
+ * wl-e21.el (wl-draft-key-setup): Don't bind C-x C-s
+
+ * wl-xmas.el (wl-draft-key-setup): Ditto.
+
+ * wl-mule.el (wl-draft-key-setup): Ditto.
+
* 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-draft-reedit): Set buffer-file-name.
+ (wl-draft-reedit): Add `wl-draft-save' to `local-write-file-hooks'.
+
* wl.el (wl-exit): If wl-delete-startup-frame-function is non-nil,
call it.
(rename-buffer (concat wl-draft-folder "/" (buffer-name))))
(auto-save-mode -1)
(wl-draft-mode)
+ (setq buffer-file-name file-name)
(make-local-variable 'truncate-partial-width-windows)
(setq truncate-partial-width-windows nil)
(setq truncate-lines wl-draft-truncate-lines)
(goto-char (point-min))
(wl-draft-overload-functions)
(wl-draft-editor-mode)
+ (add-hook 'local-write-file-hooks 'wl-draft-save)
(wl-highlight-headers 'for-draft)
(run-hooks 'wl-draft-reedit-hook)
(goto-char (point-max))
(define-key wl-draft-mode-map "\C-c\C-j" 'wl-template-select)
(define-key wl-draft-mode-map "\C-c\C-p" 'wl-draft-preview-message)
(define-key wl-draft-mode-map "\C-c\C-a" 'wl-addrmgr)
- (define-key wl-draft-mode-map "\C-x\C-s" 'wl-draft-save)
+;; (define-key wl-draft-mode-map "\C-x\C-s" 'wl-draft-save)
(define-key wl-draft-mode-map "\C-xk" 'wl-draft-mimic-kill-buffer)
(define-key wl-draft-mode-map "\C-c\C-d" 'wl-draft-elide-region))
(define-key wl-draft-mode-map "\C-c\C-e" 'wl-draft-config-exec)
(define-key wl-draft-mode-map "\C-c\C-j" 'wl-template-select)
(define-key wl-draft-mode-map "\C-c\C-p" 'wl-draft-preview-message)
- (define-key wl-draft-mode-map "\C-x\C-s" 'wl-draft-save)
+;; (define-key wl-draft-mode-map "\C-x\C-s" 'wl-draft-save)
(define-key wl-draft-mode-map "\C-c\C-a" 'wl-addrmgr)
(define-key wl-draft-mode-map "\C-xk" 'wl-draft-mimic-kill-buffer)
(define-key wl-draft-mode-map "\C-c\C-d" 'wl-draft-elide-region))
(define-key wl-draft-mode-map "\C-c\C-e" 'wl-draft-config-exec)
(define-key wl-draft-mode-map "\C-c\C-j" 'wl-template-select)
(define-key wl-draft-mode-map "\C-c\C-p" 'wl-draft-preview-message)
- (define-key wl-draft-mode-map "\C-x\C-s" 'wl-draft-save)
+;; (define-key wl-draft-mode-map "\C-x\C-s" 'wl-draft-save)
(define-key wl-draft-mode-map "\C-c\C-a" 'wl-addrmgr)
(define-key wl-draft-mode-map "\C-xk" 'wl-draft-mimic-kill-buffer)
(define-key wl-draft-mode-map "\C-c\C-d" 'wl-draft-elide-region))