~ubuntu-branches/ubuntu/vivid/pylint/vivid-proposed

« back to all changes in this revision

Viewing changes to elisp/pylint-flymake.el

  • Committer: Bazaar Package Importer
  • Author(s): Sandro Tosi
  • Date: 2009-12-19 21:38:49 UTC
  • mfrom: (1.1.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20091219213849-kcax3214c3mmucox
Tags: 0.19.0-1
* New upstream release
* debian/pylint.docs
  - removed 'TODO', no more shipped
* debian/copyright
  - updated copyright information, also adding new files with different info
* debian/{rules, TODO}
  - run tests at build-time
* debian/pylint.postrm
  - use 'set -e' instead of calling shell with '-e'

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
1
;; Configure flymake for python
3
 
(setq pylint "epylint")
4
2
(when (load "flymake" t)
5
3
  (defun flymake-pylint-init ()
6
4
    (let* ((temp-file (flymake-init-create-temp-buffer-copy
8
6
           (local-file (file-relative-name
9
7
                        temp-file
10
8
                        (file-name-directory buffer-file-name))))
11
 
      (list (expand-file-name pylint "") (list local-file))))
 
9
      (list "epylint" (list local-file))))
 
10
 
12
11
  (add-to-list 'flymake-allowed-file-name-masks
13
12
               '("\\.py\\'" flymake-pylint-init)))
14
13