calling riece-redisplay-buffers.
* riece-layout.el: Autoload ring-empty-p and ring-ref.
(riece-reconfigure-windows-predicate): Check riece-channel-history.
2003-08-27 Daiki Ueno <ueno@unixuser.org>
+ * riece.el (riece): Initialize riece-channel-history before
+ calling riece-redisplay-buffers.
+
+ * riece-layout.el: Autoload ring-empty-p and ring-ref.
+ (riece-reconfigure-windows-predicate): Check riece-channel-history.
+
+2003-08-27 Daiki Ueno <ueno@unixuser.org>
+
* riece-options.el (riece-channel-history-length): New user option.
(riece-connection-timeout): Abolish.
(require 'riece-globals)
(require 'riece-misc)
+(autoload 'ring-empty-p "ring")
+(autoload 'ring-ref "ring")
+
(defgroup riece-layout nil
"Manage window layouts"
:prefix "riece-"
"Return t, if window reconfiguration is needed.
This function is used by \"default\" layout."
;; The current channel is changed, and some buffers are visible.
- (unless (equal riece-last-channel riece-current-channel)
+ (unless (or (ring-empty-p riece-channel-history)
+ (equal (ring-ref riece-channel-history 0)
+ riece-current-channel))
(let ((buffers riece-buffer-list))
(catch 'found
(while buffers
(setq riece-server (riece-server-name-to-server riece-server)))
(riece-create-buffers)
(switch-to-buffer riece-command-buffer)
+ (setq riece-channel-history (make-ring riece-channel-history-length))
(riece-redisplay-buffers)
(riece-open-server riece-server "")
(run-hooks 'riece-startup-hook)
- (setq riece-channel-history (make-ring riece-channel-history-length))
(message "%s" (substitute-command-keys "Type \\[describe-mode] for help")))
(defun riece-exit ()