diff options
author | jpkotta <jpkotta@gmail.com> | 2016-05-05 04:44:55 -0500 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2016-05-05 12:44:55 +0300 |
commit | 5d71b2d487402ed8ed67ca6e5df1af5a640a706b (patch) | |
tree | a12a45057f4f2ecaa0259d61c08caa4b5071861f /elisp | |
parent | e444a2cd51c72546ceacfeab53aa20d827371994 (diff) | |
download | pylint-git-5d71b2d487402ed8ed67ca6e5df1af5a640a706b.tar.gz |
fix bug in pylint-insert-ignore-comment and add it to the commentary (#892)
Diffstat (limited to 'elisp')
-rw-r--r-- | elisp/pylint.el | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/elisp/pylint.el b/elisp/pylint.el index c85896fda..acf67e620 100644 --- a/elisp/pylint.el +++ b/elisp/pylint.el @@ -1,8 +1,8 @@ ;;; pylint.el --- minor mode for running `pylint' ;; Copyright (c) 2009, 2010 Ian Eure <ian.eure@gmail.com> - ;; Author: Ian Eure <ian.eure@gmail.com> +;; Maintainer: Jonathan Kotta <jpkotta@gmail.com> ;; Keywords: languages python ;; Version: 1.02 @@ -30,6 +30,10 @@ ;; (autoload 'pylint "pylint") ;; (add-hook 'python-mode-hook 'pylint-add-menu-items) ;; (add-hook 'python-mode-hook 'pylint-add-key-bindings) +;; +;; There is also a handy command `pylint-insert-ignore-comment' that +;; makes it easy to insert comments of the form `# pylint: +;; ignore=msg1,msg2,...'. ;;; Code: @@ -124,7 +128,7 @@ the selected messages. With prefix argument, only insert a comma-separated list (for appending to an existing list)." - (interactive "*p") + (interactive "*P") (unless pylint--messages-list (pylint--create-messages-list)) (setq pylint--messages-list @@ -132,8 +136,8 @@ appending to an existing list)." (let ((msgs ()) (msg "") (prefix (if arg - "# pylint: disable=" - ",")) + "," + "# pylint: disable=")) (sentinel "[DONE]")) (while (progn (setq msg (completing-read |