From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arthur Miller Newsgroups: gmane.emacs.help Subject: Re: Why is this not working (apply + call-process + list of string args)? Date: Thu, 15 Sep 2022 23:43:42 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20895"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: gnu-emacs-help@gnu.org To: Bruno Barbier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 15 23:44:19 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oYweg-0005HS-BG for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 15 Sep 2022 23:44:18 +0200 Original-Received: from localhost ([::1]:38686 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oYwef-0005Mo-8r for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 15 Sep 2022 17:44:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60766) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oYweC-0005Mc-Fv for help-gnu-emacs@gnu.org; Thu, 15 Sep 2022 17:43:48 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:56192) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oYweB-0008B8-US for help-gnu-emacs@gnu.org; Thu, 15 Sep 2022 17:43:47 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45114) by fencepost.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oYweB-0001K6-NN for gnu-emacs-help@gnu.org; Thu, 15 Sep 2022 17:43:47 -0400 Original-Received: from mail-vi1eur05olkn2015.outbound.protection.outlook.com ([40.92.90.15]:42873 helo=EUR05-VI1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oYweA-0008Ad-1m for gnu-emacs-help@gnu.org; Thu, 15 Sep 2022 17:43:47 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=N2UTe3GLrPC7ZC2JKOrx9Z7tzxxgwxZG6Xn0FG0qDn/LzVRMEnIB1PrvKw801KOoa4030220DJScxVqtc0uiJFf4FlSSt7hP5jVGf0/8c6N+0wHsULCShRZJ6+X1e9ykCqFv3WkqfJrG1/MRCTRuGH0Tinuez2ldwtmoRAlN4CZkhlT1/tExzBk6XvELfMJU/kGG7306rNkbNbq6lJae0fOvkXgAP0WZdW+rAB3jBxXfQ43voA/Kk/fDRhC7Mgh1vOG7k+BfaNPyLF76yXuuZzzGPbXllFmscMPjJgcpXnPu1iyjrehdThz/a5XzBt/vByBMOTclb7yJ3Gw7gG5gqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=cTrqxdEt0vALLEoaJy+iMFIlkGdQEEYAsnjnGDz7OVI=; b=VZq+Dv17S011gV04w5Kf997tl4NNh51TvEoQ0KHJ2K4lXniXjHdPkm1j6NFhpRx7jtbEYu996QiwwsrWcHq37IMBbes09mZjEd4IfPZVg43k4pppwcFNSbUyN99SQ9qCHGbkXhE9GMQOVTwkRPZrtZoZeDFJO5dduQ/Ni8c3DHdBc2yHKz4BvG3pHB5ed/NQXCB8M3f6b3wF6/gPHedd4rnpSrW2zLE/IXIC/KaVcPqyfi8vw+JmOhn8geX7F2dkBk2ivqZI/hEbqP8CI1BjvVhaBXiOBxY14zNulieMBV3Pb1b4WegTGbuK9hf40hLTAcoPvKtN3c4qOFpFhnBSxg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cTrqxdEt0vALLEoaJy+iMFIlkGdQEEYAsnjnGDz7OVI=; b=NB5ysntiVTw41HEjHA+YbYzfbsqUJ/o6SXqFgkdE0cL7w5IkFBdihEpxzcz048Qqg+yGmDzQCWioCJastWji+3TizG4VTkVLDZRqfVN5ZZy8Zpf3UjL3fdfCbQhEzIXptKqn6V81k70uHcgoHmfKgOgfeMXKw58ay6jURIcRf5EIoSf058bbiCHBOuFqTGzL1lSXaz+qEFi7MtPDuk5b2ACyyRdl+p3zEb7gjIInmppLNDRkLDZTxHOnvdWtHKJRNqcFMGXgS5ze6KJGQebrRV2TWrvAdt7ab/LKcaIk1/YBtfxZ2GuM3pcTOOX4/ZIEwgcXArrDFfGr/73mt0QL8g== Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) by AS2PR09MB6167.eurprd09.prod.outlook.com (2603:10a6:20b:5f3::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5632.14; Thu, 15 Sep 2022 21:43:43 +0000 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::10cc:8884:c6d8:a23d]) by AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::10cc:8884:c6d8:a23d%6]) with mapi id 15.20.5632.015; Thu, 15 Sep 2022 21:43:43 +0000 In-Reply-To: (Bruno Barbier's message of "Thu, 15 Sep 2022 19:00:44 +0200") X-TMN: [neodrwyNFMaYOuAlNqdzZi26noeWVjjM] X-ClientProxiedBy: MM0P280CA0058.SWEP280.PROD.OUTLOOK.COM (2603:10a6:190:b::25) To AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) X-Microsoft-Original-Message-ID: <874jx8nwj5.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM9PR09MB4977:EE_|AS2PR09MB6167:EE_ X-MS-Office365-Filtering-Correlation-Id: f8e9e496-eb6e-4704-66d1-08da97635c3a X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: SpYeB524bGhRcNYzpchALdV+6dTyh5EzTsbZq2bL8Qt34hSYHkmCdzhO2iZHDu55qE4PjWBWS5/THb+ROwLQl91jCe1c/JnnSsLQoD0zr46NzF/CSBGEYLpE1h5Rowp0jhh6Hzd2J2Pso4Vld9Qay7zq1zgdoyNovLRDjii+qP/drTEsJF1ZiCVFGi30Fz4eRNm8JOqyheREkD/enX0VQ0Bo16j+YA3aikNOrLyilkNoT7nLXrAxhUEzXp6ze4SYqIGDoiTRlnOskrG+u+brX38uS15i6RNDsF8Jad7FxaVmnm5dkV/zAwvw8dl6IEaeXKHfKy4CzxymxYFsT4lK+ng8QM84A3AUSEB+9/UKa3k0pyv2EkGlyAKninUwpersb4vHyBoCr9juA2r4vl6qkB+D2kH0Aq7fH2EvCs5mDLJM+xrJXvXGsAEuarq5xloRKXJynxW8hhIvHaXKWfVLACUNFg07i8FihhQOap1w4MOolc9gduxsLls7Gsn97jXlGfKnd9US/1GxahzD0lsyg8gbkNBFece+TcWRZFpZNDNR1mxpSAyjaVnDmVg3FnvcTfxepZGsmt7n051BrIq3EvNnM0Nxj/6ly3op8kSjM5Dp/wct3QwvkGXhQ7sDrtvDP/kE5TBOOqBpcgZICiPInFHFFm29XykgckbAq6d3hxilJoGV0QbDvfXfG0g8F1E7 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?hAA+vANJOON4dPDtpIjDIwSzzaGD2xLdXIw/mUZnc06lUqWhHywrKPQF55yH?= =?us-ascii?Q?7MMY7fbI/f3TTGZ465u1xxe6aZZWq1/6y7F3la8XL99tnNgZWhdDSxmAQDvF?= =?us-ascii?Q?t7/U19/H1tRaSdLAp0W+j2ZrML/2HzEIZCFTipfamIeqO4K7eJp5CXZM/PbV?= =?us-ascii?Q?yJV4q1bqsFtSekWGektz2Yy84tWdb9C9lxuxjcE4k+66rPy5i0hGyEywFSiH?= =?us-ascii?Q?o6IvEWCnWVx3/LFQbIWeznQss/OYI3mTmSVr5r2heoC3/GIJw3lOqV6AfXAf?= =?us-ascii?Q?mMQzKUI6Ylnth70RbHiOTj9zscrGfXXmknE7wNj/KiIU3fAd/Gkzyxe+hUAx?= =?us-ascii?Q?ybM7K1uhyIA/jVkjHI8SNKrj/ijIB3iVLI/Hm0mkyzeLO3Q2uSHnVqTVr1VE?= =?us-ascii?Q?EqeT60vEgyB1YUKG1eubw7znScj5VAVWQZgs+hQLuDha3ZdvrmcrCe9XfxIZ?= =?us-ascii?Q?rw0AtfVZZ1Lltv+kXW4qm1wL9VSBv7Srj/B3PwBZwbRmbrMpT7Ukv/Nv0C2y?= =?us-ascii?Q?jD5MU5ww54M313WNzJrcnY6icppriXwawh5j6ht4wf8BZwnbpc2YJTJXZY7L?= =?us-ascii?Q?/+p7xqy529E2VKV60PQCOUsKeHpJPtGKAxGphI0ddxtJa/DohEKCRUfp44wJ?= =?us-ascii?Q?FL X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-64da6.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: f8e9e496-eb6e-4704-66d1-08da97635c3a X-MS-Exchange-CrossTenant-AuthSource: AM9PR09MB4977.eurprd09.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Sep 2022 21:43:43.4059 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS2PR09MB6167 Received-SPF: pass client-ip=40.92.90.15; envelope-from=arthur.miller@live.com; helo=EUR05-VI1-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:139496 Archived-At: Bruno Barbier writes: > Arthur Miller writes: > >> I just wonder if someone can explain exact what is going on here: >> >> I have a list of strings of arruments I try to pass to configure script. It >> looks something like this: >> >> #+begin_src emacs-lisp >> (defvar args >> '("--with-native-compilation " >> "--with-x " >> "--with-x-toolkit=no " >> "--without-gconf " >> "--without-gsettings " >> "--with-cairo " >> "--without-toolkit-scroll-bars " >> "--with-xinput2 " >> "--without-included-regex " >> "--without-compress-install ")) >> >> (defun configure (&rest args) >> (apply #'call-process >> (expand-file-name "./configure") >> nil build-log nil args)) >> >> (apply #'configure args) >> #end_src >> >> However it does not work, configure script seems to see wrong arguments. > > Why do you have a space after each option ? Space was there because I was assembling a command to run another Emacs process asynchronously, but I have solved it now differently. Thanks for the help, spaces were indeed the problem.