Subject: | perlcritic.el perlcritic-severity radio group |
Date: | Wed, 07 Jan 2009 08:07:30 +1100 |
To: | bug-Perl-Critic [...] rt.cpan.org |
From: | Kevin Ryde <user42 [...] zip.com.au> |
In perlcritic.el I think M-x customize-variable of perlcritic-severity
doesn't show a radio group because the default `nil' isn't among the
available choices. Adding it seems to do the trick.
Index: perlcritic.el
===================================================================
--- perlcritic.el (revision 2954)
+++ perlcritic.el (working copy)
@@ -184,13 +184,13 @@
This variable is automatically buffer-local and may be overridden on a
per-file basis with File Variables."
- ;; FIXME: My GNU Emacs doesn't show a radio widget or a menu here.
:type '(radio
(const :tag "Show only the most severe: 5" 5)
(const :tag "4" 4)
(const :tag "3" 3)
(const :tag "2" 2)
- (const :tag "Show everything including the least severe: 1" 1))
+ (const :tag "Show everything including the least severe: 1" 1)
+ (const :tag "Default from .perlcriticrc" nil))
:group 'perlcritic)
(make-variable-buffer-local 'perlcritic-severity)