From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:700:3204::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 4L7CL8/wkmXvygAAkFu2QA (envelope-from ) for ; Mon, 01 Jan 2024 18:05:19 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id KFvXJ8/wkmWIJwAAe85BDQ (envelope-from ) for ; Mon, 01 Jan 2024 18:05:19 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=IR5RFRHm; 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=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1704128538; 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=81TfamVbBGHy6I6juOZxcP+hAF6JwW5o12l1vySuzz4=; b=S9m56x2ssRqFU1j6hFQdtl8qJ6RbkFZHGom2v1TMy0XjgH3Uf5z8ParsyfiLl3jIocAPBp Iika6X4r5T07kE8CIprJtncHcg5bXY7xHLzxvxBY2G0BuMw0Drw+NktU40jRuphe6v7jZ2 T2uZ+seFuvMKIKCv8bjuvWVItJHM992sP+/3qDIevKVk22mdwuaKD6lj75esPQnbqnftEk JHGBNiZL4snXJGWKxNr7te8SpypHzEPJ1/V+ONnw4EQHw9Q/U7st90tLzPojkLWJwPLXOV HipraBzEHjInYJNRWj7k6EQxPYPfpqfEHaBGDyuydPLkgH2gUO4NfyZJdO4+aA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=IR5RFRHm; 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=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1704128538; a=rsa-sha256; cv=none; b=QbJpno+/QGlYcCXpHDoOppXKNzrny/4k1Iu1BrvUOD9m/M6Ir7riOqbFDqGW0stR2AsKt5 pRK7yyIkat0mRTbmp4uDMjVYMZilchaE2egvlBzbcQ0hJ1NE03Au3yj43ST7Gv/bsyDAZM mniFXOcSiErCIBihHho87Q8kcQuZQWo+RuF3NVvR+FvP8ereZhmmU/b7sv0z8dziLoB9k9 F0KuH4dKGe5UUew1GVaInBTVk/imLscoH9eB4v0WWwGQre05Vmt/+g1HvZAhWUdJTFOR7A XjXHXnLOEULnJcNLSMffO0dly7MrfyekO5eGGNAtmEk2dCgpWi6SWH4pHvO+BA== 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 BDB1762FB2 for ; Mon, 1 Jan 2024 18:02:17 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rKLfF-0008Nc-ES; Mon, 01 Jan 2024 12:01:21 -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 1rKLfD-0008Lv-SW for emacs-orgmode@gnu.org; Mon, 01 Jan 2024 12:01:19 -0500 Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rKLfA-0007PU-OV for emacs-orgmode@gnu.org; Mon, 01 Jan 2024 12:01:19 -0500 Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-555b361353bso2787354a12.1 for ; Mon, 01 Jan 2024 09:01:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704128473; x=1704733273; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=81TfamVbBGHy6I6juOZxcP+hAF6JwW5o12l1vySuzz4=; b=IR5RFRHmeV2dqsAQ0JpUGHoOpz1WFY9OCb/JqyceO7Q2/ZW9Eks2JypKkiP2U3Y6E7 4Xo1skTHDvHluen8MfIqF/KqIUf+jd0iC56U8wdkA0uCkDoqp0U+V0Iwn09eqjaxIDVK Buna7lx4mbh92YrdckmIiJkaDhXRkETc7NuRU+ShAQY4wc3xXDenLjY/YSEhvan3m/RO cuoq+5xCX2whNS/O+NgWGkeF6oALjDKI6EPFc3MpHSHGa2UZO8M3d1vKDzFmKlZVCjG3 0DSFmksQsKBZkELY/XCy+oAKoqsMHleUk3xXKx9ZPyaFEH2iC1Qj8JDbgCxIPPj5erdK 6BcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704128473; x=1704733273; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=81TfamVbBGHy6I6juOZxcP+hAF6JwW5o12l1vySuzz4=; b=lPnvjGi8FXbiK2lk4UjLfNiyGsbKGZGHmsFXT38096kfZD9FnSj7SmQJQmp6vPfh+e tynEBWKdXm9eRQxaXNrfLLbP+OAxoiIg2f1eZOPN4lypZOtXXAXLNGErznCjVtomFOX2 hgJerILszP53Q9YdrEwxfhXqcozZQq4wmTsXDfHGsLdjh2ooE9ibRoFH2660UOJNU1pq b0dl4zfjaA5kEZ8hZSJFINzF5oUSTE29ig9YcwYSzW8XyMPJaOj/p7u1sqRF260H17as M6gTTYOqVhU7B5WLcYGRcQy97xrzM1IkxtWvMNoC+ct+vaUJgoFxoUuhCw3sGaE2t9Tj q+Zw== X-Gm-Message-State: AOJu0Yz9utdgPzcpluWnv/tkZ3XIIz3hOznHwYeULf95hPVvkt6jHUJO rPZSW5oi3Touk5ImtbLcTdfjLklF3dlA44yd4BWtkEA1Y10= X-Google-Smtp-Source: AGHT+IFZMIbeN0EVdGfcmSmWYlLas1ui4CLSanhU0B1RygexPd+k6RFiiNCbCWcIpSsucrWKbeI9b+bK4dsnv/Jr7ik= X-Received: by 2002:a05:6402:2354:b0:553:31c4:fb1e with SMTP id r20-20020a056402235400b0055331c4fb1emr8641697eda.123.1704128472779; Mon, 01 Jan 2024 09:01:12 -0800 (PST) MIME-Version: 1.0 References: <87o7e5mmtf.fsf@localhost> In-Reply-To: <87o7e5mmtf.fsf@localhost> From: Pedro Andres Aranda Gutierrez Date: Mon, 1 Jan 2024 18:00:46 +0100 Message-ID: Subject: Re: Re: Adding functionality to org-latex-classes To: Ihor Radchenko Cc: Org Mode List Content-Type: multipart/alternative; boundary="00000000000045af45060de55420" Received-SPF: pass client-ip=2a00:1450:4864:20::529; envelope-from=paaguti@gmail.com; helo=mail-ed1-x529.google.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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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.80 X-Spam-Score: -8.80 X-Migadu-Queue-Id: BDB1762FB2 X-Migadu-Scanner: mx10.migadu.com X-TUID: 6Cd6sJfWJ8Do --00000000000045af45060de55420 Content-Type: text/plain; charset="UTF-8" Thanks, I'll check it out! Just a way to get over some sleepless nights... /PA On Mon, 1 Jan 2024 at 10:17, Ihor Radchenko wrote: > Pedro Andres Aranda Gutierrez writes: > > > Attached is a concept which might be useful. At least it detects when > > variables are set locally and then doesn't attempt anything. > > You may rather need to hack on `org-export-get-environment', possibly > extending it. For example, we may allow more flexible > `org-export-options-alist'. > > > (defun is-in-local-variable-alists (sym) > > "Check if symbol is in any local variable alist" > > (when > > (or (and (boundp 'connection-local-variables-alist) > > (assoc sym connection-local-variables-alist)) > > (and (boundp 'file-local-variables-alist) > > (assoc sym file-local-variables-alist)) > > (and (boundp 'dir-local-variables-alist) > > (assoc sym dir-local-variables-alist))) > > t)) > > Note that you can simply use `buffer-local-boundp'. > > -- > Ihor Radchenko // yantar92, > Org mode contributor, > Learn more about Org mode at . > Support Org development at , > or support my work at > -- Fragen sind nicht da, um beantwortet zu werden, Fragen sind da um gestellt zu werden Georg Kreisler Headaches with a Juju log: unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should run a leader-deposed hook here, but we can't yet --00000000000045af45060de55420 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks, I'll check it out!=C2=A0
Just a way to= get over some sleepless nights...=C2=A0

/PA
=

= On Mon, 1 Jan 2024 at 10:17, Ihor Radchenko <yantar92@posteo.net> wrote:
Pedro Andres Aranda Gutierrez <paaguti@gmail.com> w= rites:

> Attached is a concept which might be useful. At least it detects when<= br> > variables are set locally and then doesn't attempt anything.

You may rather need to hack on `org-export-get-environment', possibly extending it. For example, we may allow more flexible
`org-export-options-alist'.

> (defun is-in-local-variable-alists (sym)
>=C2=A0 =C2=A0"Check if symbol is in any local variable alist"=
>=C2=A0 =C2=A0(when
>=C2=A0 =C2=A0 =C2=A0 =C2=A0(or (and (boundp 'connection-local-varia= bles-alist)
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (assoc sym conn= ection-local-variables-alist))
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(and (boundp 'file-local-v= ariables-alist)
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (assoc sym file= -local-variables-alist))
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(and (boundp 'dir-local-va= riables-alist)
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (assoc sym dir-= local-variables-alist)))
>=C2=A0 =C2=A0 =C2=A0t))

Note that you can simply use `buffer-local-boundp'.

--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,=
or support my work at <https://liberapay.com/yantar92>


--
Fragen sind nicht da, um bea= ntwortet zu werden,
Fragen sind da um gestellt zu werden
= Georg Kreisler

Headaches with a Juju log:
unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should ru= n a leader-deposed hook here, but we can't yet

--00000000000045af45060de55420--