diff options
Diffstat (limited to 'lisp/org/ob-gnuplot.el')
| -rw-r--r-- | lisp/org/ob-gnuplot.el | 10 |
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")) |