emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Docs submitted (Was Re: Advice sought on managing decisio


From: Tom Breton (Tehom)
Subject: Re: [Orgmode] Docs submitted (Was Re: Advice sought on managing decision alternatives.)
Date: Thu, 12 Feb 2009 15:32:46 -0500 (EST)
User-agent: SquirrelMail/1.4.13

> Tom Breton (Tehom) <address@hidden> wrote:
>
>>
>> >>> On Feb 11, 2009, at 2:08 AM, Tom Breton (Tehom) wrote:
>> >>>
>> >>
>> >> (let*
>> >>   ((x 1))
>> >>   (eval-after-load 'simple (setq x 2))
>> >>   x)
>> >>
>> >> =3D> 2
>> >>
>> >>
>> >>
>> >> (let*
>> >>   ((x 1))
>> >>   (eval-after-load 'simple '(setq x 2))
>> >>   x)
>> >>
>> >> =3D> 1
>> >
>> > In fact, I am getting 2 in both cases!!!!!???????
>> > Do you really get 1 for the second???
>>
>> Yes I do, but it's clear now that I was mistaken about why.  On closer
>> inspection, it has to do with emacs not recognizing 'simple because it
>> wants to see "simple" instead (string instead of symbol).
>>
>
> That's not correct: eval-after-load will happily accept a symbol instead
> of a string, as long as the symbol is a feature provided by the library.
> simple.el does that - the last form in it is
>
> (provide 'simple)

What version is this?  Because that's clearly not what it does on emacs
21.3.1. Here simple.el does not have (provide 'simple) in it.

I see no provision for accepting a symbol in eval-after-load.  The test it
uses is just:

        (assoc file load-history)

The cars of load-history are all strings, so I can't see how it would find
a symbol among them.  And it continues to stubbornly return a 1 for that
example when I use 'simple.

Clearly something has changed across versions.

Tom Breton (Tehom)






reply via email to

[Prev in Thread] Current Thread [Next in Thread]