Implement Occur multi-line matches.
authorJuri Linkov <juri@jurta.org>
Tue, 23 Mar 2010 16:09:45 +0000 (18:09 +0200)
committerJuri Linkov <juri@jurta.org>
Tue, 23 Mar 2010 16:09:45 +0000 (18:09 +0200)
commit774642e5492984eceb237d6fc4de129fd3996ed5
treed0d6c434335db2b462e836bf2fe6f95073615a8a
parent53e87c57beb29757236032939c9333cb2e56d024
Implement Occur multi-line matches.
http://lists.gnu.org/archive/html/emacs-devel/2010-03/msg01044.html

* replace.el (occur): Doc fix.
(occur-engine): Set `begpt' to the beginning of the first line.
Set `endpt' to the end of the last match line.  At first, count
line numbers between `origpt' and `begpt'.  Split out code from
`out-line' variable to new let-bindings `match-prefix' and
`match-str'.  In `out-line' add non-numeric prefix to all
non-first lines of multi-line matches.  Finally, count lines
between `begpt' and `endpt' and add to `lines'.
etc/TODO
lisp/ChangeLog
lisp/replace.el