Gnus development mailing list
 help / color / mirror / Atom feed
From: Simon Josefsson <jas@extundo.com>
Subject: Re: message-remove-duplicates and gnus-remove-duplicates
Date: Thu, 29 Sep 2005 15:39:36 +0200	[thread overview]
Message-ID: <ilur7b8j8mf.fsf@latte.josefsson.org> (raw)
In-Reply-To: <v9zmpxs20a.fsf@marauder.physik.uni-ulm.de> (Reiner Steib's message of "Wed, 28 Sep 2005 16:25:25 +0200")

Reiner Steib <reinersteib+gmane@imap.cc> writes:

> On Tue, Sep 27 2005, Simon Josefsson committed:
>
>> 2005-09-27  Arne Jørgensen  <arne@arnested.dk>
>>
>> 	* message.el (message-remove-duplicates): New function.
>> 	Implementation borrowed from `gnus-remove-duplicates'.
> [...]
>> +(defun message-remove-duplicates (list)
>> +  (let (new)
>> +    (while list
>> +      (or (member (car list) new)
>> +	  (setq new (cons (car list) new)))
>> +      (setq list (cdr list)))
>> +    (nreverse new)))
>
> Shouldn't we drop (or defalias) `gnus-remove-duplicates' in favor of
> `message-remove-duplicates'?  (We can safely require `message.el' in
> Gnus code but not the other way round.)

Sounds good.  Let's defalias it, in case external packages use g-r-d.

There is also mm-delete-duplicates, I'm not sure how it relates.



  reply	other threads:[~2005-09-29 13:39 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1EKH9h-0000UQ-00@quimby.gnus.org>
2005-09-28 14:25 ` message-remove-duplicates and gnus-remove-duplicates (was: Changes committed gnus/lisp (ChangeLog gnus-art.el message.el)) Reiner Steib
2005-09-29 13:39   ` Simon Josefsson [this message]
2005-10-02 20:24     ` message-remove-duplicates and gnus-remove-duplicates Reiner Steib
2005-10-03  8:38       ` Simon Josefsson
2005-10-03 10:51         ` Reiner Steib
2005-10-03 13:58           ` Simon Josefsson
2005-10-03 17:55             ` Reiner Steib
2005-10-04 10:01               ` Simon Josefsson
2005-10-04 15:50                 ` Reiner Steib

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

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

  git send-email \
    --in-reply-to=ilur7b8j8mf.fsf@latte.josefsson.org \
    --to=jas@extundo.com \
    /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.
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 NNTP newsgroup(s).