diff options
| author | Lars Ingebrigtsen | 2019-10-12 06:40:49 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-10-12 06:40:49 +0200 |
| commit | adb9dc4bff72c390175ddb97f8cc72afee9ee589 (patch) | |
| tree | 84a08a9edd2f8878b63bd8ddd53673289e829b01 | |
| parent | 4b60e0722d0a79751f345bd470d07db0d635aa28 (diff) | |
| download | emacs-adb9dc4bff72c390175ddb97f8cc72afee9ee589.tar.gz emacs-adb9dc4bff72c390175ddb97f8cc72afee9ee589.zip | |
Document :match-inline widget elements
* doc/lispref/customize.texi (Type Keywords): Document
:match-inline (bug#8716).
(Splicing into Lists): Mention :match-inline.
| -rw-r--r-- | doc/lispref/customize.texi | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/lispref/customize.texi b/doc/lispref/customize.texi index 822066f3c54..64c06c23867 100644 --- a/doc/lispref/customize.texi +++ b/doc/lispref/customize.texi | |||
| @@ -1047,6 +1047,9 @@ overall list has two elements and the second element is @code{t}. If | |||
| 1047 | the user chooses the second alternative, then the overall list has three | 1047 | the user chooses the second alternative, then the overall list has three |
| 1048 | elements and the second and third must be strings. | 1048 | elements and the second and third must be strings. |
| 1049 | 1049 | ||
| 1050 | The widgets can specify predicates to say whether an inline value | ||
| 1051 | matches the widget with the @code{:match-inline} element. | ||
| 1052 | |||
| 1050 | @node Type Keywords | 1053 | @node Type Keywords |
| 1051 | @subsection Type Keywords | 1054 | @subsection Type Keywords |
| 1052 | 1055 | ||
| @@ -1165,6 +1168,14 @@ corresponding value, @var{function}, should be a function that accepts | |||
| 1165 | two arguments, a widget and a value; it should return non-@code{nil} if | 1168 | two arguments, a widget and a value; it should return non-@code{nil} if |
| 1166 | the value is acceptable. | 1169 | the value is acceptable. |
| 1167 | 1170 | ||
| 1171 | @item :match-inline @var{function} | ||
| 1172 | @kindex match-inline@r{, customization keyword} | ||
| 1173 | Specify how to decide whether an inline value matches the type. The | ||
| 1174 | corresponding value, @var{function}, should be a function that accepts | ||
| 1175 | two arguments, a widget and an inline value; it should return | ||
| 1176 | non-@code{nil} if the value is acceptable. See @ref{Splicing into | ||
| 1177 | Lists} for more information about inline values. | ||
| 1178 | |||
| 1168 | @item :validate @var{function} | 1179 | @item :validate @var{function} |
| 1169 | Specify a validation function for input. @var{function} takes a | 1180 | Specify a validation function for input. @var{function} takes a |
| 1170 | widget as an argument, and should return @code{nil} if the widget's | 1181 | widget as an argument, and should return @code{nil} if the widget's |