flymake-display-err-menu-for-current-line does not work excpet under
X. Here's one implementation for text mode that I use which displays the
errors/warnings in the echo area instead of opening a menu:
(defun flymake-display-err-message-for-current-line ()
"Display a message with errors/warnings for current line if it
has errors and/or warnings."
(interactive)
(let* ((line-no (flymake-current-line-no))
(line-err-info-list (nth 0 (flymake-find-err-info flymake-err-info
line-no)))
(menu-data (flymake-make-err-menu-data line-no
line-err-info-list)))
(if menu-data
(let ((messages))
(push (concat (car menu-data) ":") messages)
(dolist (error-or-warning (cadr menu-data))
(push (car error-or-warning) messages))
(message "%s" (mapconcat #'identity (reverse messages) "\n"))))))
I want to get this or something like it into Emacs pending comments on
whether this implementation is even a good idea. Should it use
(message)? Would it be better to use a idle timer like eldoc-mode does?
Something completely different?