emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Gustav Wikström" <gustav.erik@gmail.com>
To: Sebastien Vauban <wxhgmqzgwmuf@spammotel.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [bug] Symbol's function definition is void: org-pop-to-buffer-same-window
Date: Wed, 21 Dec 2011 18:10:13 +0100	[thread overview]
Message-ID: <CA+SyOP8EEMK7rAD6vtfRZnNev4+gtQm+bJ6kGMZ2GBoQ5eOupg@mail.gmail.com> (raw)
In-Reply-To: <80r50gcdq2.fsf@somewhere.org>

[-- Attachment #1: Type: text/plain, Size: 4466 bytes --]

Just wanted to add a line here. I also encountered this problem when
upgrading to Emacs 24.0.92 on windows and started using ELPA to install the
newest release of Org.

Sebastiens comments were helpful in finding the reason for this. It seems
to relate to the fact that everything handled by ELPA doesn't load until
after the init file. Org (from ELPA) is auto-loaded first when called by
the user but the settings done in the init file still remains from the
default org-mode installation causing problems as this.

I solved it by adding the function (package-initialize) to my init file
before calling org to do things for me. I don't know if this has any bad
side-effects yet.. But please point at a better solution if one comes to
mind.

Regards
Gustav

On Wed, Dec 7, 2011 at 9:45 PM, Sebastien Vauban <wxhgmqzgwmuf@spammotel.com
> wrote:

> Hi all,
>
> "Sebastien Vauban" wrote:
> > Nick Dokos wrote:
> >> Shelagh Manton <shelagh.manton@gmail.com> wrote:
> >>> On Tue, 06 Dec 2011 16:19:36 -0500, Nick Dokos wrote:
> >>>> Shelagh Manton <shelagh.manton@gmail.com> wrote:
> >>>>> On Thu, 01 Dec 2011 11:40:11 -0300, Kenny Meyer wrote:
> >>>>>> On Thu, Dec 1, 2011 at 9:51 AM, Sebastien Vauban
> >>>>>>> In conditions which I consider unchanged (I speak of my emacs
> config
> >>>>>>> file), with the latest Org-mode version, I now have the message:
>
> There was the original mistake: conditions were changed!
>
> >>>>>>>   let*: Symbol's function definition is void:
> >>>>>>>   org-pop-to-buffer-same-window
> >>>>>>>
> >>>>>>> when doing, for example, `C-c C-x C-j' to jump on the currently
> >>>>>>> clocked item.
> >>>>>>>
> >>>>>>> Explicitly Loading `org-compat' does cure this problem... But we
> >>>>>>> must miss a `require' somewhere, but where?  In `org.el' itself?
> >>>>>
> >>>>> I've just been bitten by this as well. requiring org-compat manually
> did
> >>>>> nothing. My config files have not changed, just pulled latest
> org-mode,
> >>>>> did a make clean and make. Suddenly my org-drill sessions don't work.
> >>>>
> >>>> Did you restart emacs?
> >>>
> >>> Yes. I did just then and same thing.
> >>
> >> Do you get the error with org-drill only or do you get it in the
> instances
> >> that Seb and Kenny Meyer report? If the former, it may be a bug with
> >> org-drill. Otherwise, I throw up my hands: I certainly cannot reproduce
> it.
> >
> > FYI:
> >
> > - I don't use .elc files.
> >
> > - I've recently upgraded to Emacs 24.0.91.1 on Windows -- not sure if the
> >   problem appeared directly after, or a little bit before.
> >
> > - I began suspecting work that I could have done in a branch, and mixed
> >   versions that way -- as I'm not yet familiar with git and switching
> between
> >   branches.
> >
> > - I've deleted all my Org directory, and cloned a fresh one
> >
> > But it still occurs.
> >
> > Though:
> >
> > - Requiring org-compat does cure the problem.
> >
> > - I see calls to org-compat in every crucial Org file -- I don't
> understand
> >   where it could be missing.
> >
> > - I still must try to dissecate my .emacs, or use a minimal Emacs config
> file
> >   to see if it's reproducible that way.
>
> So, what was the problem in my case?  I've been trying to use the "starter
> kit" approach, and have a "2-file" system:
>
> - ~/.emacs
>
> - ~/emacs/site-lisp/seb-conf.el (tangled from its .txt equivalent)
>  which contains "add-to-load-path" calls for all packages (Org, Gnus, etc.)
>  and all my customization.
>
> In ~/.emacs, I've replaced my previous:
>
>    (require 'seb-conf)
>
> by
>
>    (defun starter-kit-load ...)
>    (defun starter-kit-compile ...)
>    (starter-kit-load "emacs/site-lisp/seb-conf.txt")
>
> Doing so, as it now calls `org-babel-load-file' (in `starter-kit-load'),
> and
> as that function is autoloaded in Emacs 24, Emacs was loading the Org
> version
> bundled with Emacs 24.0.91.1 -- that is, not the latest one, not the one
> in my
> Git working copy.
>
> This is very tricky to spot, IMHO, as all the checks done after Emacs has
> been
> started up will give partially false answers:
>
>    (locate-library "org-compat") shows my git version
>
> as the load-path has been updated at the very beginning of loading
> `seb-conf'.
>
> In summary:
>
> - this is explained, and due to a mistake of mine;
> - this is quite tricky to detect;
> - this is a mix of different Org versions which causes the reported
> symptom.
>
> Best regards,
>  Seb
>
> --
> Sebastien Vauban
>
>
>

[-- Attachment #2: Type: text/html, Size: 5947 bytes --]

  reply	other threads:[~2011-12-21 17:10 UTC|newest]

Thread overview: 86+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-01 12:51 [bug] Symbol's function definition is void: org-pop-to-buffer-same-window Sebastien Vauban
2011-12-01 14:40 ` Kenny Meyer
2011-12-01 15:00   ` Nick Dokos
2011-12-01 15:05     ` Nick Dokos
2011-12-02 19:46       ` Kenny Meyer
2011-12-02 20:09         ` Nick Dokos
2011-12-02 20:41           ` Sebastien Vauban
2011-12-02 21:32             ` Nick Dokos
2011-12-06 20:24   ` Shelagh Manton
2011-12-06 21:19     ` Nick Dokos
2011-12-07  7:07       ` Shelagh Manton
2011-12-07  8:23         ` Nick Dokos
2011-12-07  8:34           ` Sebastien Vauban
2011-12-07 11:25             ` shelagh Manton
2011-12-07 20:45             ` Sebastien Vauban
2011-12-21 17:10               ` Gustav Wikström [this message]
  -- strict thread matches above, loose matches on Subject: below --
2013-01-15 10:02 Logging of work no longer working with emcas24 Im Exil
2013-01-15 10:27 ` Nick Dokos
2013-01-15 10:47   ` Im Exil
2013-01-15 11:17   ` Nick Dokos
2013-01-15 13:55     ` Im Exil
2013-01-15 19:10       ` Achim Gratz
2013-01-16  8:20         ` Im Exil
2012-08-09 21:45 [OT] Current website not very attractive Marcelo de Moraes Serpa
2012-08-09 23:14 ` Jude DaShiell
2012-08-10  0:09   ` Sankalp
2012-08-10  4:02     ` Nick Dokos
2012-08-10  5:27       ` Jambunathan K
2012-08-10  6:30       ` Nick Dokos
2012-08-10 16:43         ` Marcelo de Moraes Serpa
2012-08-10 17:46           ` Nick Dokos
2012-08-11  9:29             ` Bastien
2012-08-10 19:56           ` brian powell
2012-08-11  9:30             ` Bastien
2012-09-13 20:19               ` Marcelo de Moraes Serpa
2012-09-13 20:21                 ` Marcelo de Moraes Serpa
2012-09-13 20:23                   ` Marcelo de Moraes Serpa
2012-09-14  5:41                     ` Bastien
2012-09-21 21:19                       ` Marcelo de Moraes Serpa
2012-09-21 22:50                         ` Nick Dokos
2012-09-21 22:59                           ` Eric Schulte
2012-09-21 23:14                             ` Nick Dokos
2012-09-22  4:06                               ` Nick Dokos
2012-09-22  6:51                               ` Bastien
2012-09-22  7:20                                 ` Nick Dokos
2012-09-22  7:44                                   ` Bastien
2012-09-22 14:13                                 ` Achim Gratz
2012-09-22 13:55                           ` John Hendy
2012-08-11 10:46             ` [ANN] Letter modes in the Groff exporter Luis Anaya
2012-08-11 11:03               ` Suvayu Ali
2012-08-11 15:50                 ` Luis Anaya
2012-08-11 17:00                   ` Bastien
2012-08-11  9:27           ` [OT] Current website not very attractive Bastien
2012-08-10  0:57 ` Ista Zahn
2012-08-10  7:05 ` [Contest] Redesign orgmode.org by the end of august (was: [OT] Current website not very attractive) Bastien
2012-08-10 12:40   ` John Hendy
2012-08-10 16:43     ` [Contest] Redesign orgmode.org by the end of august Thomas S. Dye
2012-08-10 18:04       ` Suvayu Ali
2012-08-11  9:33       ` Bastien
2012-08-11 21:45         ` Thomas S. Dye
2012-08-11 22:01           ` Bastien
2012-08-10 16:13   ` Rémi Letot
2012-08-11  9:25     ` Bastien
2012-08-25 20:18   ` Bastien
2012-08-25 21:11     ` Nick Dokos
2012-09-10 11:00   ` Bastien
2012-09-10 11:04     ` Bastien
2012-09-10 14:43       ` Nick Dokos
2012-09-10 12:01     ` Giovanni Ridolfi
2012-09-10 14:41     ` Nick Dokos
2012-09-10 14:45       ` Bastien
2012-09-11  0:23         ` Takaaki ISHIKAWA
2012-09-13  0:25           ` Bastien
2012-09-20 22:42     ` Brian van den Broek
2012-09-21  7:24       ` Bastien
2012-09-21 11:14         ` Brian van den Broek
2011-05-28 12:42 [PATCH] latex export - title placement Sebastian Hofer
2011-05-28 12:59 ` Sebastian Hofer
2011-05-28 17:27 ` Thomas S. Dye
2011-06-01 22:05   ` Nick Dokos
2011-06-01 23:19     ` Thomas S. Dye
2011-06-01 23:55     ` Nick Dokos
2011-06-02  8:36       ` Sebastian Hofer
2011-06-02  8:12     ` Sebastian Hofer
2011-06-02 15:57       ` Nick Dokos
2011-06-02 19:05         ` Sebastian Hofer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CA+SyOP8EEMK7rAD6vtfRZnNev4+gtQm+bJ6kGMZ2GBoQ5eOupg@mail.gmail.com \
    --to=gustav.erik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=wxhgmqzgwmuf@spammotel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).