From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jim Newton Newsgroups: gmane.emacs.help Subject: Re: how to make next-error work on non-grep non-compilation Date: Fri, 20 May 2011 07:06:27 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: Reply-To: gnu.emacs.help@googlegroups.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1306269305 22730 80.91.229.12 (24 May 2011 20:35:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 24 May 2011 20:35:05 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 24 22:35:01 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QOyJd-0006RW-GC for geh-help-gnu-emacs@m.gmane.org; Tue, 24 May 2011 22:34:57 +0200 Original-Received: from localhost ([::1]:42416 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOyJd-00008j-3A for geh-help-gnu-emacs@m.gmane.org; Tue, 24 May 2011 16:34:57 -0400 Original-Path: usenet.stanford.edu!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 30 Original-NNTP-Posting-Host: 213.131.238.28 Original-X-Trace: posting.google.com 1305900387 30943 127.0.0.1 (20 May 2011 14:06:27 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 20 May 2011 14:06:27 +0000 (UTC) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=213.131.238.28; posting-account=hcE4OwoAAADycW4UgYxbAF_GOWiPYhXJ User-Agent: G2/1.0 X-Google-Web-Client: true Original-Xref: usenet.stanford.edu gnu.emacs.help:186873 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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 Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:81201 Archived-At: > Does its name have something specific to its format (e.g. it uses > a particular extension)? No the file has no particular extension, but i can give it whatever extension it needs if that makes the job easier. > Do you also want it to be editable at the same time? It should not be editable. > Maybe you need to set compilation-error-regexp-alist. what should I set it to? I'm trying to make the format of the file already compatible with grep. I'm assuming that only the grep match lines are important and not the header lines which show the grep command line. > Calling `compilation-compat-parse-errors' is a bad idea: just remove the > call, it should not make any difference. okeydokey > I'd recommend you try something simpler based around something like: > > (let ((buf (find-file-noselect file-name))) > (grep-mode)) Well I would like the buffer to have a more generic name so that if i run my function many times, it reuses the same buffer, thus destroying its old content. So I'd rather not make the buffer simple a file-visiting buffer. -jim