From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id +CH+CpW84WKWegEAbAwnHQ (envelope-from ) for ; Thu, 28 Jul 2022 00:30:45 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 0Dr6CZW84WLmPwEAG6o9tA (envelope-from ) for ; Thu, 28 Jul 2022 00:30:45 +0200 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 97067ED11 for ; Thu, 28 Jul 2022 00:30:44 +0200 (CEST) Received: from localhost ([::1]:57720 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oGpYB-0000sk-Ms for larch@yhetil.org; Wed, 27 Jul 2022 18:30:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59900) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGpX2-0000sa-EE for emacs-orgmode@gnu.org; Wed, 27 Jul 2022 18:29:32 -0400 Received: from out1.migadu.com ([2001:41d0:2:863f::]:32428) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGpX0-0005Dj-6h for emacs-orgmode@gnu.org; Wed, 27 Jul 2022 18:29:32 -0400 References: <20220719231520.100206-1-joseph@breatheoutbreathe.in> <87bktduydf.fsf@localhost> <87o7xdot4d.fsf@breatheoutbreathe.in> <877d40ctho.fsf@localhost> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=breatheoutbreathe.in; s=key1; t=1658960965; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=O59tNnGtPM/btUR/MbyGTSCbeV4CAeW9zt3/q/3ZtuY=; b=lxu3coHm8kbJ475DhwWeyMwJzkoOJxyBEU6gTszMUtMmwR+OczN/BBSwi0Euu0fEPq7Wsx 9OOOMs3B72FjN7FfYJ+P625IEDmrKDl9zJFhY2+VqBVOYqqcEbYnLYE8K32vtKGd19dwLU hNFyPe2LxM8eg2WFrcodm2cgn8r8dys= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Joseph Turner To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Subject: Re: [PATCH] lisp/ob-plantuml.el: Insert results in buffer Date: Wed, 27 Jul 2022 13:51:17 -0700 In-reply-to: <877d40ctho.fsf@localhost> Message-ID: <87h732w5og.fsf@breatheoutbreathe.in> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2001:41d0:2:863f::; envelope-from=joseph@breatheoutbreathe.in; helo=out1.migadu.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1658961044; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=O59tNnGtPM/btUR/MbyGTSCbeV4CAeW9zt3/q/3ZtuY=; b=JEagvUTGxOKVf8OpKf8T9nkOCAXAzlz9bL8Ia0I/mTD0Moiu41t4N4XbmpLkMqpV1Z4gqQ Q0yn9jU7++EZIP6jdp+tQO73AmMKxmg6e99XY+ucccoSL6vt1h0KB7kFkq4PvMA0w4YGED H3uPPMO0ggtfHE9udd6j6TifST0psoHfKXzKFTecj4g3TSigeP9SZuasKKUiw1HaIywiTv /I0VLBhnkFW75rtZJQzrgWYsSFebo67l3Alm+4EYxCbcCqyn928+3UC9Rx2394CGK+TDdu 6N/G/VC386OWLvEeipu26bJ80s8b9JcjyQqS5baZlIBk7l+GVRDo1JPYrVNiMQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1658961044; a=rsa-sha256; cv=none; b=XwPjyogjKsdVshISp66Fv0fsKqZsSpsILVgfBfomOoUZtx8wqgk25TUau4EyKLtg5qyTSO V2A3yqeSN0qLNhrvYyDjbJZFrrY5uRGOJZEVgsoDtpkeVdCw2fLTiOSWRxgnEWubCyxNHI YPIdRPZHEo7g+ivxFyJovhv5PNFsTCbxf6hYZGnCWHnPN/Y+rM2krKuHpo5rKOlgS21yLh p38qNtrr61nQguzTuaG95VbNO3KIlAG8KzcqvKK2yiEiWTuzpx+U+MgCVNoJMYuzFPlU74 GJfqLVDS1vDoNlRMC651qDu0++X0XwQyuxGAtjEMFM/jSLH5+7VLQLIHeuHFjw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=breatheoutbreathe.in header.s=key1 header.b=lxu3coHm; dmarc=pass (policy=quarantine) header.from=breatheoutbreathe.in; 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" X-Migadu-Spam-Score: -3.93 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=breatheoutbreathe.in header.s=key1 header.b=lxu3coHm; dmarc=pass (policy=quarantine) header.from=breatheoutbreathe.in; 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" X-Migadu-Queue-Id: 97067ED11 X-Spam-Score: -3.93 X-Migadu-Scanner: scn1.migadu.com X-TUID: qpG+3ytiDFM1 Ihor Radchenko writes: > You can examine :result-params property inside params plist. If that > property does not explicitly mention different results Type (see 16.6 > Results of Evaluation), ob-plantuml may set the type to "file" with > plist-put. Perhaps I'm confused, but I think org-babel-default-header-args:plantuml is actually an alist, right? I tried removing the (:results . "file") from org-babel-default-header-args:plantuml, and then overwriting the params argument inside the let* block like so: ``` (let* ((do-export (cdr (assq :file params))) (params (if do-export (add-to-list 'params '(:results . "file"))) (out-file ... ``` Logging the params variable after the let* block reveals that :results is set to "file", but I still get "Code block produced no output" when I try to evaluate the plantuml org src block. Thoughts? Joseph