aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorherbelin2003-05-23 08:12:00 +0000
committerherbelin2003-05-23 08:12:00 +0000
commit0b743a65a4f37b3a6b5229e3dec8847bb4594c54 (patch)
tree81bf436e8094e1680b71781467ceb77551943d14
parentceb0baae888057a31ad60287735ca5ffae8f3120 (diff)
Bug en mode translate
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@4069 85f007b7-540e-0410-9357-904b9bb8a0f7
-rw-r--r--toplevel/metasyntax.ml1
1 files changed, 1 insertions, 0 deletions
diff --git a/toplevel/metasyntax.ml b/toplevel/metasyntax.ml
index d047cef2fb..b9adcae8ad 100644
--- a/toplevel/metasyntax.ml
+++ b/toplevel/metasyntax.ml
@@ -481,6 +481,7 @@ let cache_syntax_extension (_,(_,prec,ntn,gr,se)) =
error ("Notation "^ntn^" is already assigned a different level")
else
(* The notation is already declared; no need to redeclare it *)
+ if Options.do_translate () then raise Not_found; (* In case the notation was only given to the printer - V8Notation *)
()
with Not_found ->
(* Reserve the notation level *)