all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* flymake how to let him recognize a message as a warning
@ 2010-06-06 21:20 Gabriele Lanaro
  0 siblings, 0 replies; only message in thread
From: Gabriele Lanaro @ 2010-06-06 21:20 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 851 bytes --]

I have an output form a checking program (pyflakes) like that:

daemon_.py:3: 'pyqt' imported but unused

I feel that this should be a warning, but pyflakes don't writes any
"warning" message, it treat it as a common lint error.

The current code to plug pyflakes in flymake is that one:

  (defun flymake-pyflakes-init ()
      (let* ((temp-file (flymake-init-create-temp-buffer-copy
                         'flymake-create-temp-inplace))
             (local-file (file-relative-name
                          temp-file
                          (file-name-directory buffer-file-name))))
        (list "pyflakes" (list local-file)))))
  (add-to-list 'flymake-allowed-file-name-masks
               '("\\.py\\'" flymake-pyflakes-init))


There's a way to make the pattern: .."imported but unused$" to be
highlighted as a warning and not as an error?

[-- Attachment #2: Type: text/html, Size: 998 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-06-06 21:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-06 21:20 flymake how to let him recognize a message as a warning Gabriele Lanaro

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.