It's clear that AUCTeX has some way of determining the documentclass, since some functions behave differently depending on which documentclass is selected. For example, `LaTeX-insert-item` behaves differently when the documentclass is beamer.

I'm writing some custom code that needs to test what the documentclass is. Obviously, I could roll my own code to do this, but I'd prefer to use the same functionality as AUCTeX. Is there a function or variable in AUCTeX that contains this information? I looked, but did not find anything.

Thanks!