1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-22 20:42:26 -08:00
emacs/test
Juri Linkov dc2d2590b2 Make occur handle multi-line matches cleanly with context.
http://lists.gnu.org/archive/html/emacs-devel/2010-03/msg01280.html

* replace.el (occur-accumulate-lines): Add optional arg `pt'.
(occur-engine): Add local variables `ret', `prev-after-lines',
`prev-lines'.  Use more arguments for `occur-context-lines'.
Set first elem of its returned list to `data', and the second elem
to `prev-after-lines'.  Don't print the separator line.
In the end, print remaining context after-lines.
(occur-context-lines): Add new arguments `begpt', `endpt',
`lines', `prev-lines', `prev-after-lines'.  Rewrite to combine
after-lines of the previous match with before-lines of the
current match and not overlap them.  Return a list with two
values: the output line and the list of context after-lines.

* search.texi (Other Repeating Search): Remove line that `occur'
can not handle multiline matches.

* occur-testsuite.el (occur-tests): Add tests for context lines.
2010-03-30 19:03:08 +03:00
..
cedet License updates for some test/cedet/tests files. 2010-03-10 22:58:54 -08:00
bytecomp-testsuite.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
ChangeLog Make occur handle multi-line matches cleanly with context. 2010-03-30 19:03:08 +03:00
icalendar-testsuite.el Fixed bug#5549 (icalendar.el) 2010-02-19 19:59:00 +01:00
newsticker-testsuite.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
occur-testsuite.el Make occur handle multi-line matches cleanly with context. 2010-03-30 19:03:08 +03:00
README Mention etc/compilation.txt 2009-07-26 15:59:37 +00:00
redisplay-testsuite.el Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00

This directory contains files intended to test various aspects of
Emacs's functionality.  Please help add tests!

(Also, see etc/compilation.txt for compilation mode font lock tests.)