unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Tom <adatgyujto@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: Occur should use the region as input if it's active
Date: Thu, 16 Jan 2014 20:11:30 +0000 (UTC)	[thread overview]
Message-ID: <loom.20140116T205921-957@post.gmane.org> (raw)
In-Reply-To: b3b12554-c83a-4f79-bc00-40ad5a7b1732@default

Drew Adams <drew.adams <at> oracle.com> writes:
> 
> I should also have added, with reference to your point about
> searching for something you see, that with this option turned
> off the default input is the name of the (non-nil) symbol
> nearest point.
> 
> That, plus the usefulness of using the region to delimit the
> search, is the reason that searching for the region text by
> default is turned off by default.

Picking up the symbol around the cursor is a good idea, so for occur 
it would be a good default to use the symbol around the cursor if there
is no region active and use the region for search if it's active.

Limiting search with the region is infrequently needed and it can
easily be done with narrowing. The above two features are much
more useful and they can be used much more frequently (quickly
picking an input for occur), so they should take precedence.




  reply	other threads:[~2014-01-16 20:11 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
2014-01-16 19:36   ` Drew Adams
2014-01-16 20:11     ` Tom [this message]
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=loom.20140116T205921-957@post.gmane.org \
    --to=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).