(wl-summary-exit): Follow the change above.
(wl-summary-goto-folder-subr): Ditto.
* wl-folder.el (wl-folder-create-subr): Don't use
`elmo-folder-creatable-p'.
* elmo-shimbun.el (elmo-folder-creatable-p): Define.
+2001-12-13 Yuuichi Teranishi <teranisi@gohome.org>
+
+ * elmo-shimbun.el (elmo-folder-creatable-p): Define.
+
2001-12-12 Yuuichi Teranishi <teranisi@gohome.org>
* elmo-localdir.el (elmo-folder-message-make-temp-files): Use
number)
elmo-shimbun-use-cache)
+(luna-define-method elmo-folder-creatable-p ((folder elmo-shimbun-folder))
+ nil)
+
(luna-define-method elmo-folder-close-internal :after ((folder
elmo-shimbun-folder))
(shimbun-close-group
+2001-12-13 Yuuichi Teranishi <teranisi@gohome.org>
+
+ * wl-summary.el (wl-summary-save-view): Removed unused argument.
+ (wl-summary-exit): Follow the change above.
+ (wl-summary-goto-folder-subr): Ditto.
+
+ * wl-folder.el (wl-folder-create-subr): Don't use
+ `elmo-folder-creatable-p'.
+
2001-12-12 Yuuichi Teranishi <teranisi@gohome.org>
* wl-demo.el (wl-demo-icon-name): Use X'mas logo on Dec 25 too.
(kill-buffer bufname))))
(defun wl-folder-create-subr (folder)
- (if (not (elmo-folder-creatable-p folder))
- (error "Folder %s is not found" (elmo-folder-name-internal folder))
- (if (y-or-n-p
- (format "Folder %s does not exist, create it?"
- (elmo-folder-name-internal folder)))
- (progn
- (setq wl-folder-entity-hashtb
- (wl-folder-create-entity-hashtb
- (elmo-folder-name-internal folder)
- wl-folder-entity-hashtb))
- (unless (elmo-folder-create folder)
- (error "Create folder failed")))
- (error "Folder %s is not created" (elmo-folder-name-internal folder)))))
+ (if (y-or-n-p (format "Folder %s does not exist, create it?"
+ (elmo-folder-name-internal folder)))
+ (progn
+ (message "")
+ (setq wl-folder-entity-hashtb
+ (wl-folder-create-entity-hashtb
+ (elmo-folder-name-internal folder)
+ wl-folder-entity-hashtb))
+ (unless (elmo-folder-create folder)
+ (error "Create folder failed")))
+ (error "Folder %s is not created" (elmo-folder-name-internal folder))))
(defun wl-folder-confirm-existence (folder &optional force)
(if force
;; a subroutine for wl-summary-exit/wl-save-status
;; Note that folder is not commited here.
-(defun wl-summary-save-view (&optional sticky)
+(defun wl-summary-save-view ()
;; already in summary buffer.
(when wl-summary-buffer-persistent
;; save the current summary buffer view.
(unwind-protect
;; save summary status
(progn
- (if (or force-exit
- (not sticky))
+ (if (or force-exit (not sticky))
(elmo-folder-close wl-summary-buffer-elmo-folder)
(elmo-folder-commit wl-summary-buffer-elmo-folder)
(elmo-folder-check wl-summary-buffer-elmo-folder))
- (wl-summary-save-view sticky)
+ (wl-summary-save-view)
(if wl-use-scoring (wl-score-save)))
;; for sticky summary
(wl-delete-all-overlays)
(setq name wl-default-folder))
(setq folder (wl-folder-get-elmo-folder name))
(when (and (not (string=
- (and cur-fld
- (elmo-folder-name-internal cur-fld))
+ (and cur-fld (elmo-folder-name-internal cur-fld))
(elmo-folder-name-internal folder))) ; folder is moved.
(eq major-mode 'wl-summary-mode)) ; called in summary.
(setq wl-summary-last-visited-folder (wl-summary-buffer-folder-name))
(run-hooks 'wl-summary-exit-pre-hook)
(wl-summary-cleanup-temp-marks (wl-summary-sticky-p))
- (wl-summary-save-view 'keep) ; keep current buffer, anyway.
+ (wl-summary-save-view)
(elmo-folder-commit wl-summary-buffer-elmo-folder))
(setq buf (wl-summary-get-buffer-create (elmo-folder-name-internal folder)
sticky))