From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Only one org-open-at-point at a time? Date: Wed, 03 Oct 2007 17:16:19 +0100 Message-ID: <87fy0sb2cs.fsf@bzg.ath.cx> References: <86zlz08mqo.wl%simon.guest@tesujimath.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Id6tg-0006M6-Qa for emacs-orgmode@gnu.org; Wed, 03 Oct 2007 12:16:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Id6te-0006LH-EG for emacs-orgmode@gnu.org; Wed, 03 Oct 2007 12:16:27 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Id6te-0006LD-6G for emacs-orgmode@gnu.org; Wed, 03 Oct 2007 12:16:26 -0400 Received: from fk-out-0910.google.com ([209.85.128.188]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Id6td-0003Qp-P0 for emacs-orgmode@gnu.org; Wed, 03 Oct 2007 12:16:26 -0400 Received: by fk-out-0910.google.com with SMTP id 19so5748493fkr for ; Wed, 03 Oct 2007 09:16:24 -0700 (PDT) In-Reply-To: <86zlz08mqo.wl%simon.guest@tesujimath.org> (Simon Guest's message of "Wed, 03 Oct 2007 12:24:15 +0100") 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 --=-=-= Simon Guest 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: --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=org.el.patch 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 --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --=-=-=--