From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bastien Newsgroups: gmane.emacs.help Subject: Re: Copy/iSearch/Occur on folded outline view? Date: Wed, 06 Feb 2013 16:56:57 +0100 Message-ID: <87d2wd1lme.fsf@bzg.ath.cx> References: <87obg0e7gg.fsf@googlemail.com> <87y5f37q0t.fsf@bzg.ath.cx> <876226tt19.fsf@web.de> <87r4kuquhm.fsf@gmail.com> <7B8FEE3403FC47C5BFA33D0F7A2E9ABD@us.oracle.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1360166615 27873 80.91.229.3 (6 Feb 2013 16:03:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 Feb 2013 16:03:35 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, 'Thorsten Jolitz' To: "Drew Adams" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 06 17:03:56 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 1U37TR-0000oC-2d for geh-help-gnu-emacs@m.gmane.org; Wed, 06 Feb 2013 17:03:49 +0100 Original-Received: from localhost ([::1]:37708 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U37T8-0005AS-AK for geh-help-gnu-emacs@m.gmane.org; Wed, 06 Feb 2013 11:03:30 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:59508) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U37T2-0005AL-Ib for help-gnu-emacs@gnu.org; Wed, 06 Feb 2013 11:03:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U37T0-0000hU-FV for help-gnu-emacs@gnu.org; Wed, 06 Feb 2013 11:03:24 -0500 Original-Received: from mail-wg0-f49.google.com ([74.125.82.49]:48095) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U37T0-0000hJ-9f for help-gnu-emacs@gnu.org; Wed, 06 Feb 2013 11:03:22 -0500 Original-Received: by mail-wg0-f49.google.com with SMTP id 15so1239827wgd.16 for ; Wed, 06 Feb 2013 08:03:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:to:cc:subject:in-reply-to:references :user-agent:date:message-id:mime-version:content-type; bh=/vfjTKcRWdeo3l0kplIAipmA1VNPznkThMyDJE2EcC0=; b=m+WrjNZKt7o6SO4RzaevJ/A8/7tH966l9d4MUDa9YGFOCm4DbwRyUyvCQlRPfVLwAn FeB/akbfo0Kq4yP140dPppCh+zr/jIhFM/wDFwFsqiVx/c9wRpDyVm+Y73IyZ5BmYw7h bRC+Vr1Cl1ZoZarpgmyMOGx+AhQi0jMICWY7SMVixuIDi5Ad3WGFl5w5S0dYU9dKHh7e MfnN0ux2lENJhuh3608Q/pm7cYEHHlrZBswTzkD+m5Qjw6RTzyh3ZEZVqup4OJppKcNa XVdUF46sP9cQG6Js2I6qGWnNypc1tTuKJZ9EpLRCJ5e9/ppRCVuVhY3zvqST/sJ2aSqS +P2g== X-Received: by 10.194.88.202 with SMTP id bi10mr50816799wjb.5.1360166221158; Wed, 06 Feb 2013 07:57:01 -0800 (PST) Original-Received: from bzg.localdomain (mar75-2-81-56-68-112.fbx.proxad.net. [81.56.68.112]) by mx.google.com with ESMTPS id hb9sm3758285wib.3.2013.02.06.07.56.59 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 06 Feb 2013 07:57:00 -0800 (PST) Original-Received: by bzg.localdomain (Postfix, from userid 1000) id CAF191C20D72; Wed, 6 Feb 2013 16:56:57 +0100 (CET) In-Reply-To: <7B8FEE3403FC47C5BFA33D0F7A2E9ABD@us.oracle.com> (Drew Adams's message of "Tue, 5 Feb 2013 22:33:07 -0800") User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 74.125.82.49 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:88990 Archived-At: Hi Drew, "Drew Adams" writes: >> > You may also consider to define an toggle command for >> > `search-invisible', and bind it in `isearch-mode-map' >> >> very nice, thank you, I had to install cl-lib first, but then it works >> like a charm, very helpfull when even the collapsed headlines >> (3 levels) of your .emacs are some 260 lines. > > FYI, Isearch+ also provides toggle key `C-+' for this. I'm willing to allow this for org-mode. Do you mind if I borrow your idea and add this code to Org? Thanks, (define-key isearch-mode-map [(control ?+)] 'org-isearch-toggle-invisible) (defvar org-search-invisibile-default) (defun org-isearch-toggle-invisible () "Toggle regexp searching on or off." (interactive) (unless (boundp 'org-search-invisibile-default) (setq org-search-invisibile-default search-invisible)) (setq search-invisible (cond ((eq search-invisible 'open) nil) ((eq search-invisible nil) 'open))) (let ((message-log-max nil)) (message "%s%s [search %svisible]" (isearch-message-prefix nil isearch-nonincremental) isearch-message (if search-invisible "in" ""))) (setq isearch-success t isearch-adjusted t) (sit-for 1) (add-hook 'isearch-mode-end-hook (lambda () (setq search-invisible org-search-invisibile-default))) (isearch-update)) -- Bastien