From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Re: Copy/iSearch/Occur on folded outline view? Date: Tue, 05 Feb 2013 21:17:06 +0100 Message-ID: <876226tt19.fsf@web.de> References: <87obg0e7gg.fsf@googlemail.com> <87y5f37q0t.fsf@bzg.ath.cx> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1360095346 13092 80.91.229.3 (5 Feb 2013 20:15:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 Feb 2013 20:15:46 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 05 21:16:07 2013 Return-path: Envelope-to: geh-help-gnu-emacs@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 1U2ovw-0003Vo-M3 for geh-help-gnu-emacs@m.gmane.org; Tue, 05 Feb 2013 21:16:00 +0100 Original-Received: from localhost ([::1]:55271 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U2ove-00043j-0P for geh-help-gnu-emacs@m.gmane.org; Tue, 05 Feb 2013 15:15:42 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:50014) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U2ovX-00043d-Ri for help-gnu-emacs@gnu.org; Tue, 05 Feb 2013 15:15:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U2ovV-0002gW-EO for help-gnu-emacs@gnu.org; Tue, 05 Feb 2013 15:15:35 -0500 Original-Received: from mout.web.de ([212.227.15.4]:58286) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U2ovV-0002gM-4l for help-gnu-emacs@gnu.org; Tue, 05 Feb 2013 15:15:33 -0500 Original-Received: from drachen.dragon ([188.98.97.108]) by smtp.web.de (mrweb103) with ESMTPA (Nemesis) id 0M4ZXs-1UsbCp01O8-00ydKc; Tue, 05 Feb 2013 21:15:31 +0100 Mail-Followup-To: help-gnu-emacs@gnu.org In-Reply-To: (Thorsten Jolitz's message of "Tue, 05 Feb 2013 00:13:26 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.92 (gnu/linux) X-Provags-ID: V02:K0:HO2IUlsV/vUZOUDoUxVOaisr+QAf1ekoQTk+wgpS8im M8U+WMYVlrsqf34ayhPcYRLacphOPdlFJiiNHo0kDBnuK4C0Fq g7y9JI8vXIa38zigdXm8lrZbLgYJ9bsrV97Z6I4L199kDVEnLc wiCTioCTzTymST4MQd+wpOk/2L6CeTYATgtwot0y/U7sjTZVQx moIllhWcDZqm3I1Fm+AsRjjT2gIHKHRVE653oSdzyU= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.15.4 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:88970 Archived-At: Thorsten Jolitz writes: > > For isearch, you have `search-invisible': > > HTH, > > yes, thanks for the tip. You may also consider to define an toggle command for `search-invisible', and bind it in `isearch-mode-map', like this --8<---------------cut here---------------start------------->8--- (require 'cl-lib) (defun isearch-cycle-search-invisible () "Cycle the value of `search-invisible'. Bound to \\\\[isearch-cycle-search-invisible] in `iseach'." (interactive) (setq search-invisible (cl-case search-invisible ((nil) t) ((t) 'open) (else nil))) (message "search-invisible: %s" search-invisible) (sit-for 1.) (setq isearch-success t isearch-adjusted t) (isearch-update)) (add-hook 'isearch-mode-hook (lambda () (make-variable-buffer-local #'search-invisible) (define-key isearch-mode-map [(meta ?i)] #'isearch-cycle-search-invisible))) --8<---------------cut here---------------end--------------->8--- This let's you cycle `search-invisible' while isearching with M-i. Regards, Michael.