From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id OAI1DuzhwWYVAAAA62LTzQ:P1 (envelope-from ) for ; Sun, 18 Aug 2024 11:58:36 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id OAI1DuzhwWYVAAAA62LTzQ (envelope-from ) for ; Sun, 18 Aug 2024 13:58:36 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=fdSQUoN7; 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=1723982316; 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=kGkBfB8yFfvi3V7EBkxt3JQoEbazQgIs9e/KpiDtJo4=; b=uPVP11ohMG9FE5M29r53916/PvxgDUDk2XrJrNniMppOsLwej6XjjbHQ77AlTLzA1tWt9D 2P1wrKU4x+KS7tNs8O54fWJUyB82sOQ6MSTGXwF1R9bYFL8PuLd7dV9M8G5z4h9cxdOqaV DuRUc0sVsmyIbUloAbi4h0joZbgv8HpRX29wdJkdYC9XVaQIf+IvfWeXy9wRmINzj+Beqo dYpXFM7TLE02WX3eE5mbyrL/2pu4TtTF/I4FAyBtVgEofr9iY08zobnFCkZ5kX8YZdAfCt i/e4UXqh00/IK3oPGwhHsWE05spx4ACnAyX1sBQxAEx7asaOrYLVBaVPYXPfNg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=fdSQUoN7; 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=1723982316; a=rsa-sha256; cv=none; b=VhYHWWB2gK1dczvbaP+CmFqXHiwqvrVN10rvT9zuD0bvaQaKp9Frt+qkx/WxRRZxzUSujC H2XquVlhTWsvnq3NtmgpVwWMSOUmkS/iSvwSWTJF4/12sEkj0a9MGUjxSMjSqnd9/f9iPh 9ffiC7wWP0KZwxAnaGBPUKeauJBYYO22rXZSX7ApnNONC+Brb4l/fqZVqe1LPgQVv9M0Cs 8RJP/KRy6lXbLMTSNr5MFn2f9PfIJ39U9Vn0md51v8ravzcxeSHO0bBKzSh1ox93rQMtxu ShGxI9wXNg9yP38KljqyB6cOnFQUeuAHpxbyPzheHoRybXDBbTGKn2HFD2V9rQ== 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 C95763AD1E for ; Sun, 18 Aug 2024 13:58:35 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sfeXb-0006Wi-2d; Sun, 18 Aug 2024 07:57:47 -0400 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 1sfeXZ-0006WL-Dq for emacs-orgmode@gnu.org; Sun, 18 Aug 2024 07:57:45 -0400 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 1sfeXX-0003Do-4v for emacs-orgmode@gnu.org; Sun, 18 Aug 2024 07:57:45 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id F239B240104 for ; Sun, 18 Aug 2024 13:57:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1723982260; bh=Nvijkrm7aUCNl6dcXbhAbiy0BwqeAZ4XAW7rKVZtZFc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=fdSQUoN7xipy931udgoRj07s+e9XmJZyAVXGggN2cM2ejHIYPVUS+pzZBUd52QAUw b2jEPXQjDVI9eVgMi8a5MygszXJ+kyoJ/tejgbQZp1wQXzbbgJYHubaFuJBcG7/Nma kN65y8hCUuZIsX5BFMXUmhNf67JSA5YCB6NcVgsPzJwKmyM0nNKO/nPickizYeA1c/ CwjzBpf5QmoYvRoYX+rxEXq9SbCIsxty9HQVPWtB+UC2DSOX/oLJKJoOIxqi1FMIe4 /hhfUi/pVpQ/hcu1qAXJESbhPfBuKNQeA9xjD5uKufF6mrPSn2ddqsoe1Fb+Ax578M 17Z/Dub9dcgvw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4WmvNz4Vnjz9rxF; Sun, 18 Aug 2024 13:57:39 +0200 (CEST) From: Ihor Radchenko To: =?utf-8?Q?S=C3=A9bastien?= Gendre Cc: Org mailing list Subject: Re: Link between org-publish project options and org-export-options-alist In-Reply-To: <87jzgk1p0h.fsf@k-7.ch> References: <87jzgk1p0h.fsf@k-7.ch> Date: Sun, 18 Aug 2024 11:58:44 +0000 Message-ID: <87h6biyrd7.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.66; envelope-from=yantar92@posteo.net; helo=mout02.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_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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-Queue-Id: C95763AD1E X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -9.69 X-Spam-Score: -9.69 X-TUID: VpauGw0t8vLv S=C3=A9bastien Gendre writes: > I (continue to) develop a custom preamble function. And I try to found > if there is a link between options set in an org-publish project and > options set in variable `org-export-options-alist. > ... > For my function, I have defined one new export option in the variable > `org-export-options-alist`: > > (add-to-list 'org-export-options-alist > '(:html-doc-name-template "HTML_DOC_NAME_TEMPLATE" my/or= g-html-doc-name-template nil)) This is a wrong format. Please check the docstring. Should be '(:html-doc-name-template "HTML_DOC_NAME_TEMPLATE" nil my/org-htm= l-doc-name-template nil) > But, when I use org-publish and try to retrieve option ":html-doc-name-te= mplate" from my > custom preamble function like this: > > =E2=80=A6 > (plist-get info :html-doc-name-template) > =E2=80=A6 > > If I do not define the options `:html-doc-name-temple` in my publish > project options, I get the value `nil` and not the value of the variable > `my/org-html-doc-name-template`. > > Are the options of org-publish independent of options defined in > `org-export-options-alist`=C2=A0? Publish plist is transferred to INFO plist, taking priority. However, parsing the in-file keywords and export options should be configured via export backend (or globally, all backends, as you did by modifying `org-export-options-alist') - you can create a custom derived backend programatically within you publishing function via `org-export-create-backend'. --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at