diff options
| author | Enrico Tassi | 2019-03-26 10:21:32 +0100 |
|---|---|---|
| committer | Enrico Tassi | 2019-03-26 10:21:32 +0100 |
| commit | beec510bff5ba4d9606b1e4afe0816498460dc35 (patch) | |
| tree | 828097db04863eab3c3ca41e3d95db21ad623c49 | |
| parent | b87f1432474bd3ffda6f02eb3ba7edf50114cc23 (diff) | |
| parent | 1fa29f0558351634ad5b30876fb089bd22bf28ad (diff) | |
Merge PR #9829: [Vernacular] Deprecate the “Show Script” command
Reviewed-by: Zimmi48
Reviewed-by: gares
# Conflicts:
# CHANGES.md
| -rw-r--r-- | CHANGES.md | 2 | ||||
| -rw-r--r-- | doc/sphinx/proof-engine/proof-handling.rst | 4 | ||||
| -rw-r--r-- | stm/stm.ml | 5 |
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 |
