aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2019-10-12 06:40:49 +0200
committerLars Ingebrigtsen2019-10-12 06:40:49 +0200
commitadb9dc4bff72c390175ddb97f8cc72afee9ee589 (patch)
tree84a08a9edd2f8878b63bd8ddd53673289e829b01
parent4b60e0722d0a79751f345bd470d07db0d635aa28 (diff)
downloademacs-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.texi11
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
1047the user chooses the second alternative, then the overall list has three 1047the user chooses the second alternative, then the overall list has three
1048elements and the second and third must be strings. 1048elements and the second and third must be strings.
1049 1049
1050 The widgets can specify predicates to say whether an inline value
1051matches 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
1165two arguments, a widget and a value; it should return non-@code{nil} if 1168two arguments, a widget and a value; it should return non-@code{nil} if
1166the value is acceptable. 1169the value is acceptable.
1167 1170
1171@item :match-inline @var{function}
1172@kindex match-inline@r{, customization keyword}
1173Specify how to decide whether an inline value matches the type. The
1174corresponding value, @var{function}, should be a function that accepts
1175two arguments, a widget and an inline value; it should return
1176non-@code{nil} if the value is acceptable. See @ref{Splicing into
1177Lists} for more information about inline values.
1178
1168@item :validate @var{function} 1179@item :validate @var{function}
1169Specify a validation function for input. @var{function} takes a 1180Specify a validation function for input. @var{function} takes a
1170widget as an argument, and should return @code{nil} if the widget's 1181widget as an argument, and should return @code{nil} if the widget's