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:54:11 -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 1306269428 23577 80.91.229.12 (24 May 2011 20:37:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 24 May 2011 20:37:08 +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:37:04 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 1QOyLg-0007qQ-9D for geh-help-gnu-emacs@m.gmane.org; Tue, 24 May 2011 22:37:04 +0200 Original-Received: from localhost ([::1]:48684 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOyLf-0003kp-IX for geh-help-gnu-emacs@m.gmane.org; Tue, 24 May 2011 16:37:03 -0400 Original-Path: usenet.stanford.edu!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 13 Original-NNTP-Posting-Host: 213.131.238.28 Original-X-Trace: posting.google.com 1305903251 15677 127.0.0.1 (20 May 2011 14:54:11 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 20 May 2011 14:54:11 +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:186876 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:81209 Archived-At: Here is what I settled on. It seems to work. (defun skill-vlint-present (file-name) (let (size (vlint (get-buffer-create "vlint"))) (with-current-buffer vlint (let ((inhibit-read-only t)) (erase-buffer) (insert-file-contents-literally file-name) (when (setq size (- (point-max) (point-min))) (grep-mode)))) (when (plusp size) (switch-to-buffer-other-window vlint))))