From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Newsgroups: gmane.emacs.devel Subject: Re: Occur should use the region as input if it's active Date: Thu, 16 Jan 2014 20:11:30 +0000 (UTC) Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1389903129 31060 80.91.229.3 (16 Jan 2014 20:12:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 16 Jan 2014 20:12:09 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 16 21:12:17 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W3tIV-0004IM-4m for ged-emacs-devel@m.gmane.org; Thu, 16 Jan 2014 21:12:15 +0100 Original-Received: from localhost ([::1]:34763 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3tIU-0002wD-MH for ged-emacs-devel@m.gmane.org; Thu, 16 Jan 2014 15:12:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39803) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3tIL-0002vt-H6 for emacs-devel@gnu.org; Thu, 16 Jan 2014 15:12:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W3tIG-0006QJ-5x for emacs-devel@gnu.org; Thu, 16 Jan 2014 15:12:05 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:36045) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3tIF-0006QE-Ut for emacs-devel@gnu.org; Thu, 16 Jan 2014 15:12:00 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1W3tIA-0003lH-Ok for emacs-devel@gnu.org; Thu, 16 Jan 2014 21:11:54 +0100 Original-Received: from 94-21-76-52.pool.digikabel.hu ([94.21.76.52]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 16 Jan 2014 21:11:54 +0100 Original-Received: from adatgyujto by 94-21-76-52.pool.digikabel.hu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 16 Jan 2014 21:11:54 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 19 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 94.21.76.52 (Opera/9.80 (Windows NT 6.1) Presto/2.12.388 Version/12.16) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:168576 Archived-At: Drew Adams 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.