aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEnrico Tassi2019-03-26 10:21:32 +0100
committerEnrico Tassi2019-03-26 10:21:32 +0100
commitbeec510bff5ba4d9606b1e4afe0816498460dc35 (patch)
tree828097db04863eab3c3ca41e3d95db21ad623c49
parentb87f1432474bd3ffda6f02eb3ba7edf50114cc23 (diff)
parent1fa29f0558351634ad5b30876fb089bd22bf28ad (diff)
Merge PR #9829: [Vernacular] Deprecate the “Show Script” command
Reviewed-by: Zimmi48 Reviewed-by: gares # Conflicts: # CHANGES.md
-rw-r--r--CHANGES.md2
-rw-r--r--doc/sphinx/proof-engine/proof-handling.rst4
-rw-r--r--stm/stm.ml5
3 files changed, 11 insertions, 0 deletions
diff --git a/CHANGES.md b/CHANGES.md
index 764d4afb5c..dcf321c7ff 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -151,6 +151,8 @@ Vernacular commands
- Removed deprecated option `Automatic Coercions Import`.
+- The `Show Script` command has been deprecated.
+
Tools
- The `-native-compiler` flag of `coqc` and `coqtop` now takes an argument which can have three values:
diff --git a/doc/sphinx/proof-engine/proof-handling.rst b/doc/sphinx/proof-engine/proof-handling.rst
index 07215a0c7e..16b158c397 100644
--- a/doc/sphinx/proof-engine/proof-handling.rst
+++ b/doc/sphinx/proof-engine/proof-handling.rst
@@ -544,6 +544,10 @@ Requesting information
``<Your Tactic Text here>``.
+ .. deprecated:: 8.10
+
+ Please use a text editor.
+
.. cmdv:: Show Proof
:name: Show Proof
diff --git a/stm/stm.ml b/stm/stm.ml
index ab388977a5..0c5d0c7b5d 100644
--- a/stm/stm.ml
+++ b/stm/stm.ml
@@ -1121,7 +1121,12 @@ let get_script prf =
in
find [] (VCS.get_branch_pos branch)
+let warn_show_script_deprecated =
+ CWarnings.create ~name:"deprecated-show-script" ~category:"deprecated"
+ (fun () -> Pp.str "The “Show Script” command is deprecated.")
+
let show_script ?proof () =
+ warn_show_script_deprecated ();
try
let prf =
try match proof with