]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/linum.el (linum-format): Don't autoload it. Improve :type.
authorGlenn Morris <rgm@gnu.org>
Thu, 27 Sep 2012 07:26:22 +0000 (00:26 -0700)
committerGlenn Morris <rgm@gnu.org>
Thu, 27 Sep 2012 07:26:22 +0000 (00:26 -0700)
lisp/ChangeLog
lisp/linum.el

index 499d9f7b33039fcd793f181223e664986e89f019..bf5303460266675e549d812e717990f1771d0d09 100644 (file)
@@ -1,5 +1,7 @@
 2012-09-27  Glenn Morris  <rgm@gnu.org>
 
+       * linum.el (linum-format): Don't autoload it.  Improve :type.
+
        * progmodes/tcl.el: Don't require outline when compiling.
        (outline-regexp, outline-level): Declare.
        * textmodes/sgml-mode.el: Don't require outline when compiling.
index 162dc19f43742b6829c218ca75efede09c0cbd6f..3c278dbbf3b33da1f13b7ec5ec72340abb40b2a4 100644 (file)
@@ -44,7 +44,6 @@
   "Show line numbers in the left margin."
   :group 'convenience)
 
-;;;###autoload
 (defcustom linum-format 'dynamic
   "Format used to display line numbers.
 Either a format string like \"%7d\", `dynamic' to adapt the width
@@ -52,7 +51,9 @@ as needed, or a function that is called with a line number as its
 argument and should evaluate to a string to be shown on that line.
 See also `linum-before-numbering-hook'."
   :group 'linum
-  :type 'sexp)
+  :type '(choice (string :tag "Format string")
+                 (const :tag "Dynamic width" dynamic)
+                 (function :tag "Function")))
 
 (defface linum
   '((t :inherit (shadow default)))