diff options
| author | Pierre-Marie Pédrot | 2018-04-04 13:40:53 +0200 |
|---|---|---|
| committer | Pierre-Marie Pédrot | 2018-04-04 13:40:53 +0200 |
| commit | 55674399d4020b6dc1cf9ea55c78ebcde70f2e4a (patch) | |
| tree | 2e6991d36908381da0e206d6d35eb9f553f17964 /plugins | |
| parent | a1a190f5edf1c3c3283babce52d0e1b4d6830328 (diff) | |
| parent | d9a7712b231f92882c2dccdc62d24ea3109abb0e (diff) | |
Merge PR #6407: Fix #6404 - Print tactics called by ML tactics
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/ltac/tactic_debug.ml | 7 |
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)) |
