improve Emacs output

Now with generated file section headers. This still doesn't provide
per-tag offsets in source file; it outputs "0" instead.