2004-09-10 OHASHI Akira <bg66@koka-in.org>
+ * riece-mini.el (riece-mini-display-message-function): Don't use cl
+ macro.
+ (riece-mini-show-backlog): Follow the change above.
+
* riece-mini.el (riece-mini): New group.
(riece-mini-backlog-size): New user option.
(riece-mini-backlog-history): New internal variable.
(let ((string (concat (format-time-string "%H:%M") " "
(riece-format-message message t))))
(riece-mini-message-no-log "%s" string)
- (when (>= (length riece-mini-backlog-history)
+ (while (>= (length riece-mini-backlog-history)
riece-mini-backlog-size)
- (pop riece-mini-backlog-history))
- (push string riece-mini-backlog-history))))
+ (setq riece-mini-backlog-history
+ (cdr riece-mini-backlog-history)))
+ (setq riece-mini-backlog-history
+ (reverse (cons string (reverse riece-mini-backlog-history)))))))
(defun riece-mini-send-message (arg)
"Send message using minibuffer.
(when riece-mini-backlog-history
(setq riece-mini-backlog-shown t)
(riece-mini-message-no-log
- (mapconcat 'identity (reverse riece-mini-backlog-history) "")))))
+ (mapconcat 'identity riece-mini-backlog-history "")))))
(defun riece-mini-pre-command ()
(when riece-mini-backlog-shown