aboutsummaryrefslogtreecommitdiffhomepage
path: root/vernac/ppvernac.ml
diff options
context:
space:
mode:
authorGravatar Matthieu Sozeau <matthieu.sozeau@inria.fr>2017-03-30 16:28:21 +0200
committerGravatar Matthieu Sozeau <matthieu.sozeau@inria.fr>2018-07-02 16:27:18 +0200
commit8d02317cc02ae5d007f5d2486d26bb37865ca0a9 (patch)
treefb2951e3aee66c93f66c2bced46759a99baf3f46 /vernac/ppvernac.ml
parent02fe76c0c1c3f01c6fb4310dd4450b35f43005da (diff)
hints: add Hint Variables/Constants Opaque/Transparent commands
This gives user control on the transparent state of a hint db. Can override defaults more easily (report by J. H. Jourdan). For "core", declare that variables can be unfolded, but no constants (ensures compatibility with previous auto which allowed conv on closed terms) Document Hint Variables
Diffstat (limited to 'vernac/ppvernac.ml')
-rw-r--r--vernac/ppvernac.ml5
1 files changed, 4 insertions, 1 deletions
diff --git a/vernac/ppvernac.ml b/vernac/ppvernac.ml
index 56dfaa54a..5fbe1f4e4 100644
--- a/vernac/ppvernac.ml
+++ b/vernac/ppvernac.ml
@@ -210,7 +210,10 @@ open Pputils
| HintsTransparency (l, b) ->
keyword (if b then "Transparent" else "Opaque")
++ spc ()
- ++ prlist_with_sep sep pr_qualid l
+ ++ (match l with
+ | HintsVariables -> keyword "Variables"
+ | HintsConstants -> keyword "Constants"
+ | HintsReferences l -> prlist_with_sep sep pr_qualid l)
| HintsMode (m, l) ->
keyword "Mode"
++ spc ()