I'm trying to redefine the block environment in beamer so that the itemize/enumerate bullets follow the color of block title instead of structure:
\documentclass{beamer}
\renewenvironment<>{block}[1]{%
\begin{actionenv}#2%
\def\insertblocktitle{#1}%
\par%
\mode<presentation>{%
\setbeamercolor{local structure}{use=block title,%
fg=block title.bg}}%
\usebeamertemplate{block begin}}
{\par%
\usebeamertemplate{block end}%
\end{actionenv}}
But this immediately throws the error
ERROR: LaTeX Error: Command \beamerx@\block already defined.
This seems very similar to the problem discussed at: How to redefine the \emph command in Beamer?
The aforementioned thread culminated in the discovery of a bug in beamer which was patched 4 years ago, and I'm wondering if this might be a similar bug in beamer's renewenvironment.
\originalblock&\endoriginalblockor with\LetLtxMacromanually) you end up with an endless loop. – stefanct Jul 09 '19 at 14:13