from a core which is as
composed of a small number of orthogonal working pieces. This maximizes
flexibility and utility with a minimum of maintenance and implementation
overhead.
Cheers,
Regards, Shripad.
Shripad
Tucson, AZ
On Wed, Mar 13, 2013 at 8:08 AM, Eric Schulte schulte.e
Achim Gratz strom...@nexgo.de writes:
Eric Schulte writes:
From re-looking at Achim's previous noweb example, it seems that we
currently do *not* include the values of noweb expansions in code block
hash calculations, I think this is a bug which should be fixed.
It could very well have been
Aaron Ecay aarone...@gmail.com writes:
Hi Eric,
2013ko martxoak 9an, Eric Schulte-ek idatzi zuen:
Could something like the following work? Removing :results none and
adding something small as the returned result which may easily be parsed
and placed in the buffer w/o problem
be missing?
Thanks,
--
Eric Schulte
http://cs.unm.edu/~eschulte
--
Eric Schulte
http://cs.unm.edu/~eschulte
system to hand results back and forth, and when the R session
refers to a remote file system, this communication fails.
One possible solution would be to use the :dir header argument to
specify to the code block the machine on which the execution is taking
place.
Best,
best,
Thomas
--
Eric
/README.html#pipe-tables
Just throwing out ideas, I don't personally use the markdown export.
Best,
--
Eric Schulte
http://cs.unm.edu/~eschulte
execution.
#+begin_src sh :dir /ssh:tortilla:/tmp/
hostname
#+end_src
#+RESULTS:
: tortilla
--
Eric Schulte
http://cs.unm.edu/~eschulte
Xavier Maillard xav...@maillard.im writes:
Eric Schulte schulte.e...@gmail.com writes:
Xavier Maillard xav...@maillard.im writes:
[ SNIP ]
Today, I tried to use org-babel for the first time with thing like that:
#+begin_src sh
echo $ORACLE_SID
#+end_src
My goal is to execute
that are within the block. Is there a
trick I can use here?
I'm using the org mode into Emacs 24.2.1.
Thanks,
Luca
Hi Luca,
Your example exports without problem with the latest version of
Org-mode.
Best,
--
Eric Schulte
http://cs.unm.edu/~eschulte
claims will prove a fruitful means
to that end.
Cheers,
Footnotes:
[1] http://en.wikipedia.org/wiki/Fear,_uncertainty_and_doubt
--
Eric Schulte
http://cs.unm.edu/~eschulte
before all variables
| as shown in the example below.
|
| | 1 | 2 | :file nothing.png | nothing.png |
| #+TBLFM: @1$4='(sbe test-sbe $3 (x $1) (y $2))
|
| [back]
`
--
Eric Schulte
http://cs.unm.edu/~eschulte
2196096cdecde82c9af8695422ae3f6c5fa42ff1 Mon Sep 17 00:00:00 2001
From: Eric Schulte schulte.e...@gmail.com
Date: Sun, 10 Mar 2013 15:34:56 -0600
Subject: [PATCH] don't read sqlite output as lisp
Thanks to Michael Gauland for pointing out this bug.
* lisp/ob-sqlite.el (org-babel-sqlite-table-or-scalar
I've now committed this patch.
--
Eric Schulte
http://cs.unm.edu/~eschulte
aarone...@gmail.com writes:
2013ko martxoak 8an, Eric Schulte-ek idatzi zuen:
I would agree. I don't believe *any* changes should take place in the
buffer when a code block is executed with :results none.
A common use case for me is to use a babel block to load a large dataset
into R. I
Achim Gratz strom...@nexgo.de writes:
Eric Schulte writes:
I prefer leaving the hash with the results, as it is the results which
are hashed. Also, same input does not always guarantee same output,
e.g.,
#+begin_src sh
date
#+end_src
That's not what I'm seeing, but I may be missing
to perform side effect
x - 'side effect'
'done'
#+end_src
#+RESULTS[da16f09882a6295815db51247592b77c80ed0056]:
: done
Best,
--
Eric Schulte
http://cs.unm.edu/~eschulte
--
Eric Schulte
http://cs.unm.edu/~eschulte
with the results, as it is the results which
are hashed. Also, same input does not always guarantee same output,
e.g.,
#+begin_src sh
date
#+end_src
Regards,
Achim.
--
Eric Schulte
http://cs.unm.edu/~eschulte
)))
(setq result
((lambda (result)
(if (and (eq (cdr (assoc :result-type params))
'value)
--
1.8.1.5
--
Eric Schulte
http://cs.unm.edu/~eschulte
Jay Kerns gjkerns...@gmail.com writes:
Dear Eric,
On Sun, Mar 3, 2013 at 2:05 PM, Eric Schulte schulte.e...@gmail.com wrote:
Hi Jay,
Having read through intro-julia.org and scanned ob-julia.el I have to
say this looks great. Thanks for sharing!
I should be saying Thanks to you! Org
(cdr (assoc src-lang blocks)))
(setq blocks (delq (assoc src-lang blocks) blocks))
--
Eric Schulte
http://cs.unm.edu/~eschulte
/languages.html
--
Eric Schulte
http://cs.unm.edu/~eschulte
odd...
I can work around this problem by changing the color-theme in my Emacs
buffer before exporting, but is there a better solution?
Thanks.
Richard Stanton
See the documentation of the `org-export-htmlize-output-type' variable.
--
Eric Schulte
http://cs.unm.edu/~eschulte
#+RESULTS:
#+BEGIN_HTML
table
ba /b
/table
#+END_HTML
thanks again for the explanation,
--
Eric Schulte
http://cs.unm.edu/~eschulte
of examples for Perl that
could help people who want to use it.
Also a few tests would be highly welcome.
+1
Cheers,
Regards,
Achim.
--
Eric Schulte
http://cs.unm.edu/~eschulte
:
| 1 |
| 2 |
||
| 3 |
| 4 |
| 5 |
| 6 |
| 7 |
| 8 |
| 9 |
| 10 |
Hope this helps,
Footnotes:
[1] http://orgmode.org/manual/hlines.html
--
Eric Schulte
http://cs.unm.edu/~eschulte
no function outside structure elements
However, orgstruct should (and used to) just pass this key combo through
to the underlying major mode.
This is new behavior as of the last couple of weeks.
Cheers,
--
Eric Schulte
http://cs.unm.edu/~eschulte
)))
(setq binding (read-kbd-macro (replace-regexp-in-string
This is new behavior as of the last couple of weeks.
That's my fault. I am sorry.
No problem, thanks for the quick fix!
Christopher
--
Eric Schulte
http://cs.unm.edu/~eschulte
/csspre{background:#232323;
color:#E6E1DC;}h1,h2{border-bottom-style: solid; border-bottom-color:
gray;}/style
Please let me know if I can provide any more information.
Thanks,
--
Eric Schulte
http://cs.unm.edu/~eschulte
Alan Schmitt alan.schm...@polytechnique.org writes:
Hi Eric,
Eric Schulte writes:
The suggestion: instead of appending 'org-babel-ocaml-eoe;;' to the
code, how simply put ';;' (which will make sure everything is flushed)
then detect the toplevel is done by seeing the string
-update-radio-target-regexp)
--
1.7.10.4
--
Eric Schulte
http://cs.unm.edu/~eschulte
Alan Schmitt alan.schm...@polytechnique.org writes:
Hello,
Eric Schulte writes:
Thanks for looking into this. I've applied a patch to ob-ocaml.el which
should handle the two different tuareg execution functions.
Thanks a lot.
About the thing getting stuck, I made some progress. My
is not required your example could be
converted to the (arguably preferable) example below.
#+begin_src latex :file foo.pdf :results raw
...some text...
#+end_src
#+RESULTS:
[[file:foo.pdf]]
Cheers,
--
Eric Schulte
http://cs.unm.edu/~eschulte
.
Not sure why? Is this just a function of the number of lines of the text?
Yes, this is a function of the number of lines in the output text. You
can control where this switch is made by changing the value of
org-babel-min-lines-for-block-output.
Best,
--
Eric Schulte
http://cs.unm.edu/~eschulte
by
running `eval-defun' on these functions with a prefix argument, or
equivalently doing M-: (eval-defun t).
I would guess this is due to a change in tuareg mode.
--
Eric Schulte
http://cs.unm.edu/~eschulte
:Error: Symbol's value as variable is void: org-ts-regexp
Done (Total of 9 files compiled, 101 failed, 3 skipped)
Scrolling through the many errors, all appear to complain about
org-ts-regexp.
Did I miss a step?
All the best,
Tom
--
Eric Schulte
http://cs.unm.edu/~eschulte
? Or some kind of macro I
can use to tidy up my sql blocks?
(I'm running recent git org-mode from a couple of weeks ago, Emacs
24.3.50.1, Windows)
You could customize the `org-babel-default-header-args:sql' variable.
Cheers,
--
Eric Schulte
http://cs.unm.edu/~eschulte
for the database connection, and
implements them for mysql
* (minor) adds an edebug spec to org-babel-result-cond to allow
edebugging through it
--
Gary
Footnotes:
[1] http://orgmode.org/worg/org-contribute.html
--
Eric Schulte
http://cs.unm.edu/~eschulte
)... but I'd say this is a very specific
need, and it can be fulfilled by asking the code to insert a timestamp
into the exported results, right?
See for e.g.:
#+BEGIN_SRC emacs-lisp :results raw
(message ;; %s (format-time-string (cdr org-time-stamp-custom-formats)))
#+END_SRC
HTH,
--
--
Eric
Nicolas Goaziou n.goaz...@gmail.com writes:
Hello,
Eric Schulte schulte.e...@gmail.com writes:
I've just pushed this functionality up to the main branch. To make use
of it add the following to your Emacs config.
(setq org-babel-hash-show-time t)
It works for me in some simple tests
Bastien b...@altern.org writes:
Hi Eric,
Eric Schulte schulte.e...@gmail.com writes:
I've just pushed this functionality up to the main branch. To make use
of it add the following to your Emacs config.
(setq org-babel-hash-show-time t)
Well, the patch breaks master, because
: line only the second
block is tangled, so it appears everything is working as expected.
Best,
--
Eric Schulte
http://cs.unm.edu/~eschulte
-529-0884
.http://www.tsdye.com
--
Eric Schulte
http://cs.unm.edu/~eschulte
)
Remove duplicate elements from LIST.
(let (res)
--
1.7.10.4
--
Eric Schulte
http://cs.unm.edu/~eschulte
so it appears everything is working as expected.
Not so fast, if I try to tangle each block separately C-u C-c C-v t then
the one with #+headers: doesn't tangle and there is the message:
tangled 0 code blocks from x.org
I just pushed up a fix. Thanks for finding this bug.
--
Eric
.
emacs --eval (add-to-list 'load-path \~/src/org-mode/lisp/\)
This may be simplified with a command line alias like the following.
alias emacs=emacs --eval '(add-to-list (quote load-path)
\~/src/org-mode/lisp/\)'
When I find time I plan to add this to the starter-kit documentation.
--
Eric
Thorsten Jolitz tjol...@googlemail.com writes:
Eric Schulte schulte.e...@gmail.com writes:
If you are using the starter-kit, then Org-mode is required as the first
step of your Emacs initialization. This is necessary so that the
`org-babel-load-file' function can be used to load your
think the attached change to the home page would be
helpful for those who want to get started quickly.
From 783ea172b6a89ef5022f41f6cc3936dce522bab5 Mon Sep 17 00:00:00 2001
From: Eric Schulte schulte.e...@gmail.com
Date: Fri, 11 Jan 2013 08:36:12 -0700
Subject: [PATCH] quick activation instructions
.
At the least perhaps such load/require mechanisms should be extracted
into a separate library with no Org-mode specific code. Then Org-mode
could make use of these libraries, but so could other large systems
distributed with Emacs but developed independently (e.g., gnus).
Best,
--
Eric Schulte
http
. If it doesn't complicate the compatibility macro too
much this can be added later.
--
Eric Schulte
http://cs.unm.edu/~eschulte
Nope,
Even with the addition of that autoload statement I get the same error
let: Symbol's function definition is void: org-load-noerror-mustsuffix
Best,
Bastien b...@altern.org writes:
Hi Eric,
Eric Schulte schulte.e...@gmail.com writes:
Recently my Emacs start up fails when I
Bastien b...@altern.org writes:
Eric Schulte schulte.e...@gmail.com writes:
Even with the addition of that autoload statement I get the same error
let: Symbol's function definition is void:
org-load-noerror-mustsuffix
Do you have any Org function called before (require 'org)?
`org
Nick Dokos nicholas.do...@hp.com writes:
Eric Schulte schulte.e...@gmail.com wrote:
Bastien b...@altern.org writes:
Eric Schulte schulte.e...@gmail.com writes:
Even with the addition of that autoload statement I get the same error
let: Symbol's function definition is void
for automating this
(while I investigate inotify suggested by Jambunathan).
--
Darlan
At Wed, 09 Jan 2013 22:10:37 -0700,
Eric Schulte wrote:
#+Title: Periodically Rerun a Code Block
Here's the lisp code to define a function to continually re-run a code
block. Evaluate the following
Bastien b...@altern.org writes:
Hi Eric,
Eric Schulte schulte.e...@gmail.com writes:
If this problem is specific to my situation I'm happy to ignore it until
I can update my elpa version of Org-mode to a newer one. Alternately I
could just remove my ELPA install of Org-mode
,
--
Eric Schulte
http://cs.unm.edu/~eschulte
Eric Schulte schulte.e...@gmail.com writes:
Bastien b...@altern.org writes:
Does your emacs fail if you simply point to the correct load path?
I.e. a one-line init.el with this:
(add-to-list 'load-path ~/.emacs.d/src/org-mode/lisp/)
?
Excellent, that does indeed work, I should have
Achim Gratz strom...@nexgo.de writes:
Eric Schulte writes:
This is done I now have no Org packages in my ELPA. However I *still*
can't use any version of Org-mode post the 5484a33b commit. For the
simplest possible reproduction instructions, try the following.
1. mv your init.el
Bastien b...@altern.org writes:
Hi Eric,
Eric Schulte schulte.e...@gmail.com writes:
Retracted. This only works because,
(add-to-list 'load-path ~/.emacs.d/src/org-mode/lisp/)
(require 'org)
Does not in fact load up the newest version of Org-mode.
How did you check?
You don't
Achim Gratz strom...@nexgo.de writes:
Eric Schulte writes:
I added a note to the manual. Thanks for double-checking.
Thanks. Did I understand correctly that the same also happens for the
:rownames argument
I just checked this and yes, elisp ignores :rownames as well.
and should
-runners)
#+end_src
--
Eric Schulte
http://cs.unm.edu/~eschulte
for remote execution?
--
Eric Schulte
http://cs.unm.edu/~eschulte
(index){
--
Eric Schulte
http://cs.unm.edu/~eschulte
I found the need to write this today, figured I'd share on the off
chance anyone else has a need for this sort of script.
txt2org --- convert tab-separated data to org-mode tables
http://orgmode.org/worg/org-hacks.html#sec-3-4
Cheers,
--
Eric Schulte
http://cs.unm.edu/~eschulte
Jambunathan K kjambunat...@gmail.com writes:
Eric Schulte schulte.e...@gmail.com writes:
I found the need to write this today, figured I'd share on the off
chance anyone else has a need for this sort of script.
txt2org --- convert tab-separated data to org-mode tables
http
in the documentation (if it isn't I agree that it should
be).
--
Eric Schulte
http://cs.unm.edu/~eschulte
Achim Gratz strom...@nexgo.de writes:
Eric Schulte writes:
This is a relic from the early days of Babel. I believe it is
mentioned in the documentation (if it isn't I agree that it should
be).
Not that I can find, neither in the manual nor Worg (I've looked again).
I added a note
):
Always escape produced blocks, independently on the language of the
block, if any. Use new functions.
* doc/org.texi: Update documentation.
* testing/lisp/test-ob.el: Update test.
--
Eric Schulte
http://cs.unm.edu/~eschulte
Achim Gratz strom...@nexgo.de writes:
Eric Schulte writes:
The starter kit does not run through the Org files each time, rather
it tangles the .org files to .el files, and then on all subsequent loads
it loads directly from the .el files (unless the .org file is newer).
So why does it need
Stelian Iancu li...@siancu.net writes:
On Sat, Jan 5, 2013 at 7:51 PM, Eric Schulte schulte.e...@gmail.com wrote:
That sounds like it should work, although I would go with the more
complete but possibly overkill
;; emacs-lisp
(package-initialize)
(require 'org)
(org
Achim Gratz strom...@nexgo.de writes:
Eric Schulte writes:
Because the above sequence of loading .el files and possibly falling
back to .org files is all performed by the `org-babel-load-file'
function, which is not defined until org has been required.
Which confirms it runs through the Org
problems as possible now, please let
me know if any issues persist.
Cheers,
--
Eric Schulte
http://cs.unm.edu/~eschulte
it.
Best,
From cf2128fb320f714f78fa54b953405d01fa73bf33 Mon Sep 17 00:00:00 2001
From: Eric Schulte eric.schu...@gmx.com
Date: Fri, 28 Dec 2012 08:20:56 -0700
Subject: [PATCH] Pass the dir option on through org-export-as-string
* lisp/org-exp.el (org-export-string): Pass the dir option on through
-mode file. Be forewarned
that it may create many top level bibtex entries.
Hope this helps,
--
Eric Schulte
http://cs.unm.edu/~eschulte
arrays is being used on the remote
systems. Have you tried setting either the `org-babel-sh-command' or
adding a :shebang header argument to the code blocks to force the
execution to use bash?
Hope this helps,
--
Eric Schulte
http://cs.unm.edu/~eschulte
)
eval-expression((load-file rudel-loaddefs.el) nil)
call-interactively(eval-expression nil nil)
[2] (rudel-add-backend (rudel-backend-get-factory 'protocol) 'infinote
'rudel-infinote-backend)
--
Eric Schulte
http://cs.unm.edu/~eschulte
design the way I wanted it.
Ian.
Looks like you're the victim of two small typos.
The following works for me.
* Letter.
:PROPERTIES:
:first_name: Ian
:last_name: Barton
:END:
#+begin_src latex :var last_name=(org-entry-get nil last_name)
My last name is last_name.
#+end_src
--
Eric Schulte
in the code, but
resulting in smaller and arguably more meaningfully classed/tagged HTML
files.
Just a thought,
--
Eric Schulte
http://cs.unm.edu/~eschulte
for the report!
--
Eric Schulte
http://cs.unm.edu/~eschulte
Bastien b...@altern.org writes:
Eric Schulte schulte.e...@gmail.com writes:
This patch doesn't apply for me with git am to the HEAD of the repo so
I can't test it directly
Please try this new one against current db51b8 commit in master.
This patch is still broken
org-mode$ git
Bastien b...@altern.org writes:
Eric Schulte schulte.e...@gmail.com writes:
This patch is still broken
(I don't know why ~$ git format-patch master did not produce an
applicable patch.)
These three ones are applicable against master/68d4de2.
Bare in mind this is just meant as a proof
.
#+end_src
--
Eric Schulte
http://cs.unm.edu/~eschulte
Bastien b...@altern.org writes:
Hi Eric,
Eric Schulte schulte.e...@gmail.com writes:
If you can find a cleaner alternative I'll be happy to help you
apply it.
Here is a very crude patch for paving the way to a better solution.
This patch doesn't apply for me with git am to the HEAD
Bastien b...@altern.org writes:
Hi Eric,
Eric Schulte schulte.e...@gmail.com writes:
Please let me know if I can explain anything, or if you'd like to see
the patches before the hit the master branch.
I've read the thread carefully and I cannot clearly see what problem
we are trying
Bastien b...@altern.org writes:
Eric Schulte schulte.e...@gmail.com writes:
Here's what the require structure of the core ob files will
look like after this change.
If i read the graph correctly, merging ob.el ob-eval.el and
ob-core.el will not create circular requires -- am I right
Lisp begins to provide support for
proper modules.
Cheers,
--
Eric Schulte
http://cs.unm.edu/~eschulte
Florian Beck f...@miszellen.de writes:
On 12/11/2012 03:52 PM, Eric Schulte wrote:
Please go ahead and update the information on worg. Note that Emacs24
users need only do
(require 'org)
(org-babel-load-file /path/to/your/org-init-file.org)
while users of lesser Emacs
Bastien b...@altern.org writes:
Eric Schulte schulte.e...@gmail.com writes:
In the absence of better ideas, I'm going to go ahead with this
refactoring.
Okay, go ahead. But be warned that ob-core.el is not my friend :)
:)
I'll see how we can get rid of it.
If you can find a cleaner
flav flav.justf...@gmail.com writes:
Le 10/12/2012 18:24, Eric Schulte a écrit :
1. make sure you're using a recent version of Org-mode, either the
latest release or from git, see
http://orgmode.org/worg/org-faq.html#Keeping-current
2. start Emacs with the -Q flag (to ensure
this should be the default behavior
for all tangled files (not just those written by org-babel-load-file).
Thanks,
Overall, very nice. Thank you.
--
Eric Schulte
http://cs.unm.edu/~eschulte
these
things explicitly to the language functions to appease the compiler.
I'd like to apply this patch, however the format is not detected by git
am. Could you re-generate this patch using git format-patch and attach
the resulting file?
Thanks,
--
Eric Schulte
http://cs.unm.edu/~eschulte
Achim Gratz strom...@nexgo.de writes:
This avoids a byte-compiler warning and makes these customizations
easier to find.
Again, could you send a git format-patch version of this patch?
Then I will apply it.
Thanks.
--
Eric Schulte
http://cs.unm.edu/~eschulte
Bastien b...@altern.org writes:
Hi Eric,
Eric Schulte schulte.e...@gmail.com writes:
I'm attaching two patches which implement this new require structure.
They move ob.el - ob-core.el. The new ob.el (which is now loaded by
every file which requires 'ob) does two things.
I'm slowly
Achim Gratz strom...@nexgo.de writes:
Eric Schulte writes:
I'd like to apply this patch, however the format is not detected by git
am. Could you re-generate this patch using git format-patch and attach
the resulting file?
Here it is:
Much Obliged,
I'll push this up when next I push
-load-languages
'((perl . t)))
--
Eric Schulte
http://cs.unm.edu/~eschulte
Alan Schmitt alan.schm...@polytechnique.org writes:
Sebastien Vauban wxhgmqzgw...@spammotel.com writes:
In a hurry, to repeat the code:
- use named blocks
- use Noweb expansion
Another option would be,
1. use named blocks
2. use call lines
--
Eric Schulte
http://cs.unm.edu/~eschulte
Achim Gratz strom...@nexgo.de writes:
Eric Schulte writes:
See http://orgmode.org/manual/Languages.html for the documentation on
how to activate and disable org-babel languages.
That actually produces the error:
File mode specification error: (void-variable org-babel-tangle-lang-exts
(~/.emacs t t)
#[nil ^H\205\264^@ \306=\203^Q^@\307^H\310Q\2027^@
\311=\2033^@\312\307\31$
command-line()
normal-top-level()
2012/12/10 Eric Schulte schulte.e...@gmail.com
(org-babel-do-load-languages
'org-babel-load-languages
'((perl . t)))
--
Eric Schulte
http
writes:
I am sorry for my misunderstood but
I put (require 'org) in my .emacs and there is no change.
2012/12/10 Eric Schulte schulte.e...@gmail.com
As I mentioned in my previous message you have to require Org-mode
before executing the following snippet. Try
(require 'org)
(org
701 - 800 of 2930 matches
Mail list logo