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: Ihor Radchenko
Subject: Re: Re: Adding functionality to org-latex-classes
Date: Mon, 01 Jan 2024 09:21:00 +0000

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>



reply via email to

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