From: Bastien <bzg@altern.org>
To: emacs-orgmode@gnu.org
Subject: Re: Only one org-open-at-point at a time?
Date: Wed, 03 Oct 2007 17:16:19 +0100 [thread overview]
Message-ID: <87fy0sb2cs.fsf@bzg.ath.cx> (raw)
In-Reply-To: <86zlz08mqo.wl%simon.guest@tesujimath.org> (Simon Guest's message of "Wed, 03 Oct 2007 12:24:15 +0100")
[-- Attachment #1: Type: text/plain, Size: 276 bytes --]
Simon Guest <simon.guest@tesujimath.org> 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:
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: org.el.patch --]
[-- Type: text/x-diff, Size: 632 bytes --]
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
[-- Attachment #3: Type: text/plain, Size: 43 bytes --]
(Not heavily tested though.)
--
Bastien
[-- Attachment #4: Type: text/plain, Size: 204 bytes --]
_______________________________________________
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
next prev parent reply other threads:[~2007-10-03 16:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-03 11:24 Only one org-open-at-point at a time? Simon Guest
2007-10-03 16:16 ` Bastien [this message]
2007-10-04 7:31 ` Carsten Dominik
2007-10-04 11:57 ` Simon Guest
2007-10-06 7:52 ` Renzo Been
2007-10-06 10:29 ` Simon Guest
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:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
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=87fy0sb2cs.fsf@bzg.ath.cx \
--to=bzg@altern.org \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* 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
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).