(custom-group-value-create): Insert some
authorMartin Rudalics <rudalics@gmx.at>
Wed, 18 Feb 2009 18:36:11 +0000 (18:36 +0000)
committerMartin Rudalics <rudalics@gmx.at>
Wed, 18 Feb 2009 18:36:11 +0000 (18:36 +0000)
informatory text in the WIDGET-misses-doc-string case.

lisp/ChangeLog
lisp/cus-edit.el

index 236bd35..8dfb3cc 100644 (file)
@@ -1,3 +1,8 @@
+2009-02-18  Martin Rudalics  <rudalics@gmx.at>
+
+       * cus-edit.el (custom-group-value-create): Insert some
+       informatory text in the WIDGET-misses-doc-string case.
+
 2009-02-18  Sam Steingold  <sds@gnu.org>
 
        * progmodes/compile.el: Require comint at top level to fix the
index 3c2985a..76a021e 100644 (file)
@@ -4006,8 +4006,11 @@ If GROUPS-ONLY non-nil, return only those members that are groups."
           (let ((start (point)))
             (insert tag " group: ")
             (widget-specify-sample widget start (point)))
-          (when (and doc (< (length doc) 50))
-            (insert doc))
+          (cond
+           ((not doc)
+            (insert " Group definition missing. "))
+           ((< (length doc) 50)
+            (insert doc)))
           ;; Create visibility indicator.
           (unless (eq custom-buffer-style 'links)
             (insert "--------")