aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/org/ob-gnuplot.el
diff options
context:
space:
mode:
authorJoakim Verona2012-01-09 11:26:23 +0100
committerJoakim Verona2012-01-09 11:26:23 +0100
commite4f761f1e3df7fbc7793c73c5d808b8da0b3a700 (patch)
tree4bdf869626ac37c6a5a1fd5764a9c8481136d805 /lisp/org/ob-gnuplot.el
parent2f74c36bf173b5ad01f99e0d1b31b9b8fa5c8f2f (diff)
parent7655cb66d86564e792b825f1a0e1a4de7d6e6db5 (diff)
downloademacs-e4f761f1e3df7fbc7793c73c5d808b8da0b3a700.tar.gz
emacs-e4f761f1e3df7fbc7793c73c5d808b8da0b3a700.zip
upstream
Diffstat (limited to 'lisp/org/ob-gnuplot.el')
-rw-r--r--lisp/org/ob-gnuplot.el10
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/org/ob-gnuplot.el b/lisp/org/ob-gnuplot.el
index 9bf0433f9fc..5d07366e774 100644
--- a/lisp/org/ob-gnuplot.el
+++ b/lisp/org/ob-gnuplot.el
@@ -1,11 +1,10 @@
1;;; ob-gnuplot.el --- org-babel functions for gnuplot evaluation 1;;; ob-gnuplot.el --- org-babel functions for gnuplot evaluation
2 2
3;; Copyright (C) 2009-2011 Free Software Foundation, Inc. 3;; Copyright (C) 2009-2012 Free Software Foundation, Inc.
4 4
5;; Author: Eric Schulte 5;; Author: Eric Schulte
6;; Keywords: literate programming, reproducible research 6;; Keywords: literate programming, reproducible research
7;; Homepage: http://orgmode.org 7;; Homepage: http://orgmode.org
8;; Version: 7.7
9 8
10;; This file is part of GNU Emacs. 9;; This file is part of GNU Emacs.
11 10
@@ -35,7 +34,7 @@
35;;; Requirements: 34;;; Requirements:
36 35
37;; - gnuplot :: http://www.gnuplot.info/ 36;; - gnuplot :: http://www.gnuplot.info/
38;; 37;;
39;; - gnuplot-mode :: http://cars9.uchicago.edu/~ravel/software/gnuplot-mode.html 38;; - gnuplot-mode :: http://cars9.uchicago.edu/~ravel/software/gnuplot-mode.html
40 39
41;;; Code: 40;;; Code:
@@ -149,7 +148,10 @@ This function is called by `org-babel-execute-src-block'."
149 (shell-command-to-string 148 (shell-command-to-string
150 (format 149 (format
151 "gnuplot \"%s\"" 150 "gnuplot \"%s\""
152 (org-babel-process-file-name script-file)))) 151 (org-babel-process-file-name
152 script-file
153 (if (member system-type '(cygwin windows-nt ms-dos))
154 t nil)))))
153 (message output)) 155 (message output))
154 (with-temp-buffer 156 (with-temp-buffer
155 (insert (concat body "\n")) 157 (insert (concat body "\n"))