all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: suvayu ali <fatkasuvayu+linux@gmail.com>
To: Jonathan <jadski@googlemail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: dired: launch program withou stalling emacs
Date: Sat, 12 Sep 2009 16:14:54 -0700	[thread overview]
Message-ID: <fe3123490909121614g553e5aa1j51bce3b4cfcb24cc@mail.gmail.com> (raw)
In-Reply-To: <c1720090-812c-4c17-b577-528170f4245a@y21g2000yqn.googlegroups.com>

2009/9/11 Jonathan <jadski@googlemail.com>:
> On Jul 20, 11:05 pm, suvayu ali <fatkasuvayu+li...@gmail.com> wrote:
>> 2009/7/20 suvayu ali <fatkasuvayu+li...@gmail.com>:
>>
>> > 2009/7/20 Alain Muls <alain.m...@telenet.be>:
>>
>> >> I am learning to use dired for file operations. I found out how to launch a
>> >> program associated with the extension using eg
>>
>> >> (require 'dired-x)
>> >> (setq dired-guess-shell-alist-user
>> >>      '(("\\.pdf$" "evince")))
>>
>> >> The inconvenience of this is that I have to close the program before I can
>> >> resume working in emacs. Is there a possibility to launch the pdfviewer
>> >> evince and be able to work in emacs without closing the pdfviewer?
>>
>> > If you are on GNU/Linux you can try `! xdg-open RET'.
>>
>> > Alain wrote:
>>
>> > this works fine for PDF files, but it fails on .fig (xfig) or .odt (openoffice) files.
>>
>> Hi Alain,
>>
>> It should work for _all_ files. What xdg-open does is open the file in
>> the preferred application as per the settings of the user. If it fails
>> for you, then your default applications settings is not what it should
>> be.
>>
>> I am not sure how to correct this from the command line (you can try
>> xdg-mime), but from the GUI you can right click a file and set the
>> defaults by going to the properties menu on almost any modern window
>> manager.
>>
>> I believe this is getting off-topic on the emacs list beyond this
>> point. If your problem persists, try posting on your distro's user
>> list. Hope this helps.
>>
>
> My problem is not that the OO file does not open, it's that emacs
> still remains locked until the file is closed.
>
> Any suggestions on how to invoke xdg-open as a background process?
>
> Jon
>

That should not be the case. Here using xdg-open does not lock up
emacs. I think a previous post in this thread mentioned how to open an
application in the background. You could give that a try.

GL
-- 
Suvayu

Open source is the future. It sets us free.




  reply	other threads:[~2009-09-12 23:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-20 13:49 dired: launch program withou stalling emacs Alain Muls
2009-07-20 15:39 ` suvayu ali
2009-07-20 22:05   ` suvayu ali
     [not found]   ` <mailman.2864.1248127549.2239.help-gnu-emacs@gnu.org>
2009-09-11 13:19     ` Jonathan
2009-09-12 23:14       ` suvayu ali [this message]
2009-07-20 15:45 ` Lennart Borgman
     [not found] <mailman.2834.1248097787.2239.help-gnu-emacs@gnu.org>
2009-07-20 22:43 ` muede
2009-07-21  6:34 ` Josef G. Bauer

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fe3123490909121614g553e5aa1j51bce3b4cfcb24cc@mail.gmail.com \
    --to=fatkasuvayu+linux@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=jadski@googlemail.com \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.