* [PATCH] do not echo variable assignment for octave babel codes
@ 2011-01-13 20:31 Eric S Fraga
0 siblings, 0 replies; only message in thread
From: Eric S Fraga @ 2011-01-13 20:31 UTC (permalink / raw)
To: Emacs Org mode mailing list
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)
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-01-13 20:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-13 20:31 [PATCH] do not echo variable assignment for octave babel codes Eric S Fraga
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.