Changeset 4220 for trunk/lispref/customize.texi
- Timestamp:
- 2008年04月04日 22時04分40秒 (8 months ago)
- Files:
-
- trunk/lispref/customize.texi (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lispref/customize.texi
r4200 r4220 2 2 @c This is part of the GNU Emacs Lisp Reference Manual. 3 3 @c Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 4 @c 2005, 2006, 2007 Free Software Foundation, Inc.4 @c 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 5 5 @c See the file elisp.texi for copying conditions. 6 6 @setfilename ../info/customize … … 748 748 separately, according to the type specified for it. 749 749 750 @item (group @var{element-types}@dots{}) 751 This works like @code{list} except for the formatting 752 of text in the Custom buffer. @code{list} labels each 753 element value with its tag; @code{group} does not. 754 750 755 @item (vector @var{element-types}@dots{}) 751 756 Like @code{list} except that the value must be a vector instead of a … … 1109 1114 the value is acceptable. 1110 1115 1116 @item :validate @var{function} 1117 Specify a validation function for input. @var{function} takes a 1118 widget as an argument, and should return @code{nil} if the widget's 1119 current value is valid for the widget. Otherwise, it should return 1120 the widget containing the invalid data, and set that widget's 1121 @code{:error} property to a string explaining the error. 1122 1111 1123 @ignore 1112 1124 @item :indent @var{columns} … … 1116 1128 item except for the first line. 1117 1129 1118 @item :offset @var{columns} 1119 An integer indicating how many extra spaces to indent the subitems of 1120 this item. By default, subitems are indented the same as their parent. 1121 1122 @item :extra-offset 1123 An integer indicating how many extra spaces to add to this item's 1124 indentation, compared to its parent. 1125 1126 @item :notify 1127 A function called each time the item or a subitem is changed. The 1128 function is called with two or three arguments. The first argument is 1129 the item itself, the second argument is the item that was changed, and 1130 the third argument is the event leading to the change, if any. 1131 1132 @item :menu-tag 1133 A tag used in the menu when the widget is used as an option in a 1134 @code{menu-choice} widget. 1130 @item :offset @var{extra} 1131 Indent the subitems of this item @var{extra} columns more than this 1132 item itself. By default, subitems are indented the same as their 1133 parent. 1134 1135 @item :extra-offset @var{n} 1136 Add @var{n} extra spaces to this item's indentation, compared to its 1137 parent's indentation. 1138 1139 @item :notify @var{function} 1140 Call @var{function} each time the item or a subitem is changed. The 1141 function gets two or three arguments. The first argument is the item 1142 itself, the second argument is the item that was changed, and the 1143 third argument is the event leading to the change, if any. 1144 1145 @item :menu-tag @var{tag-string} 1146 Use @var{tag-string} in the menu when the widget is used as an option 1147 in a @code{menu-choice} widget. 1135 1148 1136 1149 @item :menu-tag-get … … 1139 1152 @code{:menu-tag} or @code{:tag} property if present, or the @code{princ} 1140 1153 representation of the @code{:value} property if not. 1141 1142 @item :validate1143 A function which takes a widget as an argument, and return @code{nil}1144 if the widget's current value is valid for the widget. Otherwise, it1145 should return the widget containing the invalid data, and set that1146 widget's @code{:error} property to a string explaining the error.1147 1148 You can use the function @code{widget-children-validate} for this job;1149 it tests that all children of @var{widget} are valid.1150 1154 1151 1155 @item :tab-order
