From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:5f26::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 0DzaMY1+hWUosAAAkFu2QA (envelope-from ) for ; Fri, 22 Dec 2023 13:18:21 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 4D+BLI1+hWUMEQAAqHPOHw (envelope-from ) for ; Fri, 22 Dec 2023 13:18:21 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=eSc5OtVF; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1703247501; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=qjTbBwTeEEpPFM1XaSnfYL+yu1zC/RovT5BFDC0Vd7c=; b=caBpyhrlPPt5O+TwzPyPOT9Hw7IvOAW15JXs7pUB9cUaJhhe2UUuxz1nS4ObifNIE1eFTh 1fagTiold+H02U/GBjSzexdaNau+URRTcwYcQHGpipxTYuYmWRZIRrG4CQdE3T3gS4G7Ze ejQusOWJRFjCuBDY/sn9Lfx8TSB9ZnZY/lMHVZTlcWPGytaswFTWISwOwepeBMR8XBsJl3 BIspRdumANhX3allCO9am/Pyit7dZDzxZZVTEBiZYLOdpvT3unLJ+a18U7ZuZUtLFG5HtW I0oblrrmiShlnZgKCLcqcb9Bfm0gIeEzz46l96fVkdzJ45FEnbXAe7j5FHylCA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=eSc5OtVF; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1703247501; a=rsa-sha256; cv=none; b=WzKQN9B99Rl9czrPhjxa1oi0k0iZYo9nlI9to76LixLFP8jPghCdtrGX2luuZpclTsuQSO 7KXRIOfenvCib8lhBYasaxFqTOB6dW1qeeFgn8lrKmGjepzkjawxfWjplhwer6Han7uPZP nPVa1xE4omQdNjZapx9zZ55JemdN9vWYV1Z0sQKnCAOiYJTqC8vzntyplzou1q3LtcyraZ 5OqkFTAkx74bKEQrHxOdDJUyzL02Am3oQl1P58OxUWWbkISvnUaI42PjejDRKM6jQE6GOF Ix96PJiK+uHcJh59Qs4JpMQA92MEgV6odBUay7f/WNAkzCbu3bDsaLqBj71Tkw== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7E72A5FD28 for ; Fri, 22 Dec 2023 13:18:21 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rGeT9-0007v9-88; Fri, 22 Dec 2023 07:17:35 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rGeT8-0007uW-AO for emacs-orgmode@gnu.org; Fri, 22 Dec 2023 07:17:34 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rGeT5-0002mD-G8 for emacs-orgmode@gnu.org; Fri, 22 Dec 2023 07:17:34 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 419F2240028 for ; Fri, 22 Dec 2023 13:17:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1703247449; bh=qjTbBwTeEEpPFM1XaSnfYL+yu1zC/RovT5BFDC0Vd7c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=eSc5OtVFcEHjHfnZQppqL7tf7QhlzEFfcOP3oYunF35OOh376OLZDsV2/WcCNUYDB Fbrc29c89l3noakURoQFOBE81pkY+JoV6Lo7CuJqtU0NdzOJU3J4LIH7uTGOE3bJyx 69sqeEb0pGCUfv+lBBkt/n6+kN8cC8zwBAVMqDFIRPlqV7d2DU5Gs+gMJ2QLlPHKgu wk4Jx1ziWpPWYZTiSr5CGWKNQuli8JC92fGR2/6xpxSwBBHCQLXhHMpjzp0xbEbQ8z /AyQEEZeBitj0Kj9BHLPsuNOj2vdUYe4SVWkp3ajou4LRPKpzuSQU/fnWQU+sUsSBZ cl/jh3ZsFMauw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4SxRBc5BDKz6twX; Fri, 22 Dec 2023 13:17:28 +0100 (CET) From: Ihor Radchenko To: Leo Butler Cc: tbanelwebmin , "emacs-orgmode@gnu.org" Subject: Re: [PATCH] ob-C.el compile-only header argument, was Re: How to use mpirun with C or C++ Org-babel? In-Reply-To: <87h6kdyh52.fsf_-_@t14.reltub.ca> References: <1819406926.505980.1701990611441@fidget.co-bxl> <6efe8fc4-c12f-e128-8d7e-9e32887b127c@free.fr> <87plzg7l25.fsf@t14.reltub.ca> <87msukbadu.fsf@localhost> <87r0jq3x0e.fsf@t14.reltub.ca> <87r0joq3kr.fsf@localhost> <87h6kdyh52.fsf_-_@t14.reltub.ca> Date: Fri, 22 Dec 2023 12:20:41 +0000 Message-ID: <877cl6l97q.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -8.45 X-Spam-Score: -8.45 X-Migadu-Queue-Id: 7E72A5FD28 X-Migadu-Scanner: mx10.migadu.com X-TUID: jZUvglD2N/TV Leo Butler writes: >> What will happen if we have something like :results value or :results >> output instead of :results file link? > > Originally, I felt that only ":results file" makes sense. I have adopted > your suggestion, though, and added test cases so that the compiler > stderr output is caught. Thanks! This makes sense, but now the default behaviour (when no :results type is specified) is unexpected. When you have something like #+begin_src C :compile-only t :file foo :includes "stdio.h" printf("This is test"); #+end_src , executing should yield file link, even though it is not explicitly specified. And when you have compilation error, #+begin_src C :compile-only t :file foo :includes "stdio.h" printf("This is test") #+end_src the result may be empty - buffer displayed by `org-babel-eval' is probably enough. Basically, Org babel promises DWIM behavior when :results type is not explicitly stated. P.S. In my testing, I wrote #+begin_src C :compile-only t :file foo :includes "stdio.h" (printf "This is test") #+end_src and was staring at the compilation error for a good minute, trying to understand what the hell did I do wrongly =F0=9F=A4=A6. --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at