emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* babel-load problem
@ 2013-08-21 21:43 Fredrik
  2013-08-22  3:13 ` Noorul Islam K M
  0 siblings, 1 reply; 4+ messages in thread
From: Fredrik @ 2013-08-21 21:43 UTC (permalink / raw)
  To: Emacs-orgmode

Any idea on what I am doing wrong? I just want to set up my config to be 
load by babel?

I have my Windows emacs set up with the latest packer for org (20130819) 
and have the following in my .emacs
;; setup orgmode babel
(setq org-babel-load-languages '((emacs-lisp . t)))
(setq org-confirm-babel-evaluate nil)
(require 'org-install)
(require 'org)

;; load orgmode organized config
(org-babel-load-file "~/emacs.org")

This gives me the follwing error :

Debugger entered--Lisp error: (file-error "Cannot open load file" 
"c:/Users/fe/Dropbox/emacs/emacs.el")
   load("c:/Users/fe/Dropbox/emacs/emacs.el" nil nil t)
   load-file("~/emacs.el")
   org-babel-load-file("~/emacs.org")
   eval-buffer(#<buffer  *load*> nil "c:/Users/fe/Dropbox/emacs/.emacs" 
nil t)  ; Reading at buffer position 221
   load-with-code-conversion("c:/Users/fe/Dropbox/emacs/.emacs" 
"c:/Users/fe/Dropbox/emacs/.emacs" t t)
   load("~/.emacs" t t)
   #[0 "\b\205\262

So if I then copy my .emacs to emacs.el instead I get the following error :

Debugger entered--Lisp error: (error "Recursive load" 
"c:/Users/fe/Dropbox/emacs/emacs.el" 
"c:/Users/fe/Dropbox/emacs/emacs.el" 
"c:/Users/fe/Dropbox/emacs/emacs.el" 
"c:/Users/fe/Dropbox/emacs/emacs.el" 
"c:/Users/fe/Dropbox/emacs/emacs.el" "c:/Users/fe/Dropbox/emacs/.emacs")
   load("c:/Users/fe/Dropbox/emacs/emacs.el" nil nil t)
   load-file("~/emacs.el")
   org-babel-load-file("~/emacs.org")
   eval-buffer(#<buffer  *load*-243902> nil 
"c:/Users/fe/Dropbox/emacs/emacs.el" nil t)  ; Reading at buffer 
position 221
   load-with-code-conversion("c:/Users/fe/Dropbox/emacs/emacs.el" 
"c:/Users/fe/Dropbox/emacs/emacs.el" nil nil)
   load("c:/Users/fe/Dropbox/emacs/emacs.el" nil nil t)
   load-file("~/emacs.el")
   org-babel-load-file("~/emacs.org")
   eval-buffer(#<buffer  *load*-842854> nil 
"c:/Users/fe/Dropbox/emacs/emacs.el" nil t)  ; Reading at buffer 
position 221
   load-with-code-conversion("c:/Users/fe/Dropbox/emacs/emacs.el" 
"c:/Users/fe/Dropbox/emacs/emacs.el" nil nil)
   load("c:/Users/fe/Dropbox/emacs/emacs.el" nil nil t)
   load-file("~/emacs.el")
   org-babel-load-file("~/emacs.org")
   eval-buffer(#<buffer  *load*-233523> nil 
"c:/Users/fe/Dropbox/emacs/emacs.el" nil t)  ; Reading at buffer 
position 221
   load-with-code-conversion("c:/Users/fe/Dropbox/emacs/emacs.el" 
"c:/Users/fe/Dropbox/emacs/emacs.el" nil nil)
   load("c:/Users/fe/Dropbox/emacs/emacs.el" nil nil t)
   load-file("~/emacs.el")
   org-babel-load-file("~/emacs.org")
   eval-buffer(#<buffer  *load*-146210> nil 
"c:/Users/fe/Dropbox/emacs/emacs.el" nil t)  ; Reading at buffer 
position 221
   load-with-code-conversion("c:/Users/fe/Dropbox/emacs/emacs.el" 
"c:/Users/fe/Dropbox/emacs/emacs.el" nil nil)
   load("c:/Users/fe/Dropbox/emacs/emacs.el" nil nil t)
   load-file("~/emacs.el")
   org-babel-load-file("~/emacs.org")
   eval-buffer(#<buffer  *load*> nil "c:/Users/fe/Dropbox/emacs/.emacs" 
nil t)  ; Reading at buffer position 221
   load-with-code-conversion("c:/Users/fe/Dropbox/emacs/.emacs" 
"c:/Users/fe/Dropbox/emacs/.emacs" t t)
   load("~/.emacs" t t)
   #[0 "\b\205\262


Any idea on what I am doing wrong? I just want to set up my config to be 
load by babel?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: babel-load problem
  2013-08-21 21:43 babel-load problem Fredrik
@ 2013-08-22  3:13 ` Noorul Islam K M
  2013-08-22  5:08   ` Fredrik
  0 siblings, 1 reply; 4+ messages in thread
From: Noorul Islam K M @ 2013-08-22  3:13 UTC (permalink / raw)
  To: Fredrik; +Cc: Emacs-orgmode

Fredrik <fredrik@jumans.net> writes:

> Any idea on what I am doing wrong? I just want to set up my config to be load by
> babel?
>
> I have my Windows emacs set up with the latest packer for org (20130819) and
> have the following in my .emacs
> ;; setup orgmode babel
> (setq org-babel-load-languages '((emacs-lisp . t)))
> (setq org-confirm-babel-evaluate nil)
> (require 'org-install)
> (require 'org)
>
> ;; load orgmode organized config
> (org-babel-load-file "~/emacs.org")
>
> This gives me the follwing error :
>
> Debugger entered--Lisp error: (file-error "Cannot open load file"
> "c:/Users/fe/Dropbox/emacs/emacs.el")
>   load("c:/Users/fe/Dropbox/emacs/emacs.el" nil nil t)
>   load-file("~/emacs.el")
>   org-babel-load-file("~/emacs.org")
>   eval-buffer(#<buffer  *load*> nil "c:/Users/fe/Dropbox/emacs/.emacs" nil t)  ;
> Reading at buffer position 221
>   load-with-code-conversion("c:/Users/fe/Dropbox/emacs/.emacs"
> "c:/Users/fe/Dropbox/emacs/.emacs" t t)
>   load("~/.emacs" t t)
>   #[0 "\b\205\262
>

In emacs.org, are you trying to load
"c:/Users/fe/Dropbox/emacs/emacs.el" ? or is your $HOME set to
c:/Users/fe/Dropbox/emacs ?

Thanks and Regards
Noorul

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: babel-load problem
  2013-08-22  3:13 ` Noorul Islam K M
@ 2013-08-22  5:08   ` Fredrik
  2013-08-22  6:17     ` Fredrik
  0 siblings, 1 reply; 4+ messages in thread
From: Fredrik @ 2013-08-22  5:08 UTC (permalink / raw)
  To: emacs-orgmode, noorul

My emacs.org is empty so far... But yes my $HOME is set to 
c:/Users/fe/Dropbox/emacs

Regards,

Fredrik

On 2013-08-22 05:13, Noorul Islam K M wrote:
> In emacs.org, are you trying to load 
> "c:/Users/fe/Dropbox/emacs/emacs.el" ? or is your $HOME set to 
> c:/Users/fe/Dropbox/emacs ? Thanks and Regards Noorul 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: babel-load problem
  2013-08-22  5:08   ` Fredrik
@ 2013-08-22  6:17     ` Fredrik
  0 siblings, 0 replies; 4+ messages in thread
From: Fredrik @ 2013-08-22  6:17 UTC (permalink / raw)
  To: emacs-orgmode, noorul

I solved it... but don't really understand why.

I tested changing the name of my org file between .emacs.org and 
emacs.org and changing the loadpath accordingly : (org-babel-load-file 
"~/emacs.org")
And now suddenly it works but only if the file is named emacs.org if I 
add an dot in front of the name I get the same issues as before

On 2013-08-22 07:08, Fredrik wrote:
> My emacs.org is empty so far... But yes my $HOME is set to 
> c:/Users/fe/Dropbox/emacs
>
> Regards,
>
> Fredrik
>
> On 2013-08-22 05:13, Noorul Islam K M wrote:
>> In emacs.org, are you trying to load 
>> "c:/Users/fe/Dropbox/emacs/emacs.el" ? or is your $HOME set to 
>> c:/Users/fe/Dropbox/emacs ? Thanks and Regards Noorul 
>
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-08-22  6:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-21 21:43 babel-load problem Fredrik
2013-08-22  3:13 ` Noorul Islam K M
2013-08-22  5:08   ` Fredrik
2013-08-22  6:17     ` Fredrik

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).