Simon Guest <[EMAIL PROTECTED]> writes:

> If I leave that running, and try to follow another link to another PDF
> file, I get told: A command is running. Kill it? (yes or no)

This small patch let you start a new process when you open an external
viewer from Org:

diff -u /home/guerry/elisp/testing/org/org.el /home/guerry/elisp/testing/bzg/org.el
--- /home/guerry/elisp/testing/org/org.el	2007-10-03 16:59:59.000000000 +0100
+++ /home/guerry/elisp/testing/bzg/org.el	2007-10-03 17:06:25.000000000 +0100
@@ -12321,7 +12321,7 @@
 	  (setq cmd (replace-match "%s" t t cmd)))
       (setq cmd (format cmd (shell-quote-argument file)))
       (save-window-excursion
-	(shell-command (concat cmd " &"))))
+	(start-process-shell-command cmd nil cmd)))
      ((or (stringp cmd)
 	  (eq cmd 'emacs))
       (funcall (cdr (assq 'file org-link-frame-setup)) file)

Diff finished.  Wed Oct  3 17:08:46 2007
(Not heavily tested though.)

-- 
Bastien
_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to