[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] [PATCH] do not echo variable assignment for octave babel codes
From: |
Eric S Fraga |
Subject: |
[Orgmode] [PATCH] do not echo variable assignment for octave babel codes |
Date: |
Thu, 13 Jan 2011 20:31:29 +0000 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux) |
Hello,
when using babel with octave code, passing variables with the =:var=
header argument creates octave code whose results are echoed onto
standard out. This is not necessarily wanted. The default behaviour, I
believe, should be to not echo anything out as the user can always
simply print out the variable in the code if desired.
The following patch simply adds a semi-colon (;) to the appropriate
place:
--8<---------------cut here---------------start------------->8---
diff --git a/lisp/ob-octave.el b/lisp/ob-octave.el
index 92f16be..d46d648 100644
--- a/lisp/ob-octave.el
+++ b/lisp/ob-octave.el
@@ -103,7 +103,7 @@ end")
"Return list of octave statements assigning the block's variables"
(mapcar
(lambda (pair)
- (format "%s=%s"
+ (format "%s=%s;"
(car pair)
(org-babel-octave-var-to-octave (cdr pair))))
(mapcar #'cdr (org-babel-get-header params :var))))
--8<---------------cut here---------------end--------------->8---
Thanks,
eric
--
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1
: using Org-mode version 7.4 (release_7.4.170.gbc841.dirty)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Orgmode] [PATCH] do not echo variable assignment for octave babel codes,
Eric S Fraga <=