From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: tyler Newsgroups: gmane.emacs.help Subject: Re: Executing External Programs from Emacs Date: Sat, 14 Feb 2009 16:30:21 -0400 Message-ID: <874oywdan6.fsf@blackbart.sedgenet> References: <1a12217a-86cb-4088-8fd1-731ce415e68a@z28g2000prd.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1234644047 6103 80.91.229.12 (14 Feb 2009 20:40:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 14 Feb 2009 20:40:47 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Feb 14 21:42:02 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 1LYRKk-0001P5-6B for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Feb 2009 21:41:54 +0100 Original-Received: from localhost ([127.0.0.1]:60759 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LYRJQ-0002g4-58 for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Feb 2009 15:40:32 -0500 Original-Path: news.stanford.edu!headwall.stanford.edu!news.glorb.com!news2.glorb.com!wns13feed!worldnet.att.net!209.197.12.242!nx01.iad.newshosting.com!newshosting.com!post02.iad!news.aliant.net!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:8mY4CrMJCtAu+ZGGDzGrlzNG3pE= Original-Lines: 28 Original-NNTP-Posting-Host: 142.68.91.225 Original-X-Complaints-To: abuse@aliant.net Original-Xref: news.stanford.edu gnu.emacs.help:166821 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:62131 Archived-At: dstein64 writes: > Are there any functions that can launch external programs (not just > command line programs, but also GUI programs) from Emacs? >From a shell within Emacs, call the command followed by '&'. You can also do this from with the 'shell-command' function, which is invoked with M-!. So, to call a pdf viewer, for example, you could do: M-! xpdf & Cheers, Tyler > I know that > I can access a shell, and call a program from there, but then emacs is > not operable until I close the program. Prepending the command with > `nohup' is useful, but for some reason it does not work as expected > with all programs, including emacs. I would prefer another way of > doing this - using a specific built-in of emacs lisp if one exists. > Any help would be greatly appreciated. Thanks. -- Philosophy of science is about as useful to scientists as ornithology is to birds. --Richard Feynman