Mercurial > emacs
comparison lispref/customize.texi @ 54299:9856d5a15940
Fix typo.
Remove eol whitespace.
author | Thien-Thi Nguyen <ttn@gnuvola.org> |
---|---|
date | Sun, 07 Mar 2004 12:44:50 +0000 |
parents | 36b31fc002f2 |
children | ba5561d20501 |
comparison
equal
deleted
inserted
replaced
54298:cf1bd1c870f7 | 54299:9856d5a15940 |
---|---|
583 The value must be a coding-system name, and you can do completion with | 583 The value must be a coding-system name, and you can do completion with |
584 @kbd{M-@key{TAB}}. | 584 @kbd{M-@key{TAB}}. |
585 | 585 |
586 @item color | 586 @item color |
587 The value must be a valid color name, and you can do completion with | 587 The value must be a valid color name, and you can do completion with |
588 @kbd{M-@key{TAB}}. A sample is provided, | 588 @kbd{M-@key{TAB}}. A sample is provided. |
589 @end table | 589 @end table |
590 | 590 |
591 @node Composite Types | 591 @node Composite Types |
592 @subsection Composite Types | 592 @subsection Composite Types |
593 @cindex arguments (of composite type) | 593 @cindex arguments (of composite type) |
1081 "A binary tree made of cons-cells and strings." | 1081 "A binary tree made of cons-cells and strings." |
1082 :offset 4 | 1082 :offset 4 |
1083 :tag "Node" | 1083 :tag "Node" |
1084 :type '(choice (string :tag "Leaf" :value "") | 1084 :type '(choice (string :tag "Leaf" :value "") |
1085 (cons :tag "Interior" | 1085 (cons :tag "Interior" |
1086 :value ("" . "") | 1086 :value ("" . "") |
1087 binary-tree-of-string | 1087 binary-tree-of-string |
1088 binary-tree-of-string))) | 1088 binary-tree-of-string))) |
1089 | 1089 |
1090 (defcustom foo-bar "" | 1090 (defcustom foo-bar "" |
1091 "Sample variable holding a binary tree of strings." | 1091 "Sample variable holding a binary tree of strings." |
1100 @code{lazy} widget is perfect, because it accept a @code{:type} keyword | 1100 @code{lazy} widget is perfect, because it accept a @code{:type} keyword |
1101 argument with the same syntax as the keyword argument to | 1101 argument with the same syntax as the keyword argument to |
1102 @code{defcustom} with the same name. The third argument is a | 1102 @code{defcustom} with the same name. The third argument is a |
1103 documentation string for the new widget. You will be able to see that | 1103 documentation string for the new widget. You will be able to see that |
1104 string with the @kbd{M-x widget-browse @key{ret} binary-tree-of-string | 1104 string with the @kbd{M-x widget-browse @key{ret} binary-tree-of-string |
1105 @key{ret}} command. | 1105 @key{ret}} command. |
1106 | 1106 |
1107 After these mandatory arguments follows the keyword arguments. The most | 1107 After these mandatory arguments follows the keyword arguments. The most |
1108 important is @code{:type}, which describes the datatype we want to match | 1108 important is @code{:type}, which describes the datatype we want to match |
1109 with this widget. Here a @code{binary-tree-of-string} is described as | 1109 with this widget. Here a @code{binary-tree-of-string} is described as |
1110 being either a string, or a cons-cell whose car and cdr are themselves | 1110 being either a string, or a cons-cell whose car and cdr are themselves |
1114 @code{:offset} argument are there to ensure that child nodes are | 1114 @code{:offset} argument are there to ensure that child nodes are |
1115 indented four spaces relatively to the parent node, making the tree | 1115 indented four spaces relatively to the parent node, making the tree |
1116 structure apparent in the customization buffer. | 1116 structure apparent in the customization buffer. |
1117 | 1117 |
1118 The @code{defcustom} shows how the new widget can be used as an ordinary | 1118 The @code{defcustom} shows how the new widget can be used as an ordinary |
1119 customization type. | 1119 customization type. |
1120 | 1120 |
1121 If you wonder about the name @code{lazy}, know that the other composite | 1121 If you wonder about the name @code{lazy}, know that the other composite |
1122 widgets convert their inferior widgets to internal form when the widget | 1122 widgets convert their inferior widgets to internal form when the widget |
1123 is instantiated in a buffer. This conversion is recursive, so the | 1123 is instantiated in a buffer. This conversion is recursive, so the |
1124 inferior widgets will convert @emph{their} inferior widgets. If the | 1124 inferior widgets will convert @emph{their} inferior widgets. If the |