[PATCH] erc: XEmacs make-obsolete only takes two arguments
Kyle Jones <[email protected]> Thu, 11 Mar 2004 10:41:58 -0800
| Newsgroups | gmane.emacs.erc.general,gmane.emacs.xemacs.design |
|---|---|
| Message-ID | <[email protected]> |
Adrian Aichner writes:
> +(if (featurep 'xemacs)
> + (make-obsolete 'erc-current-network 'erc-network)
> + (make-obsolete 'erc-current-network 'erc-network "Obsolete since erc-nets 1.5"))
This is better written as
(condition-case nil
(make-obsolete 'erc-current-network 'erc-network "Obsolete since erc-nets 1.5")
(wrong-number-of-arguments (make-obsolete 'erc-current-network 'erc-network)))
This way if XEmacs syncs to the three arg version, the code will
automatically start using the extra arg.
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click