Subject: bug#15888: 24.3.50; Eval-after-load eval'ed twice

From: "Sebastien Vauban" <[email-masked]>
Date: Tue, 19 Nov 2013 21:05:47 +0100

Glenn Morris wrote:
> Apparently this is fixed:
>
> http://lists.gnu.org/archive/html/emacs-orgmode/2013-11/msg00682.html

Sadly, it's only partially fixed: if it is WELL fixed for the original code,
the problem comes BACK with the following minimized Emacs file:

--8<---------------cut here---------------start------------->8---
(add-to-list 'load-path "~/Public/Repositories/org-mode/testing")
(add-to-list 'load-path "~/Public/Repositories/org-mode/contrib/lisp")
(add-to-list 'load-path "~/Public/Repositories/org-mode/lisp")

;; getting started
(require 'org-loaddefs)
(add-to-list 'auto-mode-alist '("\\.txt\\'" . org-mode))
(add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))

(with-eval-after-load "ob-lob"
  ;; load some code blocks into the library of Babel
  (let ((lob-file (concat (file-name-directory (locate-library "org"))
                          "../doc/library-of-babel.org")))
    (when (file-exists-p lob-file)
      (org-babel-lob-ingest lob-file))))

(with-eval-after-load "org"
  (message "Eval this when Org is loaded")
  (sit-for 3)
  (message ""))

(message "End of minimal .emacs")
--8<---------------cut here---------------end--------------->8---

FYI, I just added the lines 10-15 (expression with `ob-lob').

That's only reproducible with a development branch of Org mode, as
library-of-babel.org is not copied into the official Emacs release.

Best regards,
  Seb

-- 
Sebastien Vauban