[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: start-process somehow expands *.org
From: |
Thierry Volpiatto |
Subject: |
Re: start-process somehow expands *.org |
Date: |
Tue, 01 Mar 2011 07:19:33 +0100 |
User-agent: |
Gnus/5.110014 (No Gnus v0.14) Emacs/23.2.94 (gnu/linux) |
Lennart Borgman <address@hidden> writes:
> On Tue, Mar 1, 2011 at 3:27 AM, Glenn Morris <address@hidden> wrote:
>>
>> Lennart Borgman wrote (on Tue, 1 Mar 2011 at 03:07 +0100):
>>
>>> I am calling start-process with one of the program-args beeing
>>> "*.org". Somehow this is expanded to just the first of matching file.
>>>
>>> What is happening? Is this the way it is supposed to work?
>>
>> Will you PLEASE learn to give complete examples, rather than always
>> this "I saw a thing; is it a problem?" kind of mail.
>
> Sorry, I thought I was clear enough. start-process has a "&rest" arg
> called "program-args".
>
>> Maybe the following is relevant, how should I know what you doing.
>>
>> Functions that Create Subprocesses
>>
>> All three of the subprocess-creating functions have a `&rest'
>> argument, ARGS. The ARGS must all be strings, and they are supplied
>> to PROGRAM as separate command line arguments. Wildcard characters
>> and other shell constructs have no special meanings in these
>> strings, since the strings are passed directly to the specified
>> program.
>
> Yes, it might be relevant. However I do not understand what is happening.
>
> I have something like this
>
> (setq command
> ("ruby.exe" "c:\\path-to\\idxsearch.rb" "--root"
> "c:/where-to-search/" "--filepatt" "*.org" "--query" "word1,word2")
>
> (apply 'start-process (downcase mode-name) outbuf command)
>
> It looks like idxsearch.rb recieves the first file matching *.org, in
> my case "act.org" - instead of "*.org" as I expected.
>
> It might be ruby.exe that expands *.org, but if I try a similar
> command line ruby.exe does not expand *.org.
>
> This is on w32, as usual with my patched version.
Maybe use --filepatt as last arg and file-expand-wildcards on *.org.
(setq command "a b c d e --filepatt")
(apply 'start-process (downcase mode-name) outbuf command
(file-expand-wildcards "*.org"))
Or even better use start-process-shell-command.
--
A+ Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997
- Re: start-process somehow expands *.org,
Thierry Volpiatto <=
- Re: start-process somehow expands *.org, Lennart Borgman, 2011/03/01
- Re: start-process somehow expands *.org, Thierry Volpiatto, 2011/03/01
- Re: start-process somehow expands *.org, Lennart Borgman, 2011/03/01
- Re: start-process somehow expands *.org, Thierry Volpiatto, 2011/03/01
- Re: start-process somehow expands *.org, Lennart Borgman, 2011/03/01
- Re: start-process somehow expands *.org, Thierry Volpiatto, 2011/03/01
- Re: start-process somehow expands *.org, Lennart Borgman, 2011/03/01