Show
Ignore:
Timestamp:
2008年04月04日 22時04分40秒 (8 months ago)
Author:
miyoshi
Message:

Sync up with Emacs22.2.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lispref/customize.texi

    r4200 r4220  
    22@c This is part of the GNU Emacs Lisp Reference Manual. 
    33@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. 
    55@c See the file elisp.texi for copying conditions. 
    66@setfilename ../info/customize 
     
    748748separately, according to the type specified for it. 
    749749 
     750@item (group @var{element-types}@dots{}) 
     751This works like @code{list} except for the formatting 
     752of text in the Custom buffer.  @code{list} labels each 
     753element value with its tag; @code{group} does not. 
     754 
    750755@item (vector @var{element-types}@dots{}) 
    751756Like @code{list} except that the value must be a vector instead of a 
     
    11091114the value is acceptable. 
    11101115 
     1116@item :validate @var{function} 
     1117Specify a validation function for input.  @var{function} takes a 
     1118widget as an argument, and should return @code{nil} if the widget's 
     1119current value is valid for the widget.  Otherwise, it should return 
     1120the widget containing the invalid data, and set that widget's 
     1121@code{:error} property to a string explaining the error. 
     1122 
    11111123@ignore 
    11121124@item :indent @var{columns} 
     
    11161128item except for the first line. 
    11171129 
    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} 
     1131Indent the subitems of this item @var{extra} columns more than this 
     1132item itself.  By default, subitems are indented the same as their 
     1133parent. 
     1134 
     1135@item :extra-offset @var{n} 
     1136Add @var{n} extra spaces to this item's indentation, compared to its 
     1137parent's indentation. 
     1138 
     1139@item :notify @var{function} 
     1140Call @var{function} each time the item or a subitem is changed.  The 
     1141function gets two or three arguments.  The first argument is the item 
     1142itself, the second argument is the item that was changed, and the 
     1143third argument is the event leading to the change, if any. 
     1144 
     1145@item :menu-tag @var{tag-string} 
     1146Use @var{tag-string} in the menu when the widget is used as an option 
     1147in a @code{menu-choice} widget. 
    11351148 
    11361149@item :menu-tag-get 
     
    11391152@code{:menu-tag} or @code{:tag} property if present, or the @code{princ} 
    11401153representation of the @code{:value} property if not. 
    1141  
    1142 @item :validate 
    1143 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, it 
    1145 should return the widget containing the invalid data, and set that 
    1146 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. 
    11501154 
    11511155@item :tab-order