From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Javier Oviedo" Newsgroups: gmane.emacs.help Subject: Re: isearch and M-x occur questions(several) Date: Mon, 28 Apr 2003 09:51:12 -0400 Organization: Texas Instruments Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <84fzo5e42z.fsf@lucy.is.informatik.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1051538205 4432 80.91.224.249 (28 Apr 2003 13:56:45 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 28 Apr 2003 13:56:45 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 28 15:56:43 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19A97b-00019G-00 for ; Mon, 28 Apr 2003 15:56:43 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19A97W-0008Bq-09 for gnu-help-gnu-emacs@m.gmane.org; Mon, 28 Apr 2003 09:56:38 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!wn13feed!wn12feed!worldnet.att.net!12.120.4.37!attcg2!attdl2!attdl1!ip.att.net!news.ti.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 30 Original-NNTP-Posting-Host: gt64v7121.telogy.design.ti.com Original-X-Trace: tilde.itg.ti.com 1051537746 4138 158.218.105.183 (28 Apr 2003 13:49:06 GMT) Original-X-Complaints-To: usenet@news.ti.com Original-NNTP-Posting-Date: 28 Apr 2003 13:49:06 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Original-Xref: shelby.stanford.edu gnu.emacs.help:112450 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:8948 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:8948 I like that idea quite a bit. I will test it out. Thanks. -- ======= Javier "Johan Bockgård" 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