* [patch] Using 'call-process to launch latex program
@ 2012-05-01 10:56 Feng Shu
2012-05-01 11:04 ` Bastien
0 siblings, 1 reply; 2+ messages in thread
From: Feng Shu @ 2012-05-01 10:56 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: 0001-spelling-fixes.patch --]
[-- Type: text/x-diff, Size: 897 bytes --]
From 4b577b6909c57a74adf75925ea9f26e17f9ad946 Mon Sep 17 00:00:00 2001
From: Feng Shu <tumashu@gmail.com>
Date: Tue, 1 May 2012 18:48:50 +0800
Subject: [PATCH 1/2] spelling fixes
* org.el (org-create-formula-image-with-imagemagick): "converte" --> "convert".
---
lisp/org.el | 2 +-
1 个文件被修改,插入 1 行(+),删除 1 行(-)
diff --git a/lisp/org.el b/lisp/org.el
index f54026c..c3f37f9 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
(org-check-external-command
- "converte" "you need to install imagemagick")
+ "convert" "you need to install imagemagick")
(setq executables-checked t))
(unless (file-exists-p movefile)
(org-create-formula-image-with-imagemagick
--
1.7.10
[-- Attachment #2: 0002-Using-call-process-to-launch-latex-program.patch --]
[-- Type: text/x-diff, Size: 1011 bytes --]
From db879ef257b28ba852e3db612205d0e259eabd9f Mon Sep 17 00:00:00 2001
From: Feng Shu <tumashu@gmail.com>
Date: Tue, 1 May 2012 18:51:17 +0800
Subject: [PATCH 2/2] Using 'call-process to launch latex program
* org.el (org-create-formula-image-with-imagemagick): using function
'call-process to launch latex program instead of function 'shell-command,
and when we preview formula,it will not show *shell output buffer*
---
lisp/org.el | 3 ++-
1 个文件被修改,插入 2 行(+),删除 1 行(-)
diff --git a/lisp/org.el b/lisp/org.el
index c3f37f9..63fc5ab 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -17312,7 +17312,8 @@ inspection."
(save-match-data
(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))
--
1.7.10
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-05-01 11:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-01 10:56 [patch] Using 'call-process to launch latex program Feng Shu
2012-05-01 11:04 ` Bastien
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
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).