aboutsummaryrefslogtreecommitdiff
path: root/toplevel
diff options
context:
space:
mode:
authorEnrico Tassi2015-10-06 14:11:19 +0200
committerEnrico Tassi2015-10-08 09:51:13 +0200
commitce83c2b9fd1685e46049ee7f47c8716dcf66dbd1 (patch)
treef37a9f9b4aadcd6b07fce72885f879d457ab78dd /toplevel
parent27d4a636cb7f1fbdbced1980808a9b947405eeb5 (diff)
Goptions: new value type: optional string
These options can be set to a string value, but also unset. Internal data is of type string option.
Diffstat (limited to 'toplevel')
-rw-r--r--toplevel/vernacentries.ml2
1 files changed, 2 insertions, 0 deletions
diff --git a/toplevel/vernacentries.ml b/toplevel/vernacentries.ml
index c07c756c01..5147d81bce 100644
--- a/toplevel/vernacentries.ml
+++ b/toplevel/vernacentries.ml
@@ -1497,6 +1497,8 @@ let vernac_set_opacity locality (v,l) =
let vernac_set_option locality key = function
| StringValue s -> set_string_option_value_gen locality key s
+ | StringOptValue (Some s) -> set_string_option_value_gen locality key s
+ | StringOptValue None -> unset_option_value_gen locality key
| IntValue n -> set_int_option_value_gen locality key n
| BoolValue b -> set_bool_option_value_gen locality key b