aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2018-04-04 13:40:53 +0200
committerPierre-Marie Pédrot2018-04-04 13:40:53 +0200
commit55674399d4020b6dc1cf9ea55c78ebcde70f2e4a (patch)
tree2e6991d36908381da0e206d6d35eb9f553f17964 /plugins
parenta1a190f5edf1c3c3283babce52d0e1b4d6830328 (diff)
parentd9a7712b231f92882c2dccdc62d24ea3109abb0e (diff)
Merge PR #6407: Fix #6404 - Print tactics called by ML tactics
Diffstat (limited to 'plugins')
-rw-r--r--plugins/ltac/tactic_debug.ml7
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/ltac/tactic_debug.ml b/plugins/ltac/tactic_debug.ml
index e55b49fb4e..57a11d9477 100644
--- a/plugins/ltac/tactic_debug.ml
+++ b/plugins/ltac/tactic_debug.ml
@@ -391,13 +391,10 @@ let explain_ltac_call_trace last trace loc =
let skip_extensions trace =
let rec aux = function
- | (_,Tacexpr.LtacNameCall f as tac) :: _
- when Tacenv.is_ltac_for_ml_tactic f -> [tac]
- | (_,Tacexpr.LtacNotationCall _ as tac) :: (_,Tacexpr.LtacMLCall _) :: _ ->
+ | (_,Tacexpr.LtacNotationCall _ as tac) :: (_,Tacexpr.LtacMLCall _) :: tail ->
(* Case of an ML defined tactic with entry of the form <<"foo" args>> *)
(* see tacextend.mlp *)
- [tac]
- | (_,Tacexpr.LtacMLCall _ as tac) :: _ -> [tac]
+ tac :: aux tail
| t :: tail -> t :: aux tail
| [] -> [] in
List.rev (aux (List.rev trace))