From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#20393: cannot compile when one folder has spaces Date: Wed, 09 Oct 2019 05:35:26 +0200 Message-ID: <87imoyvbep.fsf@gnus.org> References: <1641757.hIDRi88fqK@harmonia> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="119149"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Stephen Leake , 20393@debbugs.gnu.org To: Christian Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 09 18:38:39 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iIEz1-000UsW-7d for geb-bug-gnu-emacs@m.gmane.org; Wed, 09 Oct 2019 18:38:39 +0200 Original-Received: from localhost ([::1]:52402 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iIEyz-0001pT-Dw for geb-bug-gnu-emacs@m.gmane.org; Wed, 09 Oct 2019 12:38:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50746) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iI2lj-0000OM-Ug for bug-gnu-emacs@gnu.org; Tue, 08 Oct 2019 23:36:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iI2le-0007sn-Tj for bug-gnu-emacs@gnu.org; Tue, 08 Oct 2019 23:36:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42990) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iI2le-0007rv-Ko for bug-gnu-emacs@gnu.org; Tue, 08 Oct 2019 23:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iI2le-0006CP-E2 for bug-gnu-emacs@gnu.org; Tue, 08 Oct 2019 23:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 09 Oct 2019 03:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20393 X-GNU-PR-Package: emacs Original-Received: via spool by 20393-submit@debbugs.gnu.org id=B20393.157059213223786 (code B ref 20393); Wed, 09 Oct 2019 03:36:02 +0000 Original-Received: (at 20393) by debbugs.gnu.org; 9 Oct 2019 03:35:32 +0000 Original-Received: from localhost ([127.0.0.1]:51811 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iI2lA-0006Ba-JT for submit@debbugs.gnu.org; Tue, 08 Oct 2019 23:35:32 -0400 Original-Received: from quimby.gnus.org ([80.91.231.51]:51968) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iI2l9-0006BS-04 for 20393@debbugs.gnu.org; Tue, 08 Oct 2019 23:35:31 -0400 Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iI2l5-00024L-Dc; Wed, 09 Oct 2019 05:35:29 +0200 In-Reply-To: <1641757.hIDRi88fqK@harmonia> (Christian's message of "Mon, 20 Apr 2015 23:49:19 -0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:168708 Archived-At: Christian writes: > Hi, I found a problem when trying to compile using a project (gpj) file. Is > easy to solve. > > The problem is that if you're at a directory with spaces, gnatmake will > recieve two parameters instead of one. > > The solution is easy: The variable ada-build-make-cmd needs double quotes > between the "{gpr_file}" substring: > "${cross_prefix}gnatmake -P\"${gpr_file}\" -o ${main} ${main} ${gnatmake_opt} - > cargs -I${src_dir} ${comp_opt} -bargs ${bind_opt} -largs ${link_opt}" Stephen, could you take a look at this one? I'm not familiar with ada-mode -- does the ${} expansion quote the argument itself? If not, this seems like a logical solution, but will probably fail if the file has a " character in the name. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no