From: Drew Adams <drew.adams@oracle.com>
To: Tom <adatgyujto@gmail.com>, emacs-devel@gnu.org
Subject: RE: Occur should use the region as input if it's active
Date: Thu, 16 Jan 2014 11:51:41 -0800 (PST) [thread overview]
Message-ID: <21c8d379-ebb5-40e8-84e4-4a61e8ee8c20@default> (raw)
In-Reply-To: <loom.20140116T202658-792@post.gmane.org>
> > Yes and no. The region can also be useful to delimit the
> > search without narrowing.
>
> I don't think it's really that useful for occur.
I let the user decide.
> Occur is usually used to find matches in a larger text.
> If you want to limit the search to a smaller region then you
> can already use isearch which hihighlights the additional
> matches or simply use narrowing.
The latter, yes. Isearch is not the same as `occur'.
> If a configuration option like this is added then
> its default value should be using the active region for
> search because in my experience I use it very often and
> I only occasionally need to limit the search to a region
> which I can already do with narrowing.
The same argument could be made for (my) option
`search/replace-2nd-sel-as-default-flag', which uses the
secondary selection as default. (The default value for both
options is nil.)
(FWIW, my `grep' code behaves a bit differently. There, a
usable region is always used as the default search pattern.)
next prev parent reply other threads:[~2014-01-16 19:51 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-16 18:55 Occur should use the region as input if it's active Tom
2014-01-16 19:23 ` Drew Adams
2014-01-16 19:32 ` Tom
2014-01-16 19:51 ` Drew Adams [this message]
2014-01-16 19:36 ` Drew Adams
2014-01-16 20:11 ` Tom
2014-01-17 8:11 ` Juri Linkov
2014-01-17 0:52 ` Tak Kunihiro
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=21c8d379-ebb5-40e8-84e4-4a61e8ee8c20@default \
--to=drew.adams@oracle.com \
--cc=adatgyujto@gmail.com \
--cc=emacs-devel@gnu.org \
/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).