all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Heerdegen <michael_heerdegen@web.de>
To: help-gnu-emacs@gnu.org
Subject: Re: Copy/iSearch/Occur on folded outline view?
Date: Tue, 05 Feb 2013 21:17:06 +0100	[thread overview]
Message-ID: <876226tt19.fsf@web.de> (raw)
In-Reply-To: <mailman.19034.1360022396.855.help-gnu-emacs@gnu.org> (Thorsten Jolitz's message of "Tue, 05 Feb 2013 00:13:26 +0100")

Thorsten Jolitz <tjolitz@gmail.com> 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-mode-map>\\[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.



  parent reply	other threads:[~2013-02-05 20:17 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 [this message]
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           ` Copy/iSearch/Occur on folded outline view? Bastien
2013-02-06 16:51             ` 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=876226tt19.fsf@web.de \
    --to=michael_heerdegen@web.de \
    --cc=help-gnu-emacs@gnu.org \
    /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.