From: Li Ian-Xue <b4283@itsuwa.org>
To: Juri Linkov <juri@linkov.net>
Cc: 21957@debbugs.gnu.org
Subject: bug#21957: 24.5; Make occur search within regions when there is one
Date: Sat, 21 Nov 2015 13:29:13 +0800 [thread overview]
Message-ID: <56500129.9090307@itsuwa.org> (raw)
In-Reply-To: <87ziy9tu1m.fsf@mail.linkov.net>
Yes, that is what I did when I found out `occur' doesn't do regions. A
friend of mine suggested
that a combination of narrowing (C-x n w) and M-s o should do the trick,
and it did.
Nevertheless still I would still prefer `occur' to accept a regional
parameter,
as it would be much straight forward mode of operation.
Thank you.
Juri Linkov 於 西元2015年11月20日 08:04 寫道:
>> 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?
next prev parent reply other threads:[~2015-11-21 5:29 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-19 6:39 bug#21957: 24.5; Make occur search within regions when there is one b4283
2015-11-20 0:04 ` Juri Linkov
2015-11-21 5:29 ` Li Ian-Xue [this message]
2015-11-22 12:13 ` Artur Malabarba
2015-11-23 0:22 ` Juri Linkov
2015-11-23 0:53 ` Artur Malabarba
2015-11-23 1:29 ` Drew Adams
2022-01-24 13:43 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=56500129.9090307@itsuwa.org \
--to=b4283@itsuwa.org \
--cc=21957@debbugs.gnu.org \
--cc=juri@linkov.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).