aboutsummaryrefslogtreecommitdiff
path: root/intf
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2018-02-28 13:45:04 +0100
committerPierre-Marie Pédrot2018-03-09 10:17:21 -0300
commit25b07a6f824654be2041152d904507bc62102986 (patch)
tree82f9d96e40911f85347ed4e5bc273cc6a15627f9 /intf
parent38a671f74857aec8e285a6a0bfcab876e3b9a133 (diff)
Implement the Export Set/Unset feature.
This feature has been asked many times by different people, and allows to have options in a module that are performed when this module is imported. This supersedes the well-numbered cursed PR #313.
Diffstat (limited to 'intf')
-rw-r--r--intf/vernacexpr.ml5
1 files changed, 2 insertions, 3 deletions
diff --git a/intf/vernacexpr.ml b/intf/vernacexpr.ml
index 0a6e5b3b31..dca4910574 100644
--- a/intf/vernacexpr.ml
+++ b/intf/vernacexpr.ml
@@ -425,9 +425,8 @@ type nonrec vernac_expr =
| VernacSetOpacity of (Conv_oracle.level * reference or_by_notation list)
| VernacSetStrategy of
(Conv_oracle.level * reference or_by_notation list) list
- | VernacUnsetOption of Goptions.option_name
- | VernacSetOption of Goptions.option_name * option_value
- | VernacSetAppendOption of Goptions.option_name * string
+ | VernacUnsetOption of export_flag * Goptions.option_name
+ | VernacSetOption of export_flag * Goptions.option_name * option_value
| VernacAddOption of Goptions.option_name * option_ref_value list
| VernacRemoveOption of Goptions.option_name * option_ref_value list
| VernacMemOption of Goptions.option_name * option_ref_value list