Adam Duck writes:
OK, try this one. It doesn't require any external programs but has
sometimes problems counting deleted buffers :).
Thanks, this is Bob's original code. The code I posted is specific to
tex buffers and ignores (or tries to ignore) tex/latex commands.
The original code I posted now works under Xemacs, since I forgot
about the fsf comp package.