From 90963f51d1a853040f23370d7c911502fa9740da Mon Sep 17 00:00:00 2001 From: herbelin Date: Wed, 4 Jan 2006 19:12:19 +0000 Subject: Restauration des commandes de débogage PrintConstr et PrintPureConstr (suite): correction des dépendances (et notamment non-dépendance en unix.cma) pour la création de printers.cma git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@7787 85f007b7-540e-0410-9357-904b9bb8a0f7 --- dev/top_printers.ml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'dev') diff --git a/dev/top_printers.ml b/dev/top_printers.ml index 8a5ff983d1..4bf879e85b 100644 --- a/dev/top_printers.ml +++ b/dev/top_printers.ml @@ -309,7 +309,9 @@ let pploc x = let (l,r) = unloc x in (* Vernac-level debugging commands *) let in_current_context f c = - let (evmap,sign) = Command.get_current_context () in + let (evmap,sign) = + try Pfedit.get_current_goal_context () + with e when Logic.catchable_exception e -> (Evd.empty, Global.env()) in f (Constrintern.interp_constr evmap sign c) (* We expand the result of preprocessing to be independent of camlp4 -- cgit v1.2.3