From mboxrd@z Thu Jan 1 00:00:00 1970 From: gregory@dynapse.com (Gregory J. Grubbs) Subject: [PATCH] Quote path argument in ob-ditaa Date: Sat, 17 Jul 2010 22:01:24 -0600 Message-ID: <878w59a163.fsf@dynapse.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=58221 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OaL4K-0006TY-Mw for emacs-orgmode@gnu.org; Sun, 18 Jul 2010 00:01:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OaL4J-0006Lm-Ne for emacs-orgmode@gnu.org; Sun, 18 Jul 2010 00:01:36 -0400 Received: from lo.gmane.org ([80.91.229.12]:37574) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OaL4J-0006LR-I5 for emacs-orgmode@gnu.org; Sun, 18 Jul 2010 00:01:35 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OaL4I-0007fl-6e for emacs-orgmode@gnu.org; Sun, 18 Jul 2010 06:01:34 +0200 Received: from 72.42.83.66 ([72.42.83.66]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 18 Jul 2010 06:01:34 +0200 Received: from gregory by 72.42.83.66 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 18 Jul 2010 06:01:34 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Patch fixes ob-ditaa for paths that contain spaces and other shell-interpreted characters. diff --git a/lisp/ob-ditaa.el b/lisp/ob-ditaa.el index 1f56d12..cc06246 100644 --- a/lisp/ob-ditaa.el +++ b/lisp/ob-ditaa.el @@ -59,7 +59,7 @@ called by `org-babel-execute-src-block'." (error "Could not find ditaa.jar at %s" org-ditaa-jar-path)) (with-temp-file in-file (insert body)) (message (concat "java -jar " org-ditaa-jar-path " " cmdline " " in-file " " out-file)) - (shell-command (concat "java -jar " org-ditaa-jar-path " " cmdline " " in-file " " out-file)) + (shell-command (concat "java -jar " (shell-quote-argument org-ditaa-jar-path) " " cmdline " " in-file " " out-file)) out-file)) (defun org-babel-prep-session:ditaa (session params)