Home Forums General XMetaL Discussion Count Macro Reply To: Count Macro


Reply to: Count Macro

This is probably an annoying suggestion, but here's what I do:

1. Have a macro and corresponding menu item that opens the current document in emacs.
2. In emacs do M-x occur RET (where is the string you want to search for. M means “meta” and is usually the Alt key on a windows keyboard.

When you do that, emacs opens another buffer that says, e.g.  “5 lines matching in buffer foo.sgml” and then lists those lines. When you click on a line in the list, it takes you to that spot in the file in the other buffer.

I really don't know how people who don't use emacs live without things like this (and there are many more).