help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Executing External Programs from Emacs


From: Michael Albinus
Subject: Re: Executing External Programs from Emacs
Date: Sat, 14 Feb 2009 14:08:01 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

dstein64 <DStein64@gmail.com> 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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]