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

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

Re: [h-e-w] shell-command


From: Christopher J. White
Subject: Re: [h-e-w] shell-command
Date: 18 Oct 2001 10:14:30 -0400
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

Jeff,

You might look at start-process as well.  It works at a lower
level than shell-command and I've used it with more success.  
The function shell-command ultimately calls start-process. 

  (start-process NAME BUFFER PROGRAM &rest PROGRAM-ARGS)

  (start-process "start" nil "start" "file..blah...index.html/")

Note that NAME is just about anything you want, it's what show's up if
you do list-processes.  With BUFFER as nil, process is not associated
with any buffer and works pretty silently.

As far as starting directory, start-process gets it from the variable
default-directory which is set locally in each buffer.  To temporarily
set it:

  (let ((default-directory "c:/temp/"))
     (start-process "*test*" "*test*" "pwd"))

Note the trailing "/" on the directory name.

...cj

-- 
------------------------------------------------------------------------------
 Christopher J. White                                    address@hidden
------------------------------------------------------------------------------ 




reply via email to

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