unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Artur Malabarba <bruce.connor.am@gmail.com>
To: Li Ian-Xue <b4283@itsuwa.org>
Cc: 21957@debbugs.gnu.org, Juri Linkov <juri@linkov.net>
Subject: bug#21957: 24.5; Make occur search within regions when there is one
Date: Sun, 22 Nov 2015 12:13:31 +0000	[thread overview]
Message-ID: <CAAdUY-KXwschiY9V0Fq_YmjDjR7MdY82d458LKYSzgHtM6KeRQ@mail.gmail.com> (raw)
In-Reply-To: <56500129.9090307@itsuwa.org>

[-- Attachment #1: Type: text/plain, Size: 298 bytes --]

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.

[-- Attachment #2: Type: text/html, Size: 350 bytes --]

  reply	other threads:[~2015-11-22 12:13 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
2015-11-22 12:13     ` Artur Malabarba [this message]
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=CAAdUY-KXwschiY9V0Fq_YmjDjR7MdY82d458LKYSzgHtM6KeRQ@mail.gmail.com \
    --to=bruce.connor.am@gmail.com \
    --cc=21957@debbugs.gnu.org \
    --cc=b4283@itsuwa.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).