From: Bastien <bzg@altern.org>
To: "Drew Adams" <drew.adams@oracle.com>
Cc: help-gnu-emacs@gnu.org, 'Thorsten Jolitz' <tjolitz@gmail.com>
Subject: Re: Copy/iSearch/Occur on folded outline view?
Date: Wed, 06 Feb 2013 16:56:57 +0100 [thread overview]
Message-ID: <87d2wd1lme.fsf@bzg.ath.cx> (raw)
In-Reply-To: <7B8FEE3403FC47C5BFA33D0F7A2E9ABD@us.oracle.com> (Drew Adams's message of "Tue, 5 Feb 2013 22:33:07 -0800")
Hi Drew,
"Drew Adams" <drew.adams@oracle.com> 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
next prev parent reply other threads:[~2013-02-06 15:56 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-04 9:47 Copy/iSearch/Occur on folded outline view? Thorsten Jolitz
2013-02-04 21:00 ` Bastien
2013-02-04 23:13 ` Thorsten Jolitz
[not found] ` <mailman.19034.1360022396.855.help-gnu-emacs@gnu.org>
2013-02-05 20:17 ` Michael Heerdegen
2013-02-05 22:13 ` Thorsten Jolitz
2013-02-06 6:33 ` Drew Adams
2013-02-06 9:12 ` how to use C-+ in isearch+? (was: Re: Copy/iSearch/Occur on folded outline view?) Gregor Zattler
[not found] ` <mailman.19117.1360142038.855.help-gnu-emacs@gnu.org>
2013-02-06 13:59 ` how to use C-+ in isearch+? Michael Heerdegen
2013-02-06 14:49 ` SOLVED (was: Re: how to use C-+ in isearch+?) Gregor Zattler
2013-02-06 15:56 ` Bastien [this message]
2013-02-06 16:51 ` Copy/iSearch/Occur on folded outline view? Drew Adams
2013-02-06 16:54 ` Bastien
[not found] ` <mailman.19150.1360166607.855.help-gnu-emacs@gnu.org>
2013-02-06 16:26 ` Michael Heerdegen
2013-02-06 16:52 ` Drew Adams
2013-02-06 16:55 ` Bastien
[not found] ` <mailman.19161.1360169738.855.help-gnu-emacs@gnu.org>
2013-02-06 18:46 ` Michael Heerdegen
[not found] ` <mailman.19178.1360176297.855.help-gnu-emacs@gnu.org>
2013-02-06 19:06 ` Michael Heerdegen
[not found] ` <mailman.19096.1360102465.855.help-gnu-emacs@gnu.org>
2013-02-06 13:39 ` Michael Heerdegen
2013-02-06 17:20 ` Thorsten Jolitz
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87d2wd1lme.fsf@bzg.ath.cx \
--to=bzg@altern.org \
--cc=drew.adams@oracle.com \
--cc=help-gnu-emacs@gnu.org \
--cc=tjolitz@gmail.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.