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>