From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: bnet@daltons.net (Barney Dalton) Newsgroups: gmane.emacs.help Subject: using compil.el's next-error Date: 26 Oct 2004 04:54:42 -0700 Organization: http://groups.google.com Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <1c6c2df9.0410260354.2b4ab027@posting.google.com> NNTP-Posting-Host: deer.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1098805316 8443 80.91.229.6 (26 Oct 2004 15:41:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 26 Oct 2004 15:41:56 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 26 17:41:52 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CMTSK-0000Dt-00 for ; Tue, 26 Oct 2004 17:41:52 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CMTa1-00011x-NS for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Oct 2004 11:49:49 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 19 Original-NNTP-Posting-Host: 193.122.23.66 Original-X-Trace: posting.google.com 1098791682 23988 127.0.0.1 (26 Oct 2004 11:54:42 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 26 Oct 2004 11:54:42 +0000 (UTC) Original-Xref: shelby.stanford.edu gnu.emacs.help:126068 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:21446 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:21446 I'm fiddling about with next-error to try and do some processing on the set of files returned in a grep buffer. I made the assumption that after next-error has finished that the buffer with the error in would be selected. However the lisp code below prints the original buffer's name and not the one with the error in. (defun tester () (interactive) (next-error 1) (message "%s" (buffer-name (current-buffer)))) How do I rewrite this so that I can perform operations on the buffer with the error in it? Thanks Barney p.s I'm running GNU Emacs 21.3.50.1 (i386-mingw-nt5.0.2195) of 2004-07-09 on FARIBA