Emacs 26.1, Windows 10
If I want to show all lines content text in one line I use command occur
M-x occur text_to_find
Nice. It's work fine.
But how I can use occurif text to find is on 2 lines?
E.g.:
aaa bb cccc test this text_to_find hello how I your? result is very good ddd eee ffff So I need to show all lines content the next text (in 2 lines)
text_to_find
result

resultmust be right after thetext_to_findline, or do you just want to search two keywords at the same time( use\(text_to_find\|result\)as regexp pattern in this case)?elgrep-menuwhere you are guided by a menu and have control over almost all options of elgrep.multi-occur.