@@ -578,7 +578,7 @@ process h fn (MakeWith updatefile l n)
578process h fn (DoProofSearch updatefile l n)
578process h fn (DoProofSearch updatefile l n)
579 = do src <- runIO $ readFile fn
579 = do src <- runIO $ readFile fn
580 let (before, tyline : later) = splitAt (l-1) (lines src)
580 let (before, tyline : later) = splitAt (l-1) (lines src)
581− let body = PProof [Try (TSeq Intros ProofSearch) ProofSearch]
581+ let body = PProof [Try (TSeq Intros (ProofSearch n)) (ProofSearch n)]
582 ctxt <- getContext
582 ctxt <- getContext
583 mn <- case lookupNames n ctxt of
583 mn <- case lookupNames n ctxt of
584 [x] -> return x
584 [x] -> return x
@@ -593,6 +593,7 @@ process h fn (DoProofSearch updatefile l n)
593 elabDecls toplevel [PClauses fc [] mn [def]]
593 elabDecls toplevel [PClauses fc [] mn [def]]
594 (tm, ty) <- elabVal toplevel False (PRef fc mn)
594 (tm, ty) <- elabVal toplevel False (PRef fc mn)
595 ctxt <- getContext
595 ctxt <- getContext
596 let newmv = show (dropCtxt envlen (delab i (normaliseAll ctxt [] tm)))
597 let newmv = show (dropCtxt envlen (delab i (normaliseAll ctxt [] tm)))
597 if updatefile then
598 if updatefile then
598 do let fb = fn ++ "~"
599 do let fb = fn ++ "~"