GNU bug report logs - #21957
24.5; Make occur search within regions when there is one

Previous Next

Package: emacs;

Reported by: b4283 <at> itsuwa.org

Date: Thu, 19 Nov 2015 07:03:01 UTC

Severity: wishlist

Found in version 24.5

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #17 received at 21957 <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> linkov.net>
To: Artur Malabarba <bruce.connor.am <at> gmail.com>
Cc: 21957 <at> debbugs.gnu.org, Drew Adams <drew.adams <at> oracle.com>,
 Li Ian-Xue <b4283 <at> itsuwa.org>
Subject: Re: bug#21957: 24.5;
 Make occur search within regions when there is one
Date: Mon, 23 Nov 2015 02:22:59 +0200
> I've been thinking it might be nice to have an occur-dwim command.
>
> 1. If the selected region has multiple lines, it would search only inside
> the region.
> 2. If the selected region has one line or less, it would use the region as
> the search string.
> 3. If there's no selection it do the usual occur.

This is a useful heuristic, not sure how intuitive it is.

BTW, I recall Drew asked how to do the same in Isearch, but I see no way
because in Isearch it's useful to mark the beginning of the region, and
extend it using Isearch commands by putting the end of the region where
Isearch ends.




This bug report was last modified 3 years and 196 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.