emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Creating hline in table from source block?


From: Rasmus
Subject: Re: [O] Creating hline in table from source block?
Date: Tue, 26 Nov 2013 09:54:10 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

"Loris Bennett" <address@hidden> writes:

> So Achim's suggestion of using ":results raw" might be the way to go
> (once I've worked out what the sed bit is doing ...)
>
> However, the table will ultimately be around 40000 lines long,
> so from a performance point of view it would be nice not to have to pipe
> the whole thing through sed, particularly as the files are on a remote
> server.  Having said that though, it is not a performance-critical
> application.
>
> So maybe I'll look at Rasmus' simpler suggestion (my lisp skill are
> unfortunately not quite up to the "fun" variant ...)

The "fun" variant works with any table.  You just specify a list of
positions where you want hlines, e.g. '(0 1 last) or '(0 1 -1).

> How complex would the elisp version of my grep and awk above be?  Just
> having one code block would be a little neater from my point of view.

If you use :post you can keep your utility functions in a :noexport:
section at the bottom of your file (or even in a library-of-babel (see
org-babel-lob-ingest)) and you don't litter your code with unnecessary
stuff.  It's also usable across blocks.  

–Rasmus
 
-- 
When the facts change, I change my mind. What do you do, sir?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]