Maxima ships with EMaxima, an Emacs mode to embed Maxoma code into LaTeX.
While the Emacs EMaxima mode is derived from AUCTEX, the mode is not recognized by TeX-command-master provided by the latter. As a result, when you press C-c C-c to compile the LaTeX document, many commands (including LaTeX!) are not available for selection. The patch fixes this.