From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jonathan Leech-Pepin Subject: Re: Some Experiences with org-babel-load-file Date: Tue, 11 Dec 2012 12:36:35 -0500 Message-ID: References: <50C66343.2010202@miszellen.de> <876248eehe.fsf@mean.albasani.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=20cf3074d9d898ae0d04d0971fb8 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:50001) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TiTl2-0005YZ-Mz for emacs-orgmode@gnu.org; Tue, 11 Dec 2012 12:36:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TiTky-0007Jt-B4 for emacs-orgmode@gnu.org; Tue, 11 Dec 2012 12:36:40 -0500 Received: from mail-qc0-f169.google.com ([209.85.216.169]:63298) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TiTky-0007Jn-5A for emacs-orgmode@gnu.org; Tue, 11 Dec 2012 12:36:36 -0500 Received: by mail-qc0-f169.google.com with SMTP id t2so2635044qcq.0 for ; Tue, 11 Dec 2012 09:36:35 -0800 (PST) In-Reply-To: <876248eehe.fsf@mean.albasani.net> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Memnon Anon Cc: emacs-orgmode@gnu.org --20cf3074d9d898ae0d04d0971fb8 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello On 11 December 2012 12:01, Memnon Anon wr= ote: > Florian Beck writes: > > > 1. `org-babel-load-file' doesn't seem to be in the org docu. The > > instructions on worg are obsolete (mentions `org-install') and > > needlessly complicated. Just putting > > > > (package-initialize) ;; only if you use the newest org > > ... and the newest emacs! > > > (require 'ob-tangle) > > (org-babel-load-file "/path/to/your/org-init-file.org") > > > > into your .emacs (no need for .emacs.d/init.el) seems to suffice. > > This is one way to do it, not necessarily the only way. > I don't think a 4 line init.el is that complicated ;). > > > 4. When I babel-load "my-package.org", all emacs sees is the tangled > > "my-package.el", which of course is right. The problem, however, is > > that I often search for one of my functions, change it =E2=80=A6 and lo= ose the > > changes the next time I start emacs (I already got zapped a couple of > > times). Integrating org-tangle with the emacs documentation would be > > tough I guess. But how about setting a read-only file locale variable > > to block the most stupid mistakes? > > How do you change your functions? > If I want to do it, I tinker with them directly in my emacs.org and > evaluate from there or copy the relevant bits to the *scratch* buffer > and bring them back to emacs.org once it works. If the file changed, > the el file gets tangled fresh automatically next time I start emacs and > used right away. > I suspect what he means is that if he uses `C-h f ` or `M-x find-function RET ` it opens the .el associated with the function when he would rather it open the associated .org file (or better yet open the src block for editing) so that the changes can be added without having to look for the correct file (if the functions are split into sub-files based on associated mode/package). I have had this problem before (on minor changes so I found them again easily enough). > I don't really see a problem? > > Memnon > > Regards, -- Jon --20cf3074d9d898ae0d04d0971fb8 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello

On 11 December 2012 12:01, Memnon A= non <gegendosenfleisch@googlemail.com> wrote:=
Florian Beck <fb@mi= szellen.de> writes:

> 1. `org-babel-load-file' doesn't seem to be in the org docu. T= he
> instructions on worg are obsolete (mentions `org-install') and
> needlessly complicated. Just putting
>
> (package-initialize) ;; only if you use the newest org

... and the newest emacs!

> (require 'ob-tangle)
> (org-babel-load-file "/path/to/your/org-init-file.org")
>
> into your .emacs (no need for .emacs.d/init.el) seems to suffice.

This is one way to do it, not necessarily the only way.
I don't think a 4 line init.el is that complicated ;).

> 4. When I babel-load "my-package.org", all emacs sees is the tangled
> "my-package.el", which of course is right. The problem, howe= ver, is
> that I often search for one of my functions, change it =E2=80=A6 and l= oose the
> changes the next time I start emacs (I already got zapped a couple of<= br> > times). Integrating org-tangle with the emacs documentation would be > tough I guess. But how about setting a read-only file locale variable<= br> > to block the most stupid mistakes?

How do you change your functions?
If I want to do it, I tinker with them directly in my emacs.org and
evaluate from there or copy the relevant bits to the *scratch* buffer
and bring them back to emacs= .org once it works. If the file changed,
the el file gets tangled fresh automatically next time I start emacs and used right away.

I suspect what he means is that i= f he uses `C-h f <function>` or `M-x
find-function RET <functio= n>` it opens the .el associated with the
function when he would rathe= r it open the associated .org file (or
better yet open the src block for editing) so that the changes can be
ad= ded without having to look for the correct file (if the functions
are sp= lit into sub-files based on associated mode/package).

I have had thi= s problem before (on minor changes so I found them
again easily enough).


I don't really see a problem?

Memnon

Regards,

--
Jon

--20cf3074d9d898ae0d04d0971fb8--