Gnus development mailing list
 help / color / mirror / Atom feed
From: Reiner Steib <reinersteib+gmane@imap.cc>
Subject: Re: message-remove-duplicates and gnus-remove-duplicates
Date: Tue, 04 Oct 2005 17:50:37 +0200	[thread overview]
Message-ID: <v9br25th6a.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: <ilull1961oq.fsf@latte.josefsson.org>

On Tue, Oct 04 2005, Simon Josefsson wrote:

> Reiner Steib <reinersteib+gmane@imap.cc> writes:
>>>> (if (fboundp 'define-obsolete-function-alias)
>>>>     (define-obsolete-function-alias
>>>>       'gnus-remove-duplicates 'mm-delete-duplicates
>>>>       "22.1");; Gnus 5.10.7 / Gnus 5.11 / No Gnus
>>>>   (defalias 'gnus-remove-duplicates 'mm-delete-duplicates)
>>>>   (make-obsolete 'gnus-remove-duplicates 'mm-delete-duplicates "22.1"))
[...]
>> Emacs 21 doesn't have it, so we need the fall back code even in No
>> Gnus.  Given that, I think it's best to have the same code in trunk
>> and v5-10.
>
> Ok, you convinced me.

I installed the changes[1] in v5-10 and in the trunk.  I didn't add an
alias, because (1) I don't think `gnus-remove-duplicates' has ever
been used outside of Gnus (no XEmacs Sumo package uses it; a Google
search didn't reveal anything) and (2) the above code didn't work form
me: When byte-compiling Gnus with Emacs 21 running the byte-compiled
program in Emacs 22 doesn't work[2].  Normally Emacs 21 byte-code
should run in Emacs 22 (CMIIW) so maybe I'm doing something wrong.  If
anyone wants to add an alias without introducing this problem, feel
free add it.  We could simply add the defalias/make-obsolete, but I
don't think it's useful, see (1).

Bye, Reiner.

[1] 	* gnus-util.el (gnus-remove-duplicates): Remove.

	* nnmail.el (nnmail-article-group): Use mm-delete-duplicates
	instead of gnus-remove-duplicates.

	* message.el (message-remove-duplicates): Remove.
	(message-idna-to-ascii-rhs-1): Use mm-delete-duplicates instead of
	message-remove-duplicates.

	* mm-util.el (mm-delete-duplicates): Use `delete-dups' if
	available, else use implementation from `delete-dups'.

[2] $ emacs-cvs -Q -f toggle-debug-on-error -l ./lisp/gnus-util.elc

Debugger entered--Lisp error: (invalid-function (macro .
  #[(obsolete-name current-name &optional when docstring) "[...]"
  [obsolete-name current-name docstring when progn defalias
  make-obsolete] 6 617511]))
  define-obsolete-function-alias(gnus-remove-duplicates
  mm-delete-duplicates "22.1")
  byte-code("[...]" [fboundp set-process-query-on-exit-flag defalias
  gnus-set-process-query-on-exit-flag process-kill-without-query
  define-obsolete-function-alias gnus-remove-duplicates
  mm-delete-duplicates "22.1" make-obsolete provide gnus-util] 4)
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/




      reply	other threads:[~2005-10-04 15:50 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   ` message-remove-duplicates and gnus-remove-duplicates Simon Josefsson
2005-10-02 20:24     ` 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 [this message]

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=v9br25th6a.fsf@marauder.physik.uni-ulm.de \
    --to=reinersteib+gmane@imap.cc \
    --cc=Reiner.Steib@gmx.de \
    /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).