Re: [O] bug#15888: 24.3.50; Eval-after-load eval'ed twice

2013-12-04 Thread Nicolas Goaziou
Hello, "Sebastien Vauban" 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.

Re: [O] bug#15888: 24.3.50; Eval-after-load eval'ed twice

2013-12-04 Thread Sebastien Vauban
Hello, Nicolas Goaziou wrote: > Nick Dokos writes: > >> (require 'org-loaddefs) >> >> (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-ba

Re: [O] bug#15888: 24.3.50; Eval-after-load eval'ed twice

2013-11-23 Thread Nicolas Goaziou
Hello, Nick Dokos writes: > Well, Nicolas warned us that we are not out of the woods yet. I repeated > the previous exercise, this time with the following file: > > (add-to-list 'load-path (expand-file-name "~/src/emacs/org/org-mode/lisp")) > (add-to-list 'load-path (expand-file-name > "~/src/e

Re: [O] bug#15888: 24.3.50; Eval-after-load eval'ed twice

2013-11-19 Thread Nick Dokos
"Sebastien Vauban" writes: > 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 fi

Re: [O] bug#15888: 24.3.50; Eval-after-load eval'ed twice

2013-11-19 Thread Sebastien Vauban
Josh wrote: > On Wed, Nov 13, 2013 at 1:27 PM, Sebastien Vauban wrote: >> >> (with-eval-after-load "org" >> (message "Eval this when Org is loaded") >> (sit-for 3) >> (message "")) >> >> the code block in the `with-eval-after-load' is eval'ed twice whenever an Org >> file is loaded. > > Have

[O] bug#15888: 24.3.50; Eval-after-load eval'ed twice

2013-11-19 Thread Sebastien Vauban
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---

[O] bug#15888: 24.3.50; Eval-after-load eval'ed twice

2013-11-17 Thread Glenn Morris
Apparently this is fixed: http://lists.gnu.org/archive/html/emacs-orgmode/2013-11/msg00682.html Sadly the relevant messages were not sent to this tracker. In case people do not know: you can think of ###@debbugs as an alias to the bug-gnu-emacs@gnu list for bugs in package emacs, to emacs-orgmo

Re: [O] bug#15888: 24.3.50; Eval-after-load eval'ed twice

2013-11-17 Thread Nick Dokos
Nick Dokos writes: > Nicolas Goaziou writes: >> ... >> >> Thank you. The problem should now be fixed. >> > > Confirm. > Sometimes I blab endlessly but sometimes I'm way too terse: here I meant to say "I confirm that it is fixed." -- Nick

Re: [O] bug#15888: 24.3.50; Eval-after-load eval'ed twice

2013-11-17 Thread Nick Dokos
Nicolas Goaziou writes: > Hello, > > Nick Dokos writes: > >> I started emacs with >> >> emacs -Q -L ~/src/emacs/org/org-mode/lisp -l double-load.el >> >> where double-load.el looks like this: >> >> >> (defun foobar () >> (message "LOADED") (sit-for 3) (message "")) >> >> (setq org-load-hook

Re: [O] bug#15888: 24.3.50; Eval-after-load eval'ed twice

2013-11-17 Thread Nicolas Goaziou
Hello, Nick Dokos writes: > I started emacs with > > emacs -Q -L ~/src/emacs/org/org-mode/lisp -l double-load.el > > where double-load.el looks like this: > > > (defun foobar () > (message "LOADED") (sit-for 3) (message "")) > > (setq org-load-hook (function foobar)) > > and edebugged fooba

Re: [O] bug#15888: 24.3.50; Eval-after-load eval'ed twice

2013-11-16 Thread Nick Dokos
Nicolas Goaziou writes: >> 0cecf32a0ae559266555b96668dc305710366c96 is the first bad commit >> commit 0cecf32a0ae559266555b96668dc305710366c96 >> Author: Nicolas Goaziou >> Date: Sun Oct 27 11:09:17 2013 +0100 > > Well. The only thing related to load/autoload I can think of is calling > `org-

Re: [O] bug#15888: 24.3.50; Eval-after-load eval'ed twice

2013-11-16 Thread Nick Dokos
Nicolas Goaziou writes: > Hello, > > Nick Dokos writes: > >> Glenn Morris writes: >> >>> "Sebastien Vauban" wrote: >>> But I wonder: how can you now reproduce it (and not before)? >>> >>> Because I downloaded a snapshot of Org. >>> Your problem is not with code that is in Emacs current tru

[O] bug#15888: 24.3.50; Eval-after-load eval'ed twice

2013-11-16 Thread Josh
On Wed, Nov 13, 2013 at 1:27 PM, Sebastien Vauban wrote: > (with-eval-after-load "org" > (message "Eval this when Org is loaded") > (sit-for 3) > (message "")) > > the code block in the `with-eval-after-load' is eval'ed twice whenever an Org > file is loaded. Have you checked to see what ha

Re: [O] bug#15888: 24.3.50; Eval-after-load eval'ed twice

2013-11-15 Thread Nicolas Goaziou
Hello, Nick Dokos writes: > Glenn Morris writes: > >> "Sebastien Vauban" wrote: >> >>> But I wonder: how can you now reproduce it (and not before)? >> >> Because I downloaded a snapshot of Org. >> Your problem is not with code that is in Emacs current trunk. > > Using Glenn's reproducer, I bise

Re: [O] bug#15888: 24.3.50; Eval-after-load eval'ed twice

2013-11-15 Thread Nick Dokos
Glenn Morris writes: > "Sebastien Vauban" wrote: > >> But I wonder: how can you now reproduce it (and not before)? > > Because I downloaded a snapshot of Org. > Your problem is not with code that is in Emacs current trunk. Using Glenn's reproducer, I bisected it - another one for Nicolas's TODO

[O] bug#15888: 24.3.50; Eval-after-load eval'ed twice

2013-11-15 Thread Glenn Morris
"Sebastien Vauban" wrote: > But I wonder: how can you now reproduce it (and not before)? Because I downloaded a snapshot of Org. Your problem is not with code that is in Emacs current trunk.

[O] bug#15888: 24.3.50; Eval-after-load eval'ed twice

2013-11-15 Thread Eli Zaretskii
> From: "Sebastien Vauban" > Cc: Sebastien Vauban , michael_heerde...@web.de, > 15...@debbugs.gnu.org > Date: Fri, 15 Nov 2013 14:01:10 +0100 > > What's weird is that I only saw once "org", but still have the code block > executed twice in Emacs. That probably means that some Lisp does the eq

[O] bug#15888: 24.3.50; Eval-after-load eval'ed twice

2013-11-15 Thread Sebastien Vauban
Stefan Monnier wrote: > BTW, it's probably easier to debug this in Elisp. > You can start with > > (add-hook 'after-load-functions > (lambda (file) (message "Loaded %S" file))) > > Or change your recipe to replace (sit-for 3) with (debug). Right. The above can prove very useful. Thanks!

[O] bug#15888: 24.3.50; Eval-after-load eval'ed twice

2013-11-15 Thread Stefan Monnier
BTW, it's probably easier to debug this in Elisp. You can start with (add-hook 'after-load-functions (lambda (file) (message "Loaded %S" file))) Or change your recipe to replace (sit-for 3) with (debug). Stefan

[O] bug#15888: 24.3.50; Eval-after-load eval'ed twice

2013-11-15 Thread Sebastien Vauban
Eli Zaretskii wrote: >> From: "Sebastien Vauban" >> Cc: r...@gnu.org, michael_heerde...@web.de, 15...@debbugs.gnu.org >> Date: Fri, 15 Nov 2013 10:06:12 +0100 >> >> Eli Zaretskii wrote: >> > Unfortunately, this: >> > >> >> (gdb) No symbol "backtrace_list" in current context. >> > >> > (whose re

[O] bug#15888: 24.3.50; Eval-after-load eval'ed twice

2013-11-15 Thread Eli Zaretskii
> From: "Sebastien Vauban" > Cc: r...@gnu.org, michael_heerde...@web.de, 15...@debbugs.gnu.org > Date: Fri, 15 Nov 2013 10:06:12 +0100 > > Eli Zaretskii wrote: > > Unfortunately, this: > > > >> (gdb) No symbol "backtrace_list" in current context. > > > > (whose reason I don't really understand)

[O] bug#15888: 24.3.50; Eval-after-load eval'ed twice

2013-11-15 Thread Sebastien Vauban
Eli Zaretskii wrote: > Unfortunately, this: > >> (gdb) No symbol "backtrace_list" in current context. > > (whose reason I don't really understand) means that the Lisp backtrace > is absent from your data. Should the following explain it? As I had no .gdbinit file (hence, no definition for xstring

[O] bug#15888: 24.3.50; Eval-after-load eval'ed twice

2013-11-15 Thread Eli Zaretskii
> From: "Sebastien Vauban" > Cc: r...@gnu.org, michael_heerde...@web.de, 15...@debbugs.gnu.org > Date: Fri, 15 Nov 2013 09:16:44 +0100 > > > (gdb) break Fload > > (gdb) commands > >> p file > >> xstring > >> end > > (gdb) r -Q > > > > Now, when the breakpoint breaks, you will see

[O] bug#15888: 24.3.50; Eval-after-load eval'ed twice

2013-11-15 Thread Sebastien Vauban
Bastien wrote: > Glenn Morris writes: >> "Sebastien Vauban" wrote: >> >>> Where is the black magic? >> >> Somewhere in the labyrinthine depths of Org, so I suggest you ask the >> Org maintainers to figure out why: >> >> emacs -Q -L /path/to/git/org-mode/lisp >> (with-eval-after-load "org" >> (me

[O] bug#15888: 24.3.50; Eval-after-load eval'ed twice

2013-11-15 Thread Sebastien Vauban
Eli Zaretskii wrote: >> From: "Sebastien Vauban" >> Date: Thu, 14 Nov 2013 19:57:02 +0100 >> Cc: 15...@debbugs.gnu.org >> >> 0. Copy the minimal configuration in the clipboard >> 1. Go into C:/Program Files/emacs-trunk/bin/ >> 2. Launch emacs -Q >> 3. Paste the minimal configuration in the scratc

[O] bug#15888: 24.3.50; Eval-after-load eval'ed twice

2013-11-14 Thread Sebastien Vauban
Glenn Morris wrote: > It's nothing to do with eval-after-load. Same result with: > > emacs -Q -L /path/to/org/git/lisp \ >--eval '(setq org-load-hook (lambda () (message "LOADED") (sit-for 3) > (message "")))' > > Then (require 'org). It is some peculiarity of Org trunk. I'll do ask this on O

[O] bug#15888: 24.3.50; Eval-after-load eval'ed twice

2013-11-14 Thread Bastien
Glenn Morris writes: > "Sebastien Vauban" wrote: > >> Where is the black magic? > > Somewhere in the labyrinthine depths of Org, so I suggest you ask the > Org maintainers to figure out why: > > emacs -Q -L /path/to/git/org-mode/lisp > (with-eval-after-load "org" > (message "Eval this when Org

[O] bug#15888: 24.3.50; Eval-after-load eval'ed twice

2013-11-14 Thread Glenn Morris
It's nothing to do with eval-after-load. Same result with: emacs -Q -L /path/to/org/git/lisp \ --eval '(setq org-load-hook (lambda () (message "LOADED") (sit-for 3) (message "")))' Then (require 'org). It is some peculiarity of Org trunk.

[O] bug#15888: 24.3.50; Eval-after-load eval'ed twice

2013-11-14 Thread Glenn Morris
"Sebastien Vauban" wrote: > Where is the black magic? Somewhere in the labyrinthine depths of Org, so I suggest you ask the Org maintainers to figure out why: emacs -Q -L /path/to/git/org-mode/lisp (with-eval-after-load "org" (message "Eval this when Org is loaded") (sit-for 3) (message ""