unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Javier Oviedo" <email_joviedo@yahoo.com>
Subject: Re: isearch and  M-x occur questions(several)
Date: Mon, 28 Apr 2003 09:51:12 -0400	[thread overview]
Message-ID: <b8jbgi$41a$1@tilde.itg.ti.com> (raw)
In-Reply-To: yoijbrytf5j7.fsf@helm.dd.chalmers.se

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 725 bytes --]

I like that idea quite a bit. I will test it out. Thanks.

--
=======
Javier
"Johan Bockgård" <bojohan+news@dd.chalmers.se> wrote in message
news:yoijbrytf5j7.fsf@helm.dd.chalmers.se...
> kai.grossjohann@gmx.net (Kai Großjohann) writes:
>
> > Another useful thing might be to bind a key in isearch-mode-map that
> > runs occur with the right options.
>
> I like that.
>
> (defun isearch-occur ()
>   "Run `occur' with current isearch string."
>   (interactive)
>   (let ((case-fold-search isearch-case-fold-search)
> (search-string (if isearch-regexp
>    isearch-string
> (regexp-quote isearch-string))))
>     (occur search-string)))
>
> (define-key isearch-mode-map [(control o)] 'isearch-occur)
>
>
> --
> Johan Bockgård

      parent reply	other threads:[~2003-04-28 13:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-25 18:23 isearch and M-x occur questions(several) Javier Oviedo
2003-04-25 18:26 ` Javier Oviedo
2003-04-26 14:16 ` Kai Großjohann
2003-04-26 19:00   ` Johan Bockgård
2003-04-26 20:02     ` drf5n
2003-04-28 13:51     ` Javier Oviedo [this message]

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='b8jbgi$41a$1@tilde.itg.ti.com' \
    --to=email_joviedo@yahoo.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).