flymake のエラー/警告表示をミニバッファで

やってくれてる人が居た.
ここより, 転載.

(defun credmp/flymake-display-err-minibuf () 
  "Displays the error/warning for the current line in the minibuffer"
  (interactive)
  (let* ((line-no             (flymake-current-line-no))
         (line-err-info-list  (nth 0 (flymake-find-err-info flymake-err-info line-no)))
         (count               (length line-err-info-list))
         )
    (while (> count 0)
      (when line-err-info-list
        (let* ((file       (flymake-ler-file (nth (1- count) line-err-info-list)))
               (full-file  (flymake-ler-full-file (nth (1- count) line-err-info-list)))
               (text (flymake-ler-text (nth (1- count) line-err-info-list)))
               (line       (flymake-ler-line (nth (1- count) line-err-info-list))))
          (message "[%s] %s" line text)
          )
        )
      (setq count (1- count)))))

めちゃくちゃ便利.
やっぱりミニバッファの方が良いよね.
この方法だと, GUIEmacs を起動してなくても(端末上で vim みたいに起動してても) 使えるだろうし.
Thanks. ありがとう.



ちなみにこの転載元のエントリは, flyamke + jdee の話みたい.

更新時刻

2007年, 7月21日, 5:25