• Juri Linkov's avatar
    Implement Occur multi-line matches. · 774642e5
    Juri Linkov authored
    * 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'.
replace.el 72.7 KB