riece-mini.el (riece-mini-display-message-function): Don't use cl macro.
authorbg66 <bg66>
Fri, 10 Sep 2004 13:19:07 +0000 (13:19 +0000)
committerbg66 <bg66>
Fri, 10 Sep 2004 13:19:07 +0000 (13:19 +0000)
(riece-mini-show-backlog): Follow the change above.

lisp/ChangeLog
lisp/riece-mini.el

index acef142..5d95a1b 100644 (file)
@@ -1,5 +1,9 @@
 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.
index c18609b..fb676a9 100644 (file)
     (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.
@@ -118,7 +120,7 @@ If twice (C-u C-u), then ask the channel."
     (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