aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2014-07-21 17:39:58 +0200
committerPierre-Marie Pédrot2014-07-21 17:50:12 +0200
commit9b6c7b1a50a4ea87877017848b0f6b20c582cf87 (patch)
tree0549ccc0dea51d4a859b3f18ea4242c0058db81e
parent4a268c0ddd21d4e8e07495c362757c4c6f477fcc (diff)
Documenting the changes of Locate semantics.
-rw-r--r--CHANGES3
-rw-r--r--doc/refman/RefMan-oth.tex18
2 files changed, 19 insertions, 2 deletions
diff --git a/CHANGES b/CHANGES
index f5e83bdaed..5d904f305d 100644
--- a/CHANGES
+++ b/CHANGES
@@ -52,6 +52,9 @@ Vernacular commands
The tools/update-require script can be used to convert a development.
- A new Print Strategies command allows to visualize the opacity status
of the whole engine.
+- The "Locate" command now searches through all sorts of qualified namespaces of
+ Coq: terms, modules, tactics, etc. The old behaviour of the command can be
+ retrieved using the "Locate Term" command.
Specification Language
diff --git a/doc/refman/RefMan-oth.tex b/doc/refman/RefMan-oth.tex
index 20ead7cceb..8aa6df0616 100644
--- a/doc/refman/RefMan-oth.tex
+++ b/doc/refman/RefMan-oth.tex
@@ -421,8 +421,10 @@ The default blacklisted substrings are {\tt "\_admitted"
\subsection[\tt Locate {\qualid}.]{\tt Locate {\qualid}.\comindex{Locate}
\label{Locate}}
-This command displays the full name of the qualified identifier {\qualid}
-and consequently the \Coq\ module in which it is defined.
+This command displays the full name of objects whose name is a prefix of the
+qualified identifier {\qualid}, and consequently the \Coq\ module in which they
+are defined. It searches for objects from the different qualified namespaces of
+Coq: terms, modules, Ltac, etc.
\begin{coq_eval}
(*************** The last line should produce **************************)
@@ -439,6 +441,18 @@ Locate Coq.Init.Datatypes.O.
Locate I.Dont.Exist.
\end{coq_example}
+\begin{Variants}
+\item {\tt Locate Term {\qualid}.}\comindex{Locate Term}\\
+ As {\tt Locate} but restricted to terms.
+
+\item {\tt Locate Module {\qualid}.}
+ As {\tt Locate} but restricted to modules.
+
+\item {\tt Locate Ltac {\qualid}.}\comindex{Locate Ltac}\\
+ As {\tt Locate} but restricted to tactics.
+\end{Variants}
+
+
\SeeAlso Section \ref{LocateSymbol}
\subsection{The {\sc Whelp} searching tool