Here’s a great Emacs 24 tip from Xah Lee’s Google+ ErgoEmacs circle. If you’re in an Emacs occur buffer you can call 【Meta+x】 occur-edit-mode
and then make changes to the occur buffer that will be reflected in the original file.
This can be particularly useful with multi-occur
because you can operate on several buffers at once. When you’re done making changes call 【Meta+x】 occur-cease-edit
to post the changes. Although the documentation doesn’t mention it, occur-cease-edit
is mapped to 【Ctrl+c Ctrl+c】.