emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jonathan Leech-Pepin <jonathan.leechpepin@gmail.com>
To: Memnon Anon <gegendosenfleisch@googlemail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Some Experiences with org-babel-load-file
Date: Tue, 11 Dec 2012 12:36:35 -0500	[thread overview]
Message-ID: <CAEWDx5eL7H4R44HtZsgNmsZuhLrx-yEhj9+9hyfQhaUuYb2PHw@mail.gmail.com> (raw)
In-Reply-To: <876248eehe.fsf@mean.albasani.net>

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

Hello

On 11 December 2012 12:01, Memnon Anon <gegendosenfleisch@googlemail.com>wrote:

> Florian Beck <fb@miszellen.de> 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 … and loose 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 <function>` or `M-x
find-function RET <function>` 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

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

      reply	other threads:[~2012-12-11 17:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-10 22:33 Some Experiences with org-babel-load-file Florian Beck
2012-12-11 14:52 ` Eric Schulte
2012-12-11 19:52   ` Florian Beck
2012-12-12  3:35     ` Eric Schulte
2012-12-11 17:01 ` Memnon Anon
2012-12-11 17:36   ` Jonathan Leech-Pepin [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=CAEWDx5eL7H4R44HtZsgNmsZuhLrx-yEhj9+9hyfQhaUuYb2PHw@mail.gmail.com \
    --to=jonathan.leechpepin@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=gegendosenfleisch@googlemail.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).