From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: Executing External Programs from Emacs Date: Sat, 14 Feb 2009 14:08:01 +0100 Message-ID: <878wo9upxq.fsf@gmx.de> 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 1234616916 20531 80.91.229.12 (14 Feb 2009 13:08:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 14 Feb 2009 13:08:36 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: dstein64 Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Feb 14 14:09:51 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 1LYKHG-0000M2-Vz for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Feb 2009 14:09:51 +0100 Original-Received: from localhost ([127.0.0.1]:39873 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LYKFw-0000Ql-TE for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Feb 2009 08:08:28 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LYKFd-0000Qf-9G for help-gnu-emacs@gnu.org; Sat, 14 Feb 2009 08:08:09 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LYKFb-0000Q9-9h for help-gnu-emacs@gnu.org; Sat, 14 Feb 2009 08:08:08 -0500 Original-Received: from [199.232.76.173] (port=48047 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LYKFb-0000Q6-2S for help-gnu-emacs@gnu.org; Sat, 14 Feb 2009 08:08:07 -0500 Original-Received: from mail.gmx.net ([213.165.64.20]:58604) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1LYKFa-0001m1-FM for help-gnu-emacs@gnu.org; Sat, 14 Feb 2009 08:08:06 -0500 Original-Received: (qmail invoked by alias); 14 Feb 2009 13:08:03 -0000 Original-Received: from brln-4db910de.pool.einsundeins.de (EHLO arthur.local) [77.185.16.222] by mail.gmx.net (mp022) with SMTP; 14 Feb 2009 14:08:03 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX18fKOcs7ukfuPg+k8ni1yLxBuSTiQcEwNWfXr+XAp nSrO15Hqz/jZaa In-Reply-To: <1a12217a-86cb-4088-8fd1-731ce415e68a@z28g2000prd.googlegroups.com> (dstein's message of "Fri, 13 Feb 2009 22:48:56 -0800 (PST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-Y-GMX-Trusted: 0 X-FuHaFi: 0.61 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:62126 Archived-At: dstein64 writes: > 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. Tramp does it. Tested with Emacs 23.0.90: (with-temp-buffer (cd "/ssh:remotehost:") (add-to-list 'tramp-remote-process-environment (concat "DISPLAY=" (getenv "DISPLAY")) (start-file-process "xterm" nil "xterm")) Best regards, Michael.