From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?S=C3=A9bastien_Vauban?= Subject: Re: org-default-notes-file Date: Mon, 18 Oct 2010 23:10:38 +0200 Message-ID: <80k4lf9pgx.fsf@mundaneum.com> References: <4CBBEC97.5000402@dayspringpublisher.com> <878w1wotrh.fsf@noorul.maa.corp.collab.net> <4CBC0BC1.40304@dayspringpublisher.com> <87tykjooja.fsf@noorul.maa.corp.collab.net> <4CBC101F.3020103@dayspringpublisher.com> <87pqv7oo04.fsf@noorul.maa.corp.collab.net> <4CBC192C.1010700@dayspringpublisher.com> <87lj5vom1h.fsf@noorul.maa.corp.collab.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi, Noorul Islam K M wrote: > Louis Turk writes: >> On 10/18/2010 05:20 PM, Noorul Islam K M wrote: >>> Louis Turk 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 n= ot 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 someth= ing 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 twi= ce")) (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 yo= ur .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 --=20 S=C3=A9bastien 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