unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Ryan Yeske <rcyeske@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: rcirc bug
Date: Thu, 07 Sep 2006 16:19:42 -0700	[thread overview]
Message-ID: <87r6yns1rl.fsf@cut.bc.hsia.telus.net> (raw)
In-Reply-To: <20060905213720.A150744004@Psilocybe.Update.UU.SE> (ams@gnu.org)

   From: "Alfred M. Szmidt" <ams@gnu.org>
   CC: emacs-devel@gnu.org
   Reply-to: ams@gnu.org
   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...

That is true, case seems to be fine, pushnew is the culprit, as it
the function cl-adjoin is called, which includes member*.

I believe this is the correct fix:

*** rcirc.el	05 Sep 2006 12:14:49 -0700	1.26
--- rcirc.el	07 Sep 2006 15:56:32 -0700	
***************
*** 1495,1501 ****
  		    (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)
        (rcirc-update-activity-string)))
    (run-hook-with-args 'rcirc-activity-hooks buffer))
  
--- 1501,1507 ----
  		    (let ((t1 (with-current-buffer b1 rcirc-last-post-time))
  			  (t2 (with-current-buffer b2 rcirc-last-post-time)))
  		      (time-less-p t2 t1)))))
!       (add-to-list 'rcirc-activity-types type)
        (rcirc-update-activity-string)))
    (run-hook-with-args 'rcirc-activity-hooks buffer))

  parent reply	other threads:[~2006-09-07 23:19 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-04 13:51 rcirc bug Alfred M. Szmidt
2006-09-05  9:42 ` Richard Stallman
2006-09-05 21:27 ` Ryan Yeske
2006-09-05 21:37   ` Alfred M. Szmidt
2006-09-05 21:44     ` Ryan Yeske
2006-09-06 19:06     ` Richard Stallman
2006-09-06 19:13       ` Ryan Yeske
2006-09-07 23:19     ` Ryan Yeske [this message]
2006-09-08 15:11       ` Richard Stallman
2006-09-08 15:30         ` Drew Adams
2006-09-11  2:57         ` Chong Yidong
2006-09-11 15:17           ` Stuart D. Herring
2006-09-11 19:57           ` Richard Stallman
2006-09-05 21:44   ` Magnus Henoch
2006-09-07 20:59     ` Chong Yidong
2006-09-07 21:11     ` Stefan Monnier
2006-09-05 21:46   ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r6yns1rl.fsf@cut.bc.hsia.telus.net \
    --to=rcyeske@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).