From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: next-error-last-buffer Date: Tue, 25 May 2004 12:06:52 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <871xluig40.fsf@mail.jurta.org> <87u0y6jjq9.fsf@mail.jurta.org> Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1085503080 19203 80.91.224.253 (25 May 2004 16:38:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 25 May 2004 16:38:00 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue May 25 18:37:49 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 1BSew1-0005Fz-00 for ; Tue, 25 May 2004 18:37:49 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BSew0-0008Rk-00 for ; Tue, 25 May 2004 18:37:49 +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 1BSeh1-0002fO-Nu for emacs-devel@quimby.gnus.org; Tue, 25 May 2004 12:22:19 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.34) id 1BSegK-0002dw-Ce for emacs-devel@gnu.org; Tue, 25 May 2004 12:21:36 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1BSefn-0002WP-M9 for emacs-devel@gnu.org; Tue, 25 May 2004 12:21:34 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BSeS7-0000IE-JI for emacs-devel@gnu.org; Tue, 25 May 2004 12:06:55 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1BSeS4-0004wA-DS; Tue, 25 May 2004 12:06:52 -0400 Original-To: Juri Linkov In-reply-to: <87u0y6jjq9.fsf@mail.jurta.org> (message from Juri Linkov on Mon, 24 May 2004 11:46:22 +0300) 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:23926 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:23926 This problem occurs when going through results in a grep buffer visits a patch file in diff mode. The next call of `next-error' continues to visit places from a patch file, not from a grep buffer. To avoid this problem, the variable `next-error-function' could be set to nil in a buffer visited by the latest call of `next-error-function'. This fix has a drawback; it will make that buffer permanently incapable of being used as a series of references to places. I think we should look for a way to disable this temporarily instead. However, I am not sure how that would work--what would be the condition on which to reenable this buffer's value of next-error-function?