emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ido Magal <ido@idomagal.com>
To: Eric Schulte <schulte.eric@gmail.com>
Cc: emacs-orgmode@gnu.org, Rainer M Krug <r.m.krug@gmail.com>
Subject: Re: Embedded code
Date: Tue, 18 Jan 2011 09:12:58 -0800	[thread overview]
Message-ID: <AANLkTiktag-85wOYPROR8AwOwec--BxjpijQAHgMsgZr@mail.gmail.com> (raw)
In-Reply-To: <8762tmfa74.fsf@gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1893 bytes --]

Eric,

thanks.  This is great.

Couple of followups:

1. Is it possible to avoid the confirmations on every file load?
2. Is it possible to manipulate or reference the results so that they're not
bound to a RESULTS block.  I'm finding all of the blocks of orgmode
distracting and I'm trying to avoid and eliminate them as much as possible.
 I'm not used to it and they really impedes the readability of my notes.
 Ideally my notes would look something like this:

* note 1
* note 2

* Back-links to this note:
(backlinks-function)
* All notes tagged with /foo/
(tagged-with( foo ))
* All notes tagged with /bar/
(tagged-with( bar ))

Is this possible?

Thanks again.  Cheers.


On Tue, Jan 18, 2011 at 08:16, Eric Schulte <schulte.eric@gmail.com> wrote:

> Rainer M Krug <r.m.krug@gmail.com> writes:
>
> > On 01/18/2011 12:48 AM, Eric Schulte wrote:
> >> Hi,
> >>
> >> This is possible using Babel, the attached org-mode file will execute
> >> its code block every time it is opened.  You can replace the contents of
> >> the code block with any arbitrary elisp you would like to have executed
> >> in the file.
> >>
> >> To see this work, save the attached org-mode file to your system, open
> >> the file, answer "y" to allow execution, and then check your messages
> >> buffer for the "I have been run" message to see that the code block has
> >> in fact been evaluated.
> >
> > This is indeed very useful (e.g. if I open an R script, to open an R
> > session and source the file).
> >
> > But it seems that all code blocks are evaluated on loading. Is there a
> > way of only executing a specific code block?
> >
>
> Yes, replace the
>
> # -*- eval: (org-babel-execute-buffer) -*-
>
> with
>
> # -*- eval: (save-excursion (org-babel-goto-named-src-block NAME)
> (org-babel-execute-src-block)) -*-
>
> where NAME is replaced with the name of the code block to execute.
>
> Cheers -- Eric
>

[-- Attachment #1.2: Type: text/html, Size: 2703 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

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

  parent reply	other threads:[~2011-01-18 17:21 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-17 16:06 Embedded code Ido Magal
2011-01-17 22:01 ` Ido Magal
2011-01-17 23:48   ` Eric Schulte
2011-01-18  8:51     ` Rainer M Krug
2011-01-18 16:16       ` Eric Schulte
2011-01-18 16:44         ` Rainer M Krug
2011-01-18 17:12         ` Ido Magal [this message]
2011-01-18 18:35           ` Nick Dokos
2011-01-18 20:42           ` Eric Schulte
2011-01-19  6:46             ` Ido Magal
2011-01-21  3:54               ` Ido Magal
2011-01-22  2:05                 ` Eric Schulte
2011-01-22  2:10                   ` Ido Magal
2011-01-25  4:41                   ` Ido Magal
2011-01-25 17:16                     ` Eric Schulte
2011-01-26  4:44                       ` Ido Magal
2011-01-26  4:54                         ` Eric Schulte
2011-01-27 20:45                           ` Ido Magal
2011-01-26  9:41                         ` Sébastien Vauban
2011-01-27 22:51                           ` Eric Schulte
2011-02-04  6:52                   ` Ido Magal
2011-02-04 20:35                     ` Eric Schulte
2011-01-19 23:54         ` Dan Davison

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=AANLkTiktag-85wOYPROR8AwOwec--BxjpijQAHgMsgZr@mail.gmail.com \
    --to=ido@idomagal.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=r.m.krug@gmail.com \
    --cc=schulte.eric@gmail.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).