From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: Teach isearch to open invisible only if visible search failed? Date: Sun, 5 Dec 2010 07:19:54 -0800 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1291562471 16266 80.91.229.12 (5 Dec 2010 15:21:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 5 Dec 2010 15:21:11 +0000 (UTC) To: "'Leo'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Dec 05 16:21:07 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PPGOg-00063t-4G for geh-help-gnu-emacs@m.gmane.org; Sun, 05 Dec 2010 16:21:06 +0100 Original-Received: from localhost ([127.0.0.1]:50531 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PPGOf-0004TM-Fg for geh-help-gnu-emacs@m.gmane.org; Sun, 05 Dec 2010 10:21:05 -0500 Original-Received: from [140.186.70.92] (port=54497 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PPGOE-0004TC-4g for help-gnu-emacs@gnu.org; Sun, 05 Dec 2010 10:20:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PPGOC-0003PF-4p for help-gnu-emacs@gnu.org; Sun, 05 Dec 2010 10:20:37 -0500 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]:26449) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PPGOB-0003Oj-VO for help-gnu-emacs@gnu.org; Sun, 05 Dec 2010 10:20:36 -0500 Original-Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id oB5FKVxB027352 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 5 Dec 2010 15:20:32 GMT Original-Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id oB5FA6lo014143; Sun, 5 Dec 2010 15:20:29 GMT Original-Received: from abhmt019.oracle.com by acsmt354.oracle.com with ESMTP id 827413981291562398; Sun, 05 Dec 2010 07:19:58 -0800 Original-Received: from dradamslap1 (/10.159.217.26) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 05 Dec 2010 07:19:58 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: AcuUR4esTlh+wcz7RfePtOsoEoXFywAQi8Hg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:75509 Archived-At: > I use C-s/r for navigating around text a lot and I have found it > slows me down in large text shown in outline structure in outline > or org mode etc. So I wonder how to set up isearch so that it only > opens invisible text when search in the visible fails. FWIW, in Isearch+ I bind a key (`C-+') to toggle invisible-text sensitivity. The standard user option `search-invisible' controls whether it invisible-text searching on or off by default. IOW, I treat this the same as case-sensitivity (or full-word search or regexp search or...any other search choice). Let the user control what to search while searching. To me, this is better than some DWIM that tries to second guess what I want. Why would I (a) *always* and (b) *only* want to search invisible text after searching visible text fails? http://www.emacswiki.org/emacs/IsearchPlus