emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Only one org-open-at-point at a time?


From: Bastien
Subject: Re: [Orgmode] Only one org-open-at-point at a time?
Date: Wed, 03 Oct 2007 17:16:19 +0100
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.0 (gnu/linux)

Simon Guest <address@hidden> 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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]