Mercurial > emacs
view src/m/xtensa.h @ 107653:bfde3c2dbef5
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.
author | Juri Linkov <juri@jurta.org> |
---|---|
date | Tue, 30 Mar 2010 19:03:08 +0300 |
parents | 0e3e875ffade |
children | 641672d44942 |
line wrap: on
line source
/* Machine description file for Tensilica Xtensa. Add a license notice if this grows to > 10 lines of code. */ #define NO_ARG_ARRAY #ifdef __LITTLE_ENDIAN #undef WORDS_BIG_ENDIAN #else #define WORDS_BIG_ENDIAN #endif /* arch-tag: fe5872de-d565-4d81-8fe0-ea19865b3e6a (do not change this comment) */