[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#21957: 24.5; Make occur search within regions when there is one
From: |
Juri Linkov |
Subject: |
bug#21957: 24.5; Make occur search within regions when there is one |
Date: |
Fri, 20 Nov 2015 02:04:53 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (x86_64-pc-linux-gnu) |
> This is a wish request.
>
> The current occur implementation doesn't include a `region' version
> which search only within the current region mark by user, instead it
> operates on the entire buffer.
>
> It would come in handy if occur searchs within regions as well. Such
> behavior is desired, for example, when listing the occurances of a
> symbol in the body of a function definition.
Do you think it would suit your needs when you first narrow the buffer
(e.g. to the body of a function with C-x n d) before running occur?