GNU bug report logs - #15888
24.3.50; Eval-after-load eval'ed twice

Previous Next

Package: org-mode;

Reported by: "Sebastien Vauban" <sva-news <at> mygooglest.com>

Date: Wed, 13 Nov 2013 21:29:01 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Nicolas Goaziou <n.goaziou <at> gmail.com>
To: "Sebastien Vauban" <sva-news <at> mygooglest.com>
Cc: ndokos <at> gmail.com, 15888 <at> debbugs.gnu.org
Subject: bug#15888: 24.3.50; Eval-after-load eval'ed twice
Date: Wed, 04 Dec 2013 22:35:05 +0100
Hello,

"Sebastien Vauban" <sva-news <at> mygooglest.com> writes:

> You say that opening an Org file requires first `ob-lob' before *providing*
> `org', right? [1]

Correct.

> IIUC, here are all the steps involved:
>
> 1. an Org file is opened
> 2. org.el is required -- but not yet provided at all, so loaded a first time
> 3. when loading it, it requires first extra packages; among others (via some
>    call tree), ob-lob.el -- see [1]
> 4. ob-lob.el is then loaded, and in fine provided
> 5. eval-after-load "ob-lob" is run straight away, and tries to open an Org file
> 6. org.el is hence required -- but it still is not yet provided, so loaded a
>    second time
> 7. at some point, org.el is provided for real
> 8. Eval-after-load "org" is run a first time, so are hooks
> 9. Eval-after-load "org" is run a second time, as the file has been loaded
>    twice

That's right.

> IOW, isn't the problem that the `eval-after-load' is RUN AFTER EACH `provide' of
> some lib, not after the FIRST `provide' of that lib?

It seems to be a feature. See `after-load-alist' docstring.


Regards,

-- 
Nicolas Goaziou




This bug report was last modified 5 years and 25 days ago.

Previous Next


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