generic major mode for tabulated lists. (emacs 24 backport)