aboutsummaryrefslogtreecommitdiff
path: root/dev
diff options
context:
space:
mode:
authorHugo Herbelin2016-07-19 00:10:12 +0200
committerHugo Herbelin2016-07-19 11:04:02 +0200
commit6c5d59b76265e4159d4e3b06ef71963067d4d288 (patch)
tree2cb6102f6425fd53cb8c403b13dbd5c1b102d44f /dev
parentfd0cd480a720cbba15de86bbc9cad74ba6d89675 (diff)
Fixing extra returns in top_printers.ml (msg_notice not same semantics as pp).
Diffstat (limited to 'dev')
-rw-r--r--dev/top_printers.ml9
1 files changed, 4 insertions, 5 deletions
diff --git a/dev/top_printers.ml b/dev/top_printers.ml
index 023835af76..e09477014b 100644
--- a/dev/top_printers.ml
+++ b/dev/top_printers.ml
@@ -29,8 +29,7 @@ let _ = set_bool_option_value ["Printing";"Matching"] false
let _ = Detyping.set_detype_anonymous (fun _ _ -> raise Not_found)
(* std_ppcmds *)
-let pp x = Feedback.msg_notice x
-let pppp x = Feedback.msg_notice x
+let pp x = Pp.pp_with !Pp_control.std_ft x
(** Future printer *)
@@ -316,7 +315,7 @@ let constr_display csr =
| Anonymous -> "Anonymous"
in
- Feedback.msg_notice (str (term_display csr) ++fnl ())
+ pp (str (term_display csr) ++fnl ())
open Format;;
@@ -514,7 +513,7 @@ let _ =
(fun () -> in_current_context constr_display c)
| _ -> failwith "Vernac extension: cannot occur")
with
- e -> Feedback.msg_notice (CErrors.print e)
+ e -> pp (CErrors.print e)
let _ =
extend_vernac_command_grammar ("PrintConstr", 0) None
[GramTerminal "PrintConstr";
@@ -530,7 +529,7 @@ let _ =
(fun () -> in_current_context print_pure_constr c)
| _ -> failwith "Vernac extension: cannot occur")
with
- e -> Feedback.msg_notice (CErrors.print e)
+ e -> pp (CErrors.print e)
let _ =
extend_vernac_command_grammar ("PrintPureConstr", 0) None
[GramTerminal "PrintPureConstr";