riece-command-toggle-others-buffer-mode.
* riece-commands.el (riece-command-toggle-others-buffer-mode): New
command.
* riece-layout.el (riece-configure-windows): Hide
riece-others-buffer if riece-others-buffer-mode is nil.
* riece-options.el (riece-saved-forms): Add
riece-others-buffer-mode and riece-channel-list-buffer-mode.
(riece-others-buffer-mode): New user option.
+2005-08-08 Daiki Ueno <ueno@unixuser.org>
+
+ * riece.el (riece-dialogue-mode-map): Bind
+ riece-command-toggle-others-buffer-mode.
+
+ * riece-commands.el (riece-command-toggle-others-buffer-mode): New
+ command.
+
+ * riece-layout.el (riece-configure-windows): Hide
+ riece-others-buffer if riece-others-buffer-mode is nil.
+
+ * riece-options.el (riece-saved-forms): Add
+ riece-others-buffer-mode and riece-channel-list-buffer-mode.
+ (riece-others-buffer-mode): New user option.
+
2005-08-06 Daiki Ueno <ueno@unixuser.org>
* riece-alias.el (riece-alias-alternate-separator): Set to "@".
riece-save-variables-are-dirty t)
(riece-command-configure-windows))
+(defun riece-command-toggle-others-buffer-mode ()
+ (interactive)
+ (setq riece-others-buffer-mode
+ (not riece-others-buffer-mode)
+ riece-save-variables-are-dirty t)
+ (riece-command-configure-windows))
+
(defun riece-command-toggle-user-list-buffer-mode ()
(interactive)
(setq riece-user-list-buffer-mode
(set-window-buffer (selected-window)
riece-command-buffer)
(select-window rest-window)
- (set-window-buffer (split-window rest-window)
- riece-others-buffer)
+ (if riece-others-buffer-mode
+ (set-window-buffer (split-window rest-window)
+ riece-others-buffer))
(set-window-buffer (selected-window)
riece-channel-buffer))
- (if (eq vpos 'middle)
+ (if (and (eq vpos 'middle)
+ riece-others-buffer-mode)
(let ((rest-window (split-window)))
(set-window-buffer (selected-window)
riece-channel-buffer)
(set-window-buffer rest-window
riece-command-buffer))
(let ((rest-window (split-window nil (- (window-height) 4))))
- (set-window-buffer (selected-window)
- riece-others-buffer)
- (set-window-buffer (split-window)
- riece-channel-buffer)
+ (if riece-others-buffer-mode
+ (progn
+ (set-window-buffer (selected-window)
+ riece-others-buffer)
+ (set-window-buffer (split-window)
+ riece-channel-buffer))
+ (set-window-buffer (selected-window)
+ riece-channel-buffer))
(set-window-buffer rest-window
riece-command-buffer)))))
(if (eq vpos 'bottom)
(defcustom riece-saved-forms
'(riece-server-alist
riece-channel-buffer-mode
+ riece-others-buffer-mode
riece-user-list-buffer-mode
+ riece-channel-list-buffer-mode
riece-layout)
"Variables saved after each session is completed."
:type 'string
:type 'boolean
:group 'riece-looks)
+(defcustom riece-others-buffer-mode t
+ "When non-nil, Riece will display an \"*Others*\" buffer."
+ :type 'boolean
+ :group 'riece-looks)
+
(defcustom riece-user-list-buffer-mode t
"When non-nil, Riece will display a nick list buffer."
:type 'boolean
"f" riece-command-finger
"\C-tf" riece-command-toggle-freeze
"\C-to" riece-command-toggle-own-freeze
+ "\C-tO" riece-command-toggle-others-buffer-mode
"\C-tu" riece-command-toggle-user-list-buffer-mode
"\C-tc" riece-command-toggle-channel-buffer-mode
"\C-tC" riece-command-toggle-channel-list-buffer-mode