aboutsummaryrefslogtreecommitdiffhomepage
path: root/toplevel/vernac.ml
diff options
context:
space:
mode:
authorGravatar Emilio Jesus Gallego Arias <e+git@x80.org>2017-04-21 02:01:02 +0200
committerGravatar Emilio Jesus Gallego Arias <e+git@x80.org>2017-04-21 02:01:02 +0200
commita821f74dc91e438c86037d1dc8903a49934e6ee5 (patch)
treee29fdcb22b310768b400387167db9f97916333d6 /toplevel/vernac.ml
parentbeb3acd2fd3831404f0be2da61d3f28e210e8349 (diff)
[flags] Deprecate is_silent/is_verbose in favor of single flag.
Today, both modes are controlled by a single flag, however this is a bit misleading as is_silent really means "quiet", that is to say `coqc -q` whereas "verbose" is Coq normal operation. We also restore proper behavior of goal printing in coqtop on quiet mode, thanks to @Matafou for the report.
Diffstat (limited to 'toplevel/vernac.ml')
-rw-r--r--toplevel/vernac.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/toplevel/vernac.ml b/toplevel/vernac.ml
index 18f93197c..fd208bd89 100644
--- a/toplevel/vernac.ml
+++ b/toplevel/vernac.ml
@@ -116,7 +116,7 @@ let rec interp_vernac sid po (loc,com) =
load_vernac verbosely sid f
| v ->
try
- let nsid, ntip = Stm.add sid (Flags.is_verbose()) (loc,v) in
+ let nsid, ntip = Stm.add sid (not !Flags.quiet) (loc,v) in
(* Main STM interaction *)
if ntip <> `NewTip then
@@ -128,7 +128,7 @@ let rec interp_vernac sid po (loc,com) =
(* We could use a more refined criteria that depends on the
vernac. For now we imitate the old approach. *)
- let hide_goals = !Flags.batch_mode || is_query v ||
+ let hide_goals = !Flags.batch_mode || is_query v || !Flags.quiet ||
not (Proof_global.there_are_pending_proofs ()) in
if not hide_goals then Feedback.msg_notice (pr_open_cur_subgoals ());