From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 8O5fIKt0cGPqnQAAbAwnHQ (envelope-from ) for ; Sun, 13 Nov 2022 05:38:03 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id ICJrIKt0cGP7KgAA9RJhRA (envelope-from ) for ; Sun, 13 Nov 2022 05:38:03 +0100 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 37A86C30C for ; Sun, 13 Nov 2022 05:38:03 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ou4kE-0003ad-4q; Sat, 12 Nov 2022 23:37:22 -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 1ou4kB-0003aA-Rm for emacs-orgmode@gnu.org; Sat, 12 Nov 2022 23:37:19 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ou4k9-0000Kl-PD for emacs-orgmode@gnu.org; Sat, 12 Nov 2022 23:37:19 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 5FD29240101 for ; Sun, 13 Nov 2022 05:37:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1668314235; bh=NYr5q+RLgEcz+EPZpMRnTHTAS8SFbWc9sntKsIuq1+s=; h=From:To:Cc:Subject:Date:From; b=NRnAOpXlkXkwUmzBENdqp89btV+qFPjjnJ0SXI/kpBciyLLfa37ltPh8uPLQZrVTb M6iIcrrzadSAf6L95ZuZNYC1K1qj1eYp+fe8+93y1GKQ2/HrL/8zI40b+vm1msFM5O +cwxPbUM8jOtpR76qEs9r2erpSfXKIA2awSYtc037/MWBhBP6ZN/DcLOFktG/Bs/2l Vqb9tv4dg6BNNTUQJJ9RCJzSCzMAvUomY7/sq91SIPseo5RIifSIt5TeGhAfiQbyWX NrDAWtIOta/yGbNVA9kGZO1KWnT1d/scWReEj1dr7VNnGgr1/6/N0Xr1EA1FAByRMk MCuFfCVnaJK8A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4N90610pzkz6tmc; Sun, 13 Nov 2022 05:37:12 +0100 (CET) From: Ihor Radchenko To: Jeremie Juste Cc: Ihor Radchenko , Rudolf =?utf-8?Q?Adamkovi=C4=8D?= , emacs-orgmode@gnu.org Subject: Re: [BUG] Incorrect background color [9.5.4 (release_9.5.4-3-g6dc785 @ /Users/salutis/src/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/)] In-Reply-To: <87leogzd7a.fsf@gmail.com> References: <87h740i0ms.fsf@localhost> <87sfjonj3c.fsf@localhost> <87leogzd7a.fsf@gmail.com> Date: Sun, 13 Nov 2022 04:37:54 +0000 Message-ID: <87cz9r8o65.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de 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, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1668314283; 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=AYuYQ01Mqm4VwC4+c5Y6++T57ceDu15ohAw9SdNn+IQ=; b=BfER3rafc/8o9bKRPMGqA+pj6yf7zZ78yUuFKnx6tpP7+cvNU0gnIpz2WapJ7j0F0ZKNoU kI7rChungYwSn4wCZfLdaPjLSSwibLsHiz5njHfw3yNLEhGFWVNaEODvtQjGrf9AyVzUmN dHcskLwYGrKOgHFNs0/oee4adPfj+KZB0f5+KHK0fqvDNGhUdmg3ucxMTdGR/x/BpTHyfz l6MW7enBMz/DnXgl9JzSnGMyJ8uDcEUQPoPI+4nePP99SoG0VWdqqt9gqIy4zNBrI0uDZT WtFeUj4XTHJPBxMIHHAuZILNMxCaGB/gBlkVOPAiZbPsk2PQuECcfUmuSA+L3g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1668314283; a=rsa-sha256; cv=none; b=A79qRIw66kgAYuUEZTD5W8yAeiz01K/jRH/um0vXwruI4t3HCM8Bld/fj9QjBsfW9+3GII BY+EaWGke7znMYDz+F23e2xroy/DletgGar7l4pujoQkbQYrtNWwm1MrjB/kttWXSvb/JL hgzYFKEntPCsxnmOms4BIh7EijOLS6vBaHsB1ZmVEcyS6lKSw06r8yG4lhnDerypx5C1EX LD436jZQM1wf3SSokubEsG6pAR2qH0+Sbi/a3DE+WWZfx6E+ePhSQlkUZNE8W6h7BTO5v1 wShaJOroxYVgpBV9YyemQmx/bQ8GTgtCbGX5mQ0MIeNBIzqrRrE//AJelfXnlg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=NRnAOpXl; dmarc=pass (policy=none) header.from=posteo.net; 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: -2.04 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=NRnAOpXl; dmarc=pass (policy=none) header.from=posteo.net; 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: 37A86C30C X-Spam-Score: -2.04 X-Migadu-Scanner: scn1.migadu.com X-TUID: gqTga/24Gf/z Jeremie Juste writes: > >> WORG page is not accurate here. The truth is that ob-R.el does not provide > >> any defaults for header args. Instead, R defaults are used. I suspect > >> that defaults for background color changed in R since the WORG page has > >> been written. > > > > Jeremie, could you please take a look? > > Yes. Thanks for confirming the issue. I confirm that the white backgroud is the default and is R default. > I could not trace back any recent change in R. So I suspect white was always the default. > But I could well be wrong here. > ... > Thanks also for updating the WORG page. Thanks for the confirmation! Also, it was Bastien who updated the page. Fixed. https://git.sr.ht/~bzg/worg/commit/5c24f6e33f20505ee161cd2c5fc93e39891d08ad > Note also that R parameters always takes precedence on the org-mode ones. As in the example below. > > #+BEGIN_SRC R :results graphics file :file test.svg :outputs both bg red > par(bg="blue") > plot(1:10, type = "n") > #+end_src > > In opinion the actual org parameters are the right ones. But I'm open to suggestions. I do not think that we can do anything about it and I do not think that we do anything wrong. Org can set options provided in header args as defaults, but the actual code can do anything, including changing those defaults. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at