emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Austin Frank <austin.frank@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Org mode release 6.04
Date: Sun, 25 May 2008 08:41:54 -0400	[thread overview]
Message-ID: <m07idi8sj1.fsf@h-67-102-51-235.mclnva23.covad.net> (raw)
In-Reply-To: E5903951-3CF6-4F0A-B875-A9B6098A5990@uva.nl


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

On Sun, May 25 2008, Carsten Dominik wrote:

> Editing source code example in the proper mode
> ----------------------------------------------
>
> If you are writing a document with source code examples, you can
> include these examples into a `#+BEGIN_SRC lang ... #+END_SRC' or
> (with the org-mtags module loaded) a `<src...' structure.  `lang'
> stands for the Emacs mode used for editing the language, this could be
> `emacs-lisp' for Emacs Lisp mode examples, or `org' for Org mode
> examples.  You can now use the key "C-c '" (that is C-c followed by
> the single quote) to edit the example in its native mode.  This works
> by creating an indirect buffer, narrowing it to the example and
> setting the appropriate mode.  You need to exit editing by killing
> that indirect buffer, with `C-x k'.  This is important, because lines
> that have syntactic meaning in Org will be quoted when the indirect
> buffer is killed.

Carsten--

This is a phenomenally exciting addition.  Combining this with the
htmlized code examples in html export, and the option for \LaTeX export,
org has clearly just vaulted past the rest of the field for literate
programming.  Expect a tutorial from me in the next few weeks about
using org with RWeave (the R variant of SWeave).  This will be a
fantastic way to write articles that include statistical analyses and
figures.

That said, don't be surprised if by opening this door you end up with
some new feature requests from me :)  One addition that I can already
see being interested in is the evaluation of embedded code before
export, so that the results of the code are included along with the
source.  Obviously, there are security issues here that will need to be
thought about, but I'd like to see if we could make this work.

Greedy feature requests aside, this is very, very cool.

> I guess it would be nice to exit with `C-c C-c', but who knows what
> this key is supposed to do in a random mode.

I can tell you now that C-c C-c is almost as overloaded in R-mode (from
the package ESS) as it is in org-mode, and I will want it to have its
R-mode interpretation while I edit R code.  While I'm writing, I'll try
to keep an eye out for sensible ways of jumping out of coding mode and
back to org-mode.

Thanks for this release!
/au

-- 
Austin Frank
http://aufrank.net
GPG Public Key (D7398C2F): http://aufrank.net/personal.asc

[-- Attachment #1.2: Type: application/pgp-signature, Size: 193 bytes --]

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

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

  reply	other threads:[~2008-05-25 12:41 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-25  7:31 Org mode release 6.04 Carsten Dominik
2008-05-25 12:41 ` Austin Frank [this message]
2008-05-25 21:57   ` Shelagh Manton
2008-05-26  7:43     ` Shelagh Manton
2008-05-26 10:36       ` Daniel Clemente
2008-05-25 15:58 ` Leo
2008-05-27 22:00   ` Adam Spiers
2008-05-26 10:44 ` Daniel Clemente
2008-05-27  6:26   ` Carsten Dominik
2008-05-28  4:01 ` Levin Du
2008-05-28  4:36   ` Carsten Dominik
2008-05-28  6:34     ` Levin Du
2008-05-28  8:35       ` Carsten Dominik

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=m07idi8sj1.fsf@h-67-102-51-235.mclnva23.covad.net \
    --to=austin.frank@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).