From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: suvayu ali Newsgroups: gmane.emacs.help Subject: Re: dired: launch program withou stalling emacs Date: Sat, 12 Sep 2009 16:14:54 -0700 Message-ID: References: <4A6475F7.4000500@telenet.be> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1252797352 21693 80.91.229.12 (12 Sep 2009 23:15:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 12 Sep 2009 23:15:52 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Jonathan Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Sep 13 01:15:45 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Mmbom-00039Q-Bc for geh-help-gnu-emacs@m.gmane.org; Sun, 13 Sep 2009 01:15:44 +0200 Original-Received: from localhost ([127.0.0.1]:41147 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mmbol-0001Q7-9T for geh-help-gnu-emacs@m.gmane.org; Sat, 12 Sep 2009 19:15:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MmboO-0001Q2-KP for help-gnu-emacs@gnu.org; Sat, 12 Sep 2009 19:15:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MmboJ-0001Pp-JW for help-gnu-emacs@gnu.org; Sat, 12 Sep 2009 19:15:19 -0400 Original-Received: from [199.232.76.173] (port=52537 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MmboJ-0001Pm-F6 for help-gnu-emacs@gnu.org; Sat, 12 Sep 2009 19:15:15 -0400 Original-Received: from mail-vw0-f178.google.com ([209.85.212.178]:36441) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MmboJ-0001yC-7K for help-gnu-emacs@gnu.org; Sat, 12 Sep 2009 19:15:15 -0400 Original-Received: by vws8 with SMTP id 8so1223348vws.14 for ; Sat, 12 Sep 2009 16:15:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:from:date:x-google-sender-auth:message-id:subject:to:cc :content-type:content-transfer-encoding; bh=SWcW7YfJbIbJdHRzvDlC04uDP+OeNoS5XD9527P4Yok=; b=noFDUUkMo+n5xnHGL2vjeX6M6tA8wv9M5mvBeKS0wXY/Ox3loZgwacFRcGTqTkyr4D MmrHJ2j/1zbNVX6BA014nl7fZyEDqWhuwQpiRPdj2DTLed7x1gARZ+AR89x9QOrTA5K5 aLo3MXQsWZ8T/ajmKww6hcx9cIbqg0LKNybAA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; b=K4VH+TA+RHPGBNpA77YKnwn8uzYcGNdv78Ps2JJ1A+6MXaQbgWLvpY3xg1ISmx3+6M X4VQBMdZjlqH7msPnmUNcJHrsjPPVVgYUjCZ9yVMTejHwlHS4G3lRkau4oMVcSrib1AU 9k9/5cET6umCZUNBijZ631ttfcRLQXgkOacs4= Original-Received: by 10.220.79.105 with SMTP id o41mr5223980vck.70.1252797314174; Sat, 12 Sep 2009 16:15:14 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: 186c4819c7fbe9e1 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:68089 Archived-At: 2009/9/11 Jonathan : > On Jul 20, 11:05=A0pm, suvayu ali wrote: >> 2009/7/20 suvayu ali : >> >> > 2009/7/20 Alain Muls : >> >> >> I am learning to use dired for file operations. I found out how to la= unch a >> >> program associated with the extension using eg >> >> >> (require 'dired-x) >> >> (setq dired-guess-shell-alist-user >> >> =A0 =A0 =A0'(("\\.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 pdfview= er >> >> 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 (op= enoffice) 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 --=20 Suvayu Open source is the future. It sets us free.