GNU bug report logs - #7986
23.2.91; Remove unwise advice from manual

Previous Next

Package: emacs;

Reported by: Reuben Thomas <rrt <at> sc3d.org>

Date: Fri, 4 Feb 2011 23:19:01 UTC

Severity: wishlist

Found in version 23.2.91

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 7986 <at> debbugs.gnu.org (full text, mbox):

From: Reuben Thomas <rrt <at> sc3d.org>
To: Lennart Borgman <lennart.borgman <at> gmail.com>
Cc: 7986 <at> debbugs.gnu.org
Subject: Re: bug#7986: 23.2.91; Remove unwise advice from manual
Date: Fri, 4 Feb 2011 23:59:59 +0000
On 4 February 2011 23:57, Lennart Borgman <lennart.borgman <at> gmail.com> wrote:
> On Sat, Feb 5, 2011 at 12:26 AM, Reuben Thomas <rrt <at> sc3d.org> wrote:
>>
>>   Normally, well-designed Lisp programs should not use
>> `eval-after-load'.  If you need to examine and set the variables
>> defined in another library (those meant for outside use), you can do it
>> immediately--there is no need to wait until the library is loaded.  If
>> you need to call functions defined by that library, you should load the
>> library, preferably with `require' (*note Named Features::).
>
> You can't do that. Just imagine you write a library with one single
> purpose: doing something after another library is loaded.

I don't think that is at odds with the advice "Normally, well-designed
Lisp programs should not use `eval-after-load'." But if it is, then
the manual should be corrected.

However, that does not affect my suggestion that the advice about
writing code for "personal customizations" be removed.

-- 
http://rrt.sc3d.org




This bug report was last modified 14 years and 106 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.