While preparing a paper using the IEEEtran class in conference mode, I was overloading the \end command using \RenewDocumentCommand (for personnal use). The result is that an extra blank line is added to the authors:
\documentclass[conference]{IEEEtran}
\usepackage{xparse}
\title{An unimportant paper}
\author{\IEEEauthorblockN{First author}
\IEEEauthorblockA{address}}
% \let\oldend\end
% \RenewDocumentCommand\end{m}{\oldend{#1}}
\begin{document}
\maketitle
-------------------------
\end{document}
When uncommenting the two commented line, an extra blank line appears below the authors (and above the ---------line). It comes from a \crcrcommand when displaying the authors. This phenomenon does not occur when \renewcommand is used instead of \RenewDocumentCommand.
My questions are thus the following: - Why does this happen? - Though it is very easy to solve in this case, is there a way to know in advance when such phenomena can occur?

\end? – egreg 6 hours ago\beginand\end(as well as\section,\item, ...). – Thomas Colcombet 6 hours ago