unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* flymake-display-err-menu-for-current-line does not work under -nw
@ 2007-12-04 22:30 Ævar Arnfjörð Bjarmason
  2007-12-04 23:12 ` Lennart Borgman (gmail)
  0 siblings, 1 reply; 5+ messages in thread
From: Ævar Arnfjörð Bjarmason @ 2007-12-04 22:30 UTC (permalink / raw)
  To: emacs-devel


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?

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-12-05  1:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-04 22:30 flymake-display-err-menu-for-current-line does not work under -nw Ævar Arnfjörð Bjarmason
2007-12-04 23:12 ` Lennart Borgman (gmail)
2007-12-04 23:40   ` Ævar Arnfjörð Bjarmason
2007-12-04 23:51     ` Lennart Borgman (gmail)
2007-12-05  1:17       ` Ævar Arnfjörð Bjarmason

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).