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


Message #29 received at 15888 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Sebastien Vauban <sva-news <at> mygooglest.com>
Cc: michael_heerdegen <at> web.de, rgm <at> gnu.org, 15888 <at> debbugs.gnu.org
Subject: Re: bug#15888: 24.3.50; Eval-after-load eval'ed twice
Date: Thu, 14 Nov 2013 21:12:51 +0200
> From: "Sebastien Vauban" <sva-news <at> mygooglest.com>
> Date: Thu, 14 Nov 2013 19:57:02 +0100
> Cc: 15888 <at> 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 scratch buffer
> 4. Eval it
> 5. Open one random Org file (~/Public/Repositories/worg/ChangeLog.org)
> 6. Look at the echo area
> 7. Check in the Messages buffer -> block has been executed twice!
> 
> See http://screencast.com/t/pfWMZStlb23Z.
> 
> I do not see where extra `load' instructions could stay hidden (and out of my
> mind) by applying this recipe.
> 
> Where is the black magic?

Instead of wondering, run all this under GDB, after putting a
breakpoint at Fload, and see whodunit.

Since 'load' is potentially called many times during startup, I
suggest the following setup:

 (gdb) break Fload
 (gdb) commands
   > p file
   > xstring
   > end
 (gdb) r -Q

Now, when the breakpoint breaks, you will see which file is being
loaded, and need just type "c RET" (or just "RET" after the first
time), and wait for "org-mode" to show in the output of the above
commands; then type "bt" to see who loaded it.




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.