emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: feng shu <tumashu@gmail.com>
To: emacs-orgmode@gnu.org
Subject: [patch] a small change
Date: Tue, 1 May 2012 17:44:24 +0800	[thread overview]
Message-ID: <CAJpRBmdME5kxc+_DhbhWDfHEWJAJ2HPdMwT2AAYGofBiDRz9eA@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1 bytes --]

[-- Attachment #2: 0001-A-small-change.patch --]
[-- Type: application/octet-stream, Size: 1275 bytes --]

From 790097f4e3c7acdcccbcc42e302e0e31c264c46d Mon Sep 17 00:00:00 2001
From: Feng Shu <tumashu@gmail.com>
Date: Tue, 1 May 2012 15:24:56 +0800
Subject: [PATCH] A small change.

* org.el (org-create-formula-image-with-imagemagick): using   'call-process to launch latex program instead of 'shell-command.
 lisp/org.el |    5 +++--
 1 个文件被修改,插入 3 行(+),删除 2 行(-)

diff --git a/lisp/org.el b/lisp/org.el
index f54026c..e9e6564 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -17037,7 +17037,7 @@ Some of the options can be changed using the variable
 	       ((eq processing-type 'imagemagick)
 		(unless executables-checked
-		   "converte" "you need to install imagemagick")
+		   "convert" "you need to install imagemagick")
 		  (setq executables-checked t))
 		(unless (file-exists-p movefile)
@@ -17312,7 +17312,8 @@ inspection."
 			     (shell-quote-argument (file-name-directory texfile)))
 			   t t cmd)))
-	      (shell-command cmd)))
+	      (setq cmd (split-string cmd))
+	      (eval (append (list 'call-process (pop cmd) 'nil 'nil 'nil) cmd))))
 	(error nil))
       (cd dir))
     (if (not (file-exists-p pdffile))

             reply	other threads:[~2012-05-01  9:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-01  9:44 feng shu [this message]
2012-05-01  9:55 ` [patch] a small change Bastien

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAJpRBmdME5kxc+_DhbhWDfHEWJAJ2HPdMwT2AAYGofBiDRz9eA@mail.gmail.com \
    --to=tumashu@gmail.com \
    --cc=emacs-orgmode@gnu.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).