emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Sébastien Vauban" <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: Re: org-default-notes-file
Date: Mon, 18 Oct 2010 23:10:38 +0200	[thread overview]
Message-ID: <80k4lf9pgx.fsf@mundaneum.com> (raw)
In-Reply-To: 87lj5vom1h.fsf@noorul.maa.corp.collab.net

Hi,

Noorul Islam K M wrote:
> Louis Turk <lou-4aqFAYCv5yXPgmLn+eRUI75dPsmED6B0@public.gmane.org> writes:
>>  On 10/18/2010 05:20 PM, Noorul Islam K M wrote:
>>> Louis Turk<lou-4aqFAYCv5yXPgmLn+eRUI75dPsmED6B0@public.gmane.org>  writes:
>>>> GNU Emacs 23.2.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.0) of
>>>> 2010-05-08 on pidsley.hoetzel.info
>>>>
>>>> Org-mode version 6.33x (release_7.01h.718.g0cb3c5.dirty)

Such a mix clearly indicates that:

- you have used some libs from v6.33
- you have a clean working copy of the current Org elsewhere

If you look at your load-path, you will see that your repo is before the Org
directory from the standard Emacs, that what you expect. Though, it seems not
respected...

Reason is you have autoloads that called some libs to be loaded *before* you
properly add the path to your Org WC, and before you explicitly load it.

For example, an s-expr in your diary file, when that one is read, or something
like that.

You can chase such things using my modified version of require:

--8<---------------cut here---------------start------------->8---
        ;; REPLACES ORIGINAL in `C source code' (dumped)
        ;; redefine require to leave a trace of packages being loaded
        (if (not (fboundp 'orig-require))
            (fset 'orig-require (symbol-function 'require))
          (message "The code to redefine `require' should not be loaded twice"))

        (defvar my/require-depth 0)

        (defun require (feature &optional filename noerror)
          "Leave a trace of packages being loaded."
          (cond ((member feature features)
                 (message "%sRequiring `%s' (already loaded)"
                          (concat (make-string (* 2 my/require-depth) ? ) "+-> ")
                          feature))
                (t
                 (message "%sRequiring `%s'"
                          (concat (make-string (* 2 my/require-depth) ? ) "+-> ")
                          feature)
                 (let ((my/require-depth (+ 1 my/require-depth)))
                   (orig-require feature filename noerror))
                 (message "%sRequiring `%s'...done"
                          (concat (make-string (* 2 my/require-depth) ? ) "+-> ")
                          feature)))))
--8<---------------cut here---------------end--------------->8---

With such, you certainly will see that Org is loaded before you think it is,
hence loading the libs that come with the standard distrib of your Emacs.

Solution is to put something similar to this at the earliest possible in your
.emacs:

--8<---------------cut here---------------start------------->8---
      (my/add-to-load-path "~/src/org/" 'with-subdirs 'recursive)
      (when (try-require 'org-install)
--8<---------------cut here---------------end--------------->8---

Note that this is very very tricky...

Best regards,
  Seb

-- 
Sébastien Vauban


_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode-mXXj517/zsQ@public.gmane.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

      parent reply	other threads:[~2010-10-18 21:10 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-18  6:43 org-default-notes-file Louis Turk
2010-10-18  7:16 ` org-default-notes-file Noorul Islam K M
2010-10-18  8:45   ` org-default-notes-file Andreas Röhler
2010-10-18  9:02     ` org-default-notes-file Noorul Islam K M
2010-10-18  9:39       ` org-default-notes-file Andreas Röhler
2010-10-18 11:10         ` org-default-notes-file Louis Turk
2010-10-18 11:54           ` org-default-notes-file Andreas Röhler
2010-10-18 18:16             ` org-default-notes-file David Maus
2010-10-18 18:59               ` Andreas Röhler
2010-10-18 19:18               ` Andreas Röhler
     [not found]   ` <4CBC0BC1.40304@dayspringpublisher.com>
2010-10-18  9:09     ` org-default-notes-file Noorul Islam K M
     [not found]       ` <4CBC101F.3020103@dayspringpublisher.com>
2010-10-18  9:20         ` org-default-notes-file Noorul Islam K M
2010-10-18  9:53           ` org-default-notes-file Louis Turk
2010-10-18 10:03             ` org-default-notes-file Noorul Islam K M
2010-10-18 11:05               ` org-default-notes-file Louis Turk
2010-10-18 11:17                 ` org-default-notes-file Noorul Islam K M
2010-10-18 11:36                   ` org-default-notes-file Louis Turk
2010-10-18 17:28                     ` org-default-notes-file Eric S Fraga
2010-10-18 21:10               ` Sébastien Vauban [this message]

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=80k4lf9pgx.fsf@mundaneum.com \
    --to=wxhgmqzgwmuf-genee64ty+gs+fvcfc7uqw@public.gmane.org \
    --cc=emacs-orgmode-mXXj517/zsQ@public.gmane.org \
    /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).