From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Matthias Meulien Newsgroups: gmane.emacs.help Subject: Re: Q about occur buffer/point Date: 29 May 2003 12:44:42 +0200 Organization: ...!#$@~? Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <84y90qma14.fsf@lucy.is.informatik.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1054206220 2505 80.91.224.249 (29 May 2003 11:03:40 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 29 May 2003 11:03:40 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Thu May 29 13:03:36 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 19LLC4-0000de-00 for ; Thu, 29 May 2003 13:03:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19LL36-00059H-Fz for gnu-help-gnu-emacs@m.gmane.org; Thu, 29 May 2003 06:54:20 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.uchicago.edu!newsfeed.cs.wisc.edu!144.212.100.101.MISMATCH!newsfeed!news.tele.dk!news.tele.dk!small.news.tele.dk!proxad.net!feeder2-1.proxad.net!news2-2.free.fr!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.93 Original-Lines: 27 Original-NNTP-Posting-Date: 29 May 2003 12:46:07 MEST Original-NNTP-Posting-Host: 62.147.139.102 Original-X-Trace: 1054205167 news2-2.free.fr 13208 62.147.139.102:33130 Original-X-Complaints-To: abuse@proxad.net Original-Xref: shelby.stanford.edu gnu.emacs.help:113835 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:10329 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:10329 kai.grossjohann@gmx.net (Kai Großjohann) wrote: > (...) Hit C-h b in the *Occur* buffer for the key bindings. You'll > find C-o, Only on recent version of emacs I guess... >>From my init file : (defun alt-occur-mode-view-occurrence () "View the occurrence the current line describes." (interactive) (let ((pos (occur-mode-find-occurrence))) (pop-to-buffer occur-buffer) (goto-char (marker-position pos)) (pop-to-buffer "*Occur*"))) (add-hook 'occur-mode-hook '(lambda () (setq truncate-lines t) (hl-line-mode 1) (define-key occur-mode-map "v" 'alt-occur-mode-view-occurrence) (define-key occur-mode-map "q" 'delete-window))) Bye, -- Matthias