From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Space in compiler file name Date: Mon, 20 Feb 2006 23:00:42 +0200 Message-ID: References: NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1140493040 9701 80.91.229.2 (21 Feb 2006 03:37:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 21 Feb 2006 03:37:20 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 21 04:37:09 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FBOKi-0003Zl-I5 for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Feb 2006 04:37:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FBOIR-0007Ay-J0 for geh-help-gnu-emacs@m.gmane.org; Mon, 20 Feb 2006 22:34:39 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FBI9D-0006G4-B0 for help-gnu-emacs@gnu.org; Mon, 20 Feb 2006 16:00:43 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FBI9C-0006DX-3q for help-gnu-emacs@gnu.org; Mon, 20 Feb 2006 16:00:42 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FBI9B-0006Bj-DH for help-gnu-emacs@gnu.org; Mon, 20 Feb 2006 16:00:41 -0500 Original-Received: from [192.114.186.66] (helo=romy.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FBIFH-0000tD-Us for help-gnu-emacs@gnu.org; Mon, 20 Feb 2006 16:07:00 -0500 Original-Received: from HOME-C4E4A596F7 (IGLD-84-228-239-249.inter.net.il [84.228.239.249]) by romy.inter.net.il (MOS 3.7.3-GA) with ESMTP id DPI51456 (AUTH halo1); Mon, 20 Feb 2006 23:00:39 +0200 (IST) Original-To: help-gnu-emacs@gnu.org In-reply-to: (message from Brian Elmegaard on Mon, 20 Feb 2006 08:55:35 +0100) 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:33319 Archived-At: > From: Brian Elmegaard > 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.