aboutsummaryrefslogtreecommitdiff
path: root/vernac
diff options
context:
space:
mode:
Diffstat (limited to 'vernac')
-rw-r--r--vernac/declaremods.ml2
-rw-r--r--vernac/metasyntax.ml4
-rw-r--r--vernac/vernacentries.ml7
3 files changed, 6 insertions, 7 deletions
diff --git a/vernac/declaremods.ml b/vernac/declaremods.ml
index 15e6d4ef37..95e05556b9 100644
--- a/vernac/declaremods.ml
+++ b/vernac/declaremods.ml
@@ -216,7 +216,7 @@ let consistency_checks exists dir dirinfo =
else
if Nametab.exists_dir dir then
user_err ~hdr:"consistency_checks"
- (DirPath.print dir ++ str " already exists")
+ (DirPath.print dir ++ str " already exists.")
let compute_visibility exists i =
if exists then Nametab.Exactly i else Nametab.Until i
diff --git a/vernac/metasyntax.ml b/vernac/metasyntax.ml
index 2fe402ff08..f9f65a8c30 100644
--- a/vernac/metasyntax.ml
+++ b/vernac/metasyntax.ml
@@ -1664,7 +1664,7 @@ let add_notation_interpretation env decl_ntn =
decl_ntn_scope = sc;
} = decl_ntn in
match interp_non_syntax_modifiers modifiers with
- | None -> CErrors.user_err (str"Only modifiers not affecting parsing are supported here")
+ | None -> CErrors.user_err (str"Only modifiers not affecting parsing are supported here.")
| Some (only_parsing,only_printing,entry) ->
let df' = add_notation_interpretation_core ~local:false df env entry c sc only_parsing false None in
Dumpglob.dump_notation (loc,df') sc true
@@ -1845,6 +1845,6 @@ let inCustomEntry : locality_flag * string -> obj =
let declare_custom_entry local s =
if Egramcoq.exists_custom_entry s then
- user_err Pp.(str "Custom entry " ++ str s ++ str " already exists")
+ user_err Pp.(str "Custom entry " ++ str s ++ str " already exists.")
else
Lib.add_anonymous_leaf (inCustomEntry (local,s))
diff --git a/vernac/vernacentries.ml b/vernac/vernacentries.ml
index e8d84a67a3..af40292f18 100644
--- a/vernac/vernacentries.ml
+++ b/vernac/vernacentries.ml
@@ -1934,10 +1934,9 @@ let vernac_search ~pstate ~atts s gopt r =
let open ComSearch in
let gopt = query_command_selector gopt in
let sigma, env =
- match gopt with | None ->
- (* 1st goal by default if it exists, otherwise no goal at all *)
- (try get_goal_or_global_context ~pstate 1
- with _ -> let env = Global.env () in (Evd.from_env env, env))
+ match gopt with
+ (* 1st goal by default if it exists, otherwise no goal at all *)
+ | None -> get_goal_or_global_context ~pstate 1
(* if goal selector is given and wrong, then let exceptions be raised. *)
| Some g -> get_goal_or_global_context ~pstate g in
interp_search env sigma s r