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.
-
- * riece-globals.el (riece-channel-history): New variable.
- (riece-last-channel): Abolish.
-
- * riece-display.el: Autoload ring-insert.
- (riece-switch-to-channel): Update riece-channel-history.
- (riece-switch-to-nearest-channel): Ditto.
+ * riece-options.el (riece-connection-timeout): Abolish.
* riece-server.el (riece-clear-system): Abolish.
* riece.el (riece-exit): Merge riece-clear-system.
- (riece): Initialize riece-channel-history.
2003-08-26 Daiki Ueno <ueno@unixuser.org>
(require 'riece-misc)
(require 'riece-layout)
-(autoload 'ring-insert "ring")
-
(defvar riece-update-buffer-functions
'(riece-update-user-list-buffer
riece-update-channel-list-buffer
(current-buffer)))
(defun riece-switch-to-channel (identity)
- (ring-insert riece-channel-history riece-current-channel)
- (setq riece-current-channel identity)
+ (setq riece-last-channel riece-current-channel
+ riece-current-channel identity)
(run-hooks 'riece-channel-switch-hook))
(defun riece-join-channel (identity)
(setq identity (car pointer)))
(if identity
(riece-switch-to-channel identity)
- (ring-insert riece-channel-history riece-current-channel)
- (setq riece-current-channel nil))))
+ (setq riece-last-channel riece-current-channel
+ riece-current-channel nil))))
(defun riece-part-channel (identity)
(let ((pointer (riece-identity-member identity riece-current-channels)))
(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 (or (ring-empty-p riece-channel-history)
- (equal (ring-ref riece-channel-history 0)
- riece-current-channel))
+ (unless (equal riece-last-channel riece-current-channel)
(let ((buffers riece-buffer-list))
(catch 'found
(while buffers
:type 'function
:group 'riece-options)
-(defcustom riece-channel-history-length 3
- "Length of riece-channel-history."
- :type 'integer
- :group 'riece-options)
-
(provide 'riece-options)
;;; riece-options.el ends here
(require 'riece-compat)
(require 'riece-commands)
-(autoload 'make-ring "ring")
-
(defvar riece-channel-list-mode-map (make-sparse-keymap))
(defvar riece-user-list-mode-map (make-sparse-keymap))
(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)