Is there a way to query the major mode for a buffer? There are lots of ways, depending on what you mean by query. Does `C-h m' do what you want?
Pointers to docs should suffice. `C-h i' Emacs _______________________________________________ Help-gnu-emacs mailing list Help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs