aboutsummaryrefslogtreecommitdiff
path: root/printing
diff options
context:
space:
mode:
authorGuillaume Melquiond2016-09-30 22:50:49 +0200
committerGuillaume Melquiond2016-10-01 07:50:12 +0200
commitb3dbd589e1dc41d7bce18afd87dd6e59968286bb (patch)
tree73060444485726726cb62f07db44d209cfbc0c48 /printing
parent5b6dd304b9f88c86ebb066c1f173bb011d2b5f83 (diff)
Add command 'Set foo Append "bar"' for appending to an option (bug #5109).
For now, the only meaningful user is "Set Warnings". Example: Section Bar. Local Set Warnings Append "-foo". (* warning foo is now disabled *) End Bar. (* foo is now reenabled, assuming it was before entering the section *)
Diffstat (limited to 'printing')
-rw-r--r--printing/ppvernac.ml5
1 files changed, 5 insertions, 0 deletions
diff --git a/printing/ppvernac.ml b/printing/ppvernac.ml
index 2d87b51d73..f4a112a4cb 100644
--- a/printing/ppvernac.ml
+++ b/printing/ppvernac.ml
@@ -1110,6 +1110,11 @@ module Make
return (
hov 2 (keyword "Set" ++ spc() ++ pr_set_option na v)
)
+ | VernacSetAppendOption (na,v) ->
+ return (
+ hov 2 (keyword "Set" ++ spc() ++ pr_printoption na None ++
+ spc() ++ keyword "Append" ++ spc() ++ str v)
+ )
| VernacAddOption (na,l) ->
return (
hov 2 (keyword "Add" ++ spc() ++ pr_printoption na (Some l))