aboutsummaryrefslogtreecommitdiff
path: root/plugins/ltac
diff options
context:
space:
mode:
authorThéo Zimmermann2019-02-08 13:47:47 +0100
committerThéo Zimmermann2019-02-28 15:41:28 +0100
commitb08c14e551def3fb1ec885cf1ff05018f3d87ab9 (patch)
tree3facd399d962a24d0601113440d9cef1af83b040 /plugins/ltac
parent8b42c73a6a3b417e848952e7510e27d74e6e1758 (diff)
Fix #7632: Change syntax of autoapply according to the documentation.
Deprecate the old syntax. The documented syntax was using a with clause which is more standard with a hint database than the using clause that was actually implemented.
Diffstat (limited to 'plugins/ltac')
-rw-r--r--plugins/ltac/g_class.mlg13
1 files changed, 12 insertions, 1 deletions
diff --git a/plugins/ltac/g_class.mlg b/plugins/ltac/g_class.mlg
index 9ecc36bdf3..3f2fabeeee 100644
--- a/plugins/ltac/g_class.mlg
+++ b/plugins/ltac/g_class.mlg
@@ -99,8 +99,19 @@ TACTIC EXTEND is_ground
| [ "is_ground" constr(ty) ] -> { is_ground ty }
END
+{
+let deprecated_autoapply_using =
+ CWarnings.create
+ ~name:"autoapply-using" ~category:"deprecated"
+ (fun () -> Pp.str "The syntax [autoapply ... using] is deprecated. Use [autoapply ... with] instead.")
+}
+
TACTIC EXTEND autoapply
-| [ "autoapply" constr(c) "using" preident(i) ] -> { autoapply c i }
+| [ "autoapply" constr(c) "using" preident(i) ] -> {
+ deprecated_autoapply_using ();
+ autoapply c i
+ }
+| [ "autoapply" constr(c) "with" preident(i) ] -> { autoapply c i }
END
{