GNU bug report logs -
#15888
24.3.50; Eval-after-load eval'ed twice
Previous Next
Full log
Message #82 received at 15888 <at> debbugs.gnu.org (full text, mbox):
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
This bug report was last modified 5 years and 26 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.