From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id GG0TEqCxJ2a40wAAe85BDQ:P1 (envelope-from ) for ; Tue, 23 Apr 2024 15:03:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id GG0TEqCxJ2a40wAAe85BDQ (envelope-from ) for ; Tue, 23 Apr 2024 15:03:28 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=lxunOghs; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1713877408; 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=MjeTQRlgysHYCZxpt/rQ7LE7Lwg2GPIlxP5Srsamzfs=; b=RdKAIt/Ss/qhkJaIQgW0DUbo6RLplR/xLYN2eQ7VQdERqakAmYQ+WwvoNdzpNRPiqipQ3A 7rH5yZDESqnXPbmdB+QhLh78ozVI5fbjeMQlizMpdD89BWOcMI5jxQvQSPF42oBYMP4UCK Y2UGC8UAP1v3BQHNlRQ9Qg+tJIdQd8DB59h2v0D8hVEdSY1nnbIc+slCwCwuPHYSkRu4t2 39R9Ti7g265P1l6ixbNPW3bzp/19LtFl1EGKpQCbOmV08u/ayh5y7tNKQJgMeUf+/tiy4r cZFZDd3VdNGwJeWAX7lkkZcmOemTlrhzTsXsK79vXVJKjKcdit740czBcWLzZQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=lxunOghs; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1713877408; a=rsa-sha256; cv=none; b=oWWZ18bQPtuH6y7bX6Iffr/xxBNeaAFk4cPORtMyh/aGulHOGE6ppa9upJjLhg+LsAnCgX Sd+QCdIQB5sSMRk3QEW03MC+Zah5hpe7hiR1veAuTLqc+FsLIByTKIq3AGhIDHLgVT+mwT UDea21WDrJCQC+SArpJM/5OPk2PHRy6WkhzB0GLi7CfnrlLA/QvcSEmxjZY7e3pwYoNnKe 7zI2d+HBTI+dMTElksEuMgq4M5uOiEdLroGHiufVJEfj+Q6cEhmTEdnV/s9OqKGdCIDaKY xA1bvESfrjRvnaX9Uy1RfxMv84QFfYC+nqYUfOD8ASWKJCTqHSWuHsR4GlgpkA== 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 044BA64ED2 for ; Tue, 23 Apr 2024 15:03:28 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rzFnZ-0008Ga-K1; Tue, 23 Apr 2024 09:03:01 -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 1rzFnX-0008G0-Nh for emacs-orgmode@gnu.org; Tue, 23 Apr 2024 09:02:59 -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 1rzFnP-0007Rb-SL for emacs-orgmode@gnu.org; Tue, 23 Apr 2024 09:02:57 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id DEBC1240104 for ; Tue, 23 Apr 2024 15:02:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1713877368; bh=D/YB0tBjqkz4XeXjO0RoxnUsxzfqD22/NKm+dx2bm1I=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=lxunOghsgvsDS+g36fFmSS5eWPV/g3F+yGILxRuZsaQPzp34/nYP4LqUMrAuMZUdX wbOnSSxzeHcK0wrCoh5WDwqVR/GZaBSa5UOBSSaAsoi4sFuraWSitciNO7/A3Fb1l5 Cae7AGsPrLYUznYAOk6SK0hpjzPGR4cNVSop5/iSNY4spigzPrikt3IFVtoBf4hZlM 7sj5YrsvVy8d1cIVRYsgldmW9eUW6BHI1eXCzOkPJifCG6M2ivXieGrIq03OrAaKFB SXk0WezJdYZtf/EtvwFTjb77zhlgECywxq+80tDE96wQ8bAOi+NcB9mhgZvLu7WQJj RUqZUYVq7wlKg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4VP2N73GS8z6twd; Tue, 23 Apr 2024 15:02:47 +0200 (CEST) From: Ihor Radchenko To: Emmanuel Charpentier Cc: emacs-orgmode@gnu.org Subject: Re: Is there a way to set options *programatically* ? In-Reply-To: <8b8364dec444908b3cfaab6c7c32800850d62a52.camel@free.fr> References: <8b8364dec444908b3cfaab6c7c32800850d62a52.camel@free.fr> Date: Tue, 23 Apr 2024 13:03:42 +0000 Message-ID: <87il08p6xd.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: -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_H4=0.001, RCVD_IN_MSPIKE_WL=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 X-Migadu-Spam-Score: -7.39 X-Migadu-Scanner: mx11.migadu.com X-Spam-Score: -7.39 X-Migadu-Queue-Id: 044BA64ED2 X-TUID: 5ks+piPiyt5i Emmanuel Charpentier writes: > I'd like to create a function able to set some options, namely > > - `#+options: tex:`{t|dvipng|imagemagick} > > - `#+export-file-name:` > > I have been unable to find a *documented* way to do that from `elacs-lisp`. > > I *think* that an `org` source block could place those options in the buffer, but I can't find a way to reliably trigger a "setup refreshment" of these options from `emacs-lisp`. > > Any ideas ? You can set `org-export-with-latex' variable value - it is a counterpart of tex: option. See 13.2 Export Settings section of the manual. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at