aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Rudalics2009-02-18 12:55:35 +0000
committerMartin Rudalics2009-02-18 12:55:35 +0000
commitc19aae894a0f873f259701e912224bf4831dec7a (patch)
tree829c7ab2f696f2bdf07af8da02e616774cc5f17b
parent0d3e93a66f621c5229c14df56a31c7f19ed52251 (diff)
downloademacs-c19aae894a0f873f259701e912224bf4831dec7a.tar.gz
emacs-c19aae894a0f873f259701e912224bf4831dec7a.zip
(custom-group-value-create): Don't throw an error
when WIDGET has no doc-string. (Bug#2356)
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/cus-edit.el13
2 files changed, 12 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index ca9db4aa31f..e8221abc9df 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12009-02-18 Martin Rudalics <rudalics@gmx.at>
2
3 * cus-edit.el (custom-group-value-create): Don't throw an error
4 when WIDGET has no doc-string. (Bug#2356)
5
12009-02-18 Juanma Barranquero <lekktu@gmail.com> 62009-02-18 Juanma Barranquero <lekktu@gmail.com>
2 7
3 * progmodes/cc-menus.el (imenu-progress-message): 8 * progmodes/cc-menus.el (imenu-progress-message):
diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el
index 0de131f7a7f..3c2985a3b9b 100644
--- a/lisp/cus-edit.el
+++ b/lisp/cus-edit.el
@@ -3877,7 +3877,8 @@ If GROUPS-ONLY non-nil, return only those members that are groups."
3877 (symbol (widget-value widget)) 3877 (symbol (widget-value widget))
3878 (members (custom-group-members symbol 3878 (members (custom-group-members symbol
3879 (and (eq custom-buffer-style 'tree) 3879 (and (eq custom-buffer-style 'tree)
3880 custom-browse-only-groups)))) 3880 custom-browse-only-groups)))
3881 (doc (widget-docstring widget)))
3881 (cond ((and (eq custom-buffer-style 'tree) 3882 (cond ((and (eq custom-buffer-style 'tree)
3882 (eq state 'hidden) 3883 (eq state 'hidden)
3883 (or members (custom-unloaded-widget-p widget))) 3884 (or members (custom-unloaded-widget-p widget)))
@@ -4005,8 +4006,8 @@ If GROUPS-ONLY non-nil, return only those members that are groups."
4005 (let ((start (point))) 4006 (let ((start (point)))
4006 (insert tag " group: ") 4007 (insert tag " group: ")
4007 (widget-specify-sample widget start (point))) 4008 (widget-specify-sample widget start (point)))
4008 (if (< (length (widget-docstring widget)) 50) 4009 (when (and doc (< (length doc) 50))
4009 (insert (widget-docstring widget))) 4010 (insert doc))
4010 ;; Create visibility indicator. 4011 ;; Create visibility indicator.
4011 (unless (eq custom-buffer-style 'links) 4012 (unless (eq custom-buffer-style 'links)
4012 (insert "--------") 4013 (insert "--------")
@@ -4033,9 +4034,9 @@ If GROUPS-ONLY non-nil, return only those members that are groups."
4033 ;; Update buttons. 4034 ;; Update buttons.
4034 (widget-put widget :buttons buttons) 4035 (widget-put widget :buttons buttons)
4035 ;; Insert documentation. 4036 ;; Insert documentation.
4036 (if (>= (length (widget-docstring widget)) 50) 4037 (when (and doc (>= (length doc) 50))
4037 (widget-add-documentation-string-button 4038 (widget-add-documentation-string-button
4038 widget :visibility-widget 'custom-visibility)) 4039 widget :visibility-widget 'custom-visibility))
4039 4040
4040 ;; Parent groups. 4041 ;; Parent groups.
4041 (if nil ;;; This should test that the buffer 4042 (if nil ;;; This should test that the buffer