[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: declare-function in files from Gnus (hashcash.el, imap.el)
From: |
Dan Nicolaescu |
Subject: |
Re: declare-function in files from Gnus (hashcash.el, imap.el) |
Date: |
Mon, 03 Dec 2007 15:40:02 -0800 |
Reiner Steib <address@hidden> writes:
> On Sun, Dec 02 2007, Dan Nicolaescu wrote:
>
> > Such files can just add a 1 line compatibility code:
> >
> > (unless (fboundp 'declare-function) (defmacro declare-function (&rest r)))
>
> I think this is not a good idea...
>
> ,----[ (info "(elisp)Coding Conventions") ]
> | * If a package needs to define an alias or a new function for
> | compatibility with some other version of Emacs, name it with the
> | package prefix, not with the raw name with which it occurs in the
> | other version. Here is an example from Gnus, which provides many
> | examples of such compatibility issues.
> |
> | (defalias 'gnus-point-at-bol
> | (if (fboundp 'point-at-bol)
> | 'point-at-bol
> | 'line-beginning-position))
> `----
>
> [In Gnus, we had some bug report from XEmacs users that was very hard
> to find because some XEmacs package defined an un-prefixed Emacs
> function so that the test (fboundp ...) returned t although the
> functionality was not as expected.]
This situation is not similar, declare-function does not perform any
active action. Why do you think it would matter?
- Re: declare-function in files from Gnus (hashcash.el, imap.el), (continued)
- Re: declare-function in files from Gnus (hashcash.el, imap.el), Richard Stallman, 2007/12/01
- Re: declare-function in files from Gnus (hashcash.el, imap.el), Ralf Angeli, 2007/12/01
- Re: declare-function in files from Gnus (hashcash.el, imap.el), Richard Stallman, 2007/12/02
- Re: declare-function in files from Gnus (hashcash.el, imap.el), Ralf Angeli, 2007/12/02
- Re: declare-function in files from Gnus (hashcash.el, imap.el), Dan Nicolaescu, 2007/12/02
- Re: declare-function in files from Gnus (hashcash.el, imap.el), Ralf Angeli, 2007/12/03
- Re: declare-function in files from Gnus (hashcash.el, imap.el), Reiner Steib, 2007/12/03
- Re: declare-function in files from Gnus (hashcash.el, imap.el),
Dan Nicolaescu <=
- Re: declare-function in files from Gnus (hashcash.el, imap.el), Reiner Steib, 2007/12/05
- Re: declare-function in files from Gnus (hashcash.el, imap.el), Glenn Morris, 2007/12/05
- Re: declare-function in files from Gnus (hashcash.el, imap.el), Reiner Steib, 2007/12/08
- Re: declare-function in files from Gnus (hashcash.el, imap.el), Dan Nicolaescu, 2007/12/08
- Re: declare-function in files from Gnus (hashcash.el, imap.el), Glenn Morris, 2007/12/08
- Re: declare-function in files from Gnus (hashcash.el, imap.el), Austin Frank, 2007/12/09
- Re: declare-function in files from Gnus (hashcash.el, imap.el), Reiner Steib, 2007/12/09
- Re: declare-function in files from Gnus (hashcash.el, imap.el), Richard Stallman, 2007/12/04
- Re: declare-function in files from Gnus (hashcash.el, imap.el), Dan Nicolaescu, 2007/12/02
Re: declare-function in files from Gnus (hashcash.el, imap.el), Reiner Steib, 2007/12/01