non-nil.
(wl): Don't show demo if wl-demo is 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): Don't show demo if wl-demo is 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)
- (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)))
(set-buffer wl-folder-buffer-name)
(wl-folder-mode)
(sit-for 0)
;; delete message window if displayed.
(if (and wl-message-buffer (get-buffer-window wl-message-buffer))
(delete-window (get-buffer-window wl-message-buffer)))
- (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)
(list wl-folder-buffer-name
wl-plugged-buf-name)
"\\|")))
+ (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))
(elmo-init)
(let (demo-buf)
(unless wl-init
- (setq demo-buf (wl-demo)))
+ (if wl-demo (setq demo-buf (wl-demo))))
(wl-init)
(unless wl-init
(condition-case nil