On Wed, May 20 2020, Denis Bitouzé wrote:
┌────
│ (setq LaTeX-verbatim-environments-local '("foo"
│ "bar"
│ "baz"
│ ))
│ (dolist (env LaTeX-verbatim-environments-local)
│ (add-to-list 'LaTeX-indent-environment-list (list env
#'current-indentation)))
└────
Haven't you placed the `dolist` inside a `with-eval-after-load`,
like you did in your earlier version? Emacs is simply telling you
that the variable `LaTeX-indent-environtment-list` isn't defined
yet, which is true because the relevant AUCTeX file hasn't been
loaded yet.
If you use `with-eval-after-load`, the problem should go away.
--
Joost Kremers
Life has its moments