unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: bojohan+news@dd.chalmers.se (Johan Bockgård)
Subject: Re: isearch and  M-x occur questions(several)
Date: Sat, 26 Apr 2003 21:00:12 +0200	[thread overview]
Message-ID: <yoijbrytf5j7.fsf@helm.dd.chalmers.se> (raw)
In-Reply-To: 84fzo5e42z.fsf@lucy.is.informatik.uni-duisburg.de

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

  reply	other threads:[~2003-04-26 19:00 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 [this message]
2003-04-26 20:02     ` drf5n
2003-04-28 13:51     ` Javier Oviedo

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=yoijbrytf5j7.fsf@helm.dd.chalmers.se \
    --to=bojohan+news@dd.chalmers.se \
    /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).