From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: next-error-last-buffer Date: Sat, 15 May 2004 11:21:07 +0300 Organization: JURTA Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <87hduije30.fsf@mail.jurta.org> References: <871xluig40.fsf@mail.jurta.org> <873c6983t9.fsf@mail.jurta.org> <8765b3vm0r.fsf@mail.jurta.org> <4nn04fgeli.fsf@lifelogs.com> <87hdumto1j.fsf@mail.jurta.org> <4n7jvgpjwe.fsf@lifelogs.com> <4nk6zfnjhl.fsf@lifelogs.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1084609445 17536 80.91.224.253 (15 May 2004 08:24:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 15 May 2004 08:24:05 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sat May 15 10:23:58 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BOuSc-0002lp-00 for ; Sat, 15 May 2004 10:23:58 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BOuSc-00043I-00 for ; Sat, 15 May 2004 10:23:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BOuS9-0001aX-Sv for emacs-devel@quimby.gnus.org; Sat, 15 May 2004 04:23:30 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.34) id 1BOuRy-0001Z9-3e for emacs-devel@gnu.org; Sat, 15 May 2004 04:23:18 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1BOuRS-0001O6-6v for emacs-devel@gnu.org; Sat, 15 May 2004 04:23:17 -0400 Original-Received: from [66.33.219.6] (helo=knife.dreamhost.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BOuRR-0001Nn-O4 for emacs-devel@gnu.org; Sat, 15 May 2004 04:22:45 -0400 Original-Received: from mail.jurta.org (80-235-42-9-dsl.mus.estpak.ee [80.235.42.9]) by knife.dreamhost.com (Postfix) with ESMTP id 8C505E4063; Sat, 15 May 2004 01:22:43 -0700 (PDT) Original-To: Ted Zlatanov In-Reply-To: <4nk6zfnjhl.fsf@lifelogs.com> (Ted Zlatanov's message of "Fri, 14 May 2004 10:58:30 -0400") User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:23467 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:23467 Ted Zlatanov writes: > On Fri, 14 May 2004, rms@gnu.org wrote: >> Let's change the default behavior and see if anyone is really >> unhappy afterwards. > > Is this the change you want? > > "Perhaps next-error should always choose a compilation or occur buffer > that is visible in a window, rather than one that isn't. And it > should prefer one that is visible in the current frame to one that is > visible in another frame. This might help us get a better default > behavior." I think the following default behavior is good enough: 1. If the current buffer is a next-error capable buffer, return it. 2(new). If one and only one window on the current frame displays a next-error capable buffer, return this buffer. 3. If next-error-last-buffer is set to a live buffer, use that. 4. Otherwise, look for a next-error capable buffer in the buffer list. 5. Signal an error if there are none. -- Juri Linkov http://www.jurta.org/emacs/