non-nil.
* wl-summary.el (wl-summary-exit): Renamed wl-folder-use-frame to
wl-summary-use-frame.
* wl-vars.el (wl-summary-use-frame): New user option.
(wl-folder-use-frame): Changed docstring.
* wl-folder.el (wl-folder): Make new frame if wl-folder-use-frame is
non-nil.
(wl-folder-select-buffer): Renamed wl-folder-use-frame to
wl-summary-use-frame.
2001-06-13 Yuuichi Teranishi <teranisi@gohome.org>
+ * wl.el (wl-exit): Delete current frame if wl-folder-use-frame is
+ non-nil.
+
+ * wl-summary.el (wl-summary-exit): Renamed wl-folder-use-frame to
+ wl-summary-use-frame.
+
+ * wl-vars.el (wl-summary-use-frame): New user option.
+ (wl-folder-use-frame): Changed docstring.
+
+ * wl-folder.el (wl-folder): Make new frame if wl-folder-use-frame is
+ non-nil.
+ (wl-folder-select-buffer): Renamed wl-folder-use-frame to
+ wl-summary-use-frame.
+
* wl-vars.el (wl-folder-use-frame): New user option.
* wl-summary.el (wl-summary-exit): Back to folder frame if
(if gbw
(progn (select-window gbw)
(setq exists t))
- (unless wl-folder-use-frame
+ (unless wl-summary-use-frame
(condition-case ()
(unwind-protect
(split-window-horizontally wl-folder-window-width)
(other-window 1))
(error nil))))
(set-buffer buffer)
- (if wl-folder-use-frame
+ (if wl-summary-use-frame
(switch-to-buffer-other-frame buffer)
(switch-to-buffer buffer))
exists))
(defun wl-folder (&optional arg)
(interactive "P")
- (let (initialize)
-;;; (delete-other-windows)
- (if (get-buffer wl-folder-buffer-name)
- (switch-to-buffer wl-folder-buffer-name)
- (switch-to-buffer (get-buffer-create wl-folder-buffer-name))
+ (let (initialize folder-buf)
+ (if (setq folder-buf (get-buffer wl-folder-buffer-name))
+ (if wl-folder-use-frame
+ (let (select-frame)
+ (save-selected-window
+ (dolist (frame (visible-frame-list))
+ (select-frame frame)
+ (if (get-buffer-window folder-buf)
+ (setq select-frame frame))))
+ (if select-frame
+ (select-frame select-frame)
+ (switch-to-buffer folder-buf)))
+ (switch-to-buffer folder-buf))
+ (if wl-folder-use-frame
+ (switch-to-buffer-other-frame
+ (get-buffer-create wl-folder-buffer-name))
+ (switch-to-buffer (get-buffer-create wl-folder-buffer-name)))
+ (switch-to-buffer (get-buffer wl-folder-buffer-name))
(wl-folder-mode)
(wl-folder-init)
(set-buffer wl-folder-buffer-name)
(if (setq message-buf (get-buffer wl-message-buf-name))
(if (setq message-win (get-buffer-window message-buf))
(delete-window message-win)))
- (if (and wl-folder-use-frame
+ (if (and wl-summary-use-frame
(> (length (visible-frame-list)) 1))
(delete-frame))
(if (setq folder-buf (get-buffer wl-folder-buffer-name))
- (if wl-folder-use-frame
+ (if wl-summary-use-frame
(let (select-frame)
(save-selected-window
(dolist (frame (visible-frame-list))
:group 'wl-pref)
(defcustom wl-folder-use-frame nil
- "*Use dedicated frame for each folder if non-nil."
+ "*Use dedicated frame for folder mode if non-nil."
+ :type 'boolean
+ :group 'wl-pref)
+
+(defcustom wl-summary-use-frame nil
+ "*Use dedicated frame for each folder summary if non-nil."
:type 'boolean
:group 'wl-pref)
(elmo-buffer-cache-clean-up)
(if (fboundp 'mmelmo-cleanup-entity-buffers)
(mmelmo-cleanup-entity-buffers))
+ (if (and wl-folder-use-frame
+ (> (length (visible-frame-list)) 1))
+ (delete-frame))
(setq wl-init nil)
(unless wl-on-nemacs
(remove-hook 'kill-emacs-hook 'wl-save-status))