[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mh-e/mh-acros.el advices `require' incorrectly
From: |
Bill Wohler |
Subject: |
Re: mh-e/mh-acros.el advices `require' incorrectly |
Date: |
Fri, 13 Jan 2006 14:11:49 -0800 |
Drew Adams <address@hidden> wrote:
> > The origianl `require' returns FEATURE even if it is already
> > provided, but the adviced `require' returns nil in such a
> > case. So, once mh-acros.el is loaded, a code depending on
> > the return value of `require' stops working.
> >
> > How about this change?
>
> What do you (and others) think about this?
>
> Besides the fact that we shouldn't use defadvice in vanilla Emacs code, I
> don't think we should change the return value of `require' at all. It has
> acted this way for a very long time, and there is undoubtedly code that
> depends on this behavior (at least some external libraries). Besides, we
> certainly should not make such a change just before a release.
Unless you load MH-E, require does not change. If I understand
correctly, Kanichi's patch addresses your concern (about the return
value of require changing). Here's the ChangeLog for that change:
2004-08-23 Satyaki Das <address@hidden>
* mh-acros.el (mh-require-cl): Remove unneeded autoloads.
(require): Add an advice to the function so that at compile time
the uncompiled file is loaded. This avoids compilation problems
when built in the Emacs tree.
Satyaki, just out of curiosity, do you remember what the problems were?
Would we be able to remove the require defadvice if we removed the
circular dependencies?
--
Bill Wohler <address@hidden> http://www.newt.com/wohler/ GnuPG ID:610BD9AD
Maintainer of comp.mail.mh FAQ and MH-E. Vote Libertarian!
If you're passed on the right, you're in the wrong lane.
- mh-e/mh-acros.el advices `require' incorrectly, Kenichi Handa, 2006/01/13
- Re: mh-e/mh-acros.el advices `require' incorrectly, Bill Wohler, 2006/01/13
- RE: mh-e/mh-acros.el advices `require' incorrectly, Drew Adams, 2006/01/13
- Re: mh-e/mh-acros.el advices `require' incorrectly, Kenichi Handa, 2006/01/13
- Re: mh-e/mh-acros.el advices `require' incorrectly, Richard M. Stallman, 2006/01/14
- Re: mh-e/mh-acros.el advices `require' incorrectly, Bill Wohler, 2006/01/14
- Re: mh-e/mh-acros.el advices `require' incorrectly, Andreas Schwab, 2006/01/14
- Re: mh-e/mh-acros.el advices `require' incorrectly, Bill Wohler, 2006/01/14
- Re: mh-e/mh-acros.el advices `require' incorrectly, Stefan Monnier, 2006/01/14
- Re: mh-e/mh-acros.el advices `require' incorrectly, Richard M. Stallman, 2006/01/15
- Re: mh-e/mh-acros.el advices `require' incorrectly, Bill Wohler, 2006/01/15