From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Disable same window pop-to-buffer in Occur buffers Date: Wed, 09 Nov 2005 11:33:32 +0200 Organization: JURTA Message-ID: <874q6mgpln.fsf@jurta.org> References: <87br19mkru.fsf@jurta.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1131539301 26928 80.91.229.2 (9 Nov 2005 12:28:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 9 Nov 2005 12:28:21 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 09 13:28:12 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EZp3K-00011H-Gh for ged-emacs-devel@m.gmane.org; Wed, 09 Nov 2005 13:27:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EZp3E-0006wF-SE for ged-emacs-devel@m.gmane.org; Wed, 09 Nov 2005 07:27:40 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EZns8-0005My-Of for emacs-devel@gnu.org; Wed, 09 Nov 2005 06:12:11 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EZndc-00028R-BO for emacs-devel@gnu.org; Wed, 09 Nov 2005 05:57:25 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EZmWE-0006ZJ-MN for emacs-devel@gnu.org; Wed, 09 Nov 2005 04:45:27 -0500 Original-Received: from [194.126.101.111] (helo=mail.neti.ee) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EZmW9-0001oF-6I; Wed, 09 Nov 2005 04:45:21 -0500 Original-Received: from mail.neti.ee (80-235-38-236-dsl.mus.estpak.ee [80.235.38.236]) by Relayhost1.neti.ee (Postfix) with ESMTP id 8091F2120; Wed, 9 Nov 2005 11:45:33 +0200 (EET) Original-To: rms@gnu.org In-Reply-To: (Richard M. Stallman's message of "Sat, 29 Oct 2005 01:13:08 -0400") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-Virus-Scanned: by amavisd-new-2.2.1 (20041222) (Debian) at neti.ee X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:45623 Archived-At: > occur-mode-goto-occurrence should always go to the SAME window. Your > change ought to make it always go to another window, which is not > correct. Unfortunately, the current CVS state of `occur' is broken. Mouse-2 clicked on the *Occur* buffer works unreliably: when point is in the source buffer's window, it switches the buffer in the Occur buffer. But when point initially was in the Occur buffer, it goes to the occurrence in the window with the source buffer. > So this ought to be the correct fix. It makes these commands in > Occur buffers work compatibly with Dired buffers. I think the correct analogy for Occur buffers is not Dired buffers, but rather Compilation and Grep buffers. Occur behaves in the same way as compilation and grep: the user calls this command, and it outputs results in another window. After that the user can type a key bound to `next-error', or select the window with search results and type `RET' or `C-c C-c' (like in compilation and grep buffers) to visit the result in the source buffer's window. In any case, both windows (source buffer's window and occur buffer's window) remain visible. But when `RET' in the Occur buffer switches the buffer in the same window, this causes the source buffer to be displayed in two windows. This is very inconvenient. -- Juri Linkov http://www.jurta.org/emacs/