[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: rcirc bug

From: Alfred M. Szmidt
Subject: Re: rcirc bug
Date: Tue, 5 Sep 2006 23:37:20 +0200 (CEST)

   > rcirc tries to use member* without (require 'cl), which causes
   > breakage.

   The following patch fixes this:

I don't think it will fix the problem in full; pushnew is also a 'cl
macro.  Maybe just changing pushnew to add-to-list would work?  I
don't know if there are more 'cl-isms in rcirc...

(defun rcirc-record-activity (buffer &optional type)
  "Record BUFFER activity with TYPE."
  (with-current-buffer buffer
    (when (not (get-buffer-window (current-buffer) t))
      (setq rcirc-activity
            (sort (add-to-list 'rcirc-activity (current-buffer))
                  (lambda (b1 b2)
                    (let ((t1 (with-current-buffer b1 rcirc-last-post-time))
                          (t2 (with-current-buffer b2 rcirc-last-post-time)))
                      (time-less-p t2 t1)))))
      (pushnew type rcirc-activity-types)
  (run-hook-with-args 'rcirc-activity-hooks buffer))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]