From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nurullah Akkaya Newsgroups: gmane.emacs.help Subject: Re: Executing External Programs from Emacs Date: Sat, 14 Feb 2009 12:30:39 +0200 Message-ID: References: <1a12217a-86cb-4088-8fd1-731ce415e68a@z28g2000prd.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001636c5b9e8e5f8330462de71d8 X-Trace: ger.gmane.org 1234607486 29610 80.91.229.12 (14 Feb 2009 10:31:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 14 Feb 2009 10:31:26 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Feb 14 11:32:42 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 1LYHpA-0000Xw-UB for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Feb 2009 11:32:41 +0100 Original-Received: from localhost ([127.0.0.1]:58513 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LYHnq-0007H4-GE for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Feb 2009 05:31:18 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LYHnM-0007Gr-Aw for help-gnu-emacs@gnu.org; Sat, 14 Feb 2009 05:30:48 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LYHnH-0007EL-Kd for help-gnu-emacs@gnu.org; Sat, 14 Feb 2009 05:30:47 -0500 Original-Received: from [199.232.76.173] (port=54356 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LYHnH-0007ED-EJ for help-gnu-emacs@gnu.org; Sat, 14 Feb 2009 05:30:43 -0500 Original-Received: from mail-fx0-f16.google.com ([209.85.220.16]:53547) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LYHnH-0000r1-3e for help-gnu-emacs@gnu.org; Sat, 14 Feb 2009 05:30:43 -0500 Original-Received: by fxm9 with SMTP id 9so3995178fxm.18 for ; Sat, 14 Feb 2009 02:30:40 -0800 (PST) Original-Received: by 10.180.217.1 with SMTP id p1mr1080294bkg.147.1234607440000; Sat, 14 Feb 2009 02:30:40 -0800 (PST) In-Reply-To: <1a12217a-86cb-4088-8fd1-731ce415e68a@z28g2000prd.googlegroups.com> 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:62122 Archived-At: --001636c5b9e8e5f8330462de71d8 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On Sat, Feb 14, 2009 at 8:48 AM, dstein64 wrote: > Are there any functions that can launch external programs (not just > command line programs, but also GUI programs) from Emacs? 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. > try using M-x term it does not block your session while running. if you want to roll your own have a look at start-process function. --001636c5b9e8e5f8330462de71d8 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On Sat, Feb 14, 2009 at 8:48 AM, dstein64 <DStein64@gmail.co= m> wrote:
Are there any functions that can launch external programs (not just
command line programs, but also GUI programs) from Emacs? 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.

try using M-x term it does not block your session while running.

if you want to roll your own have a look at start-process function. --001636c5b9e8e5f8330462de71d8--