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

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

Re: Space in compiler file name


From: Eli Zaretskii
Subject: Re: Space in compiler file name
Date: Mon, 20 Feb 2006 23:00:42 +0200

> From: Brian Elmegaard <brian@rkspeed-rugby.dk>
> Date: Mon, 20 Feb 2006 08:55:35 +0100
> 
> When I run I get:
> c:/program files/dna/bin/dna.exe 
> 'c:/program' is not recognized as an internal or external command,
> operable program or batch file.
> 
> The compile command is set by:
>   (setq compile-command 
>                    (progn (concat dna-bin-directory "/" 
>                                   dna-executable-name " "
>                                   (file-name-nondirectory
>                                    buffer-file-name)))) 
>   (setq dna-input-buffer-name (buffer-name))
>   (compile compile-command)
> 
> 
> How can I make dna-bin-directory contain spaces and pass this to
> compile?

Did you try to quote the file name which has the embedded spaces?

compile-command is conceptually a string that you would type at the
shell's prompt, so you need to quote or escape any characters special
for the shell, as you would when you type the command interactively.




reply via email to

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