emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re: Adding functionality to org-latex-classes


From: Pedro Andres Aranda Gutierrez
Subject: Re: Re: Adding functionality to org-latex-classes
Date: Mon, 1 Jan 2024 18:00:46 +0100

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 <yantar92@posteo.net> wrote:
Pedro Andres Aranda Gutierrez <paaguti@gmail.com> 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 <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 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]