|
From: | Jim Newton |
Subject: | Re: how to make next-error work on non-grep non-compilation |
Date: | Fri, 20 May 2011 07:54:11 -0700 (PDT) |
User-agent: | G2/1.0 |
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))))
[Prev in Thread] | Current Thread | [Next in Thread] |