With emacs 24.3, `C-u M-=' now counts lines/words/characters in the entire buffer. I suggest that the functions `untabify' and `tabify' from lisp/tabify.el may accept such an optional argument to apply to the entire buffer. A patch is attached to this message. Thanks for reading, -- Matthias Meulien