[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Strange eval-after-load
From: |
Alan Mackenzie |
Subject: |
Re: Strange eval-after-load |
Date: |
Tue, 4 Jul 2006 22:08:05 +0100 |
User-agent: |
Mutt/1.5.9i |
On Tue, Jul 04, 2006 at 01:30:17PM -0400, Richard Stallman wrote:
> Richard, please tell me what's wrong with using eval-after-load.
> Here's the explanation from tips.texi.
[ .... ]
> @item
> It is likewise a bad idea for one Lisp package to advise a function
> in another Lisp package.
> @item
> Likewise, avoid using @code{eval-after-load} (@pxref{Hooks for
> Loading}) in libraries and packages. This feature is meant for
> personal customizations; using it in a Lisp program is unclean because
> it modifies the behavior of another Lisp file in an invisible way.
> This is an obstacle for debugging, much like advising a function in
> the other package.
(eval-after-load "edebug" '(def-edebug-spec c-point t))
To construe this form as "modifying the behaviour of another Lisp file
(?edebug, presumably) in an invisible way" seems like a total perversion
of reality to me. I would call this e-a-l "Telling another Lisp file
how to handle the current one" - in essence, the module which is
modified by this e-a-l is cc-defs, not edebug.
[Just for clarity, this point is independent of the precise semantics of
`def-edebug-spec'. I think it is also the case that `def-edebug-spec'
doesn't modify edebug's state at all.]
--
Alan.
- Re: Strange eval-after-load, (continued)
- Re: Strange eval-after-load, Alan Mackenzie, 2006/07/03
- Re: Strange eval-after-load, Richard Stallman, 2006/07/03
- Re: Strange eval-after-load, Alan Mackenzie, 2006/07/04
- Re: Strange eval-after-load, David Kastrup, 2006/07/04
- Re: Strange eval-after-load, Alan Mackenzie, 2006/07/04
- Re: Strange eval-after-load, David Kastrup, 2006/07/04
- Re: Strange eval-after-load, Nick Roberts, 2006/07/04
- Re: Strange eval-after-load, Johan Bockgård, 2006/07/04
- Re: Strange eval-after-load, Thien-Thi Nguyen, 2006/07/04
- Re: Strange eval-after-load, Richard Stallman, 2006/07/04
- Re: Strange eval-after-load,
Alan Mackenzie <=
- Re: Strange eval-after-load, Nick Roberts, 2006/07/04
- Re: Strange eval-after-load, Eli Zaretskii, 2006/07/04
- Re: Strange eval-after-load, Alan Mackenzie, 2006/07/05
- Re: Strange eval-after-load, David Kastrup, 2006/07/05
- Re: Strange eval-after-load, Alan Mackenzie, 2006/07/06
- Re: Strange eval-after-load, David Kastrup, 2006/07/06
- Re: Strange eval-after-load, Richard Stallman, 2006/07/07
- Re: Strange eval-after-load, Alan Mackenzie, 2006/07/07
- Re: Strange eval-after-load, Richard Stallman, 2006/07/05
- Re: Strange eval-after-load, Richard Stallman, 2006/07/05