diff options
author | Stephane Glondu <steph@glondu.net> | 2010-07-24 20:01:08 +0200 |
---|---|---|
committer | Stephane Glondu <steph@glondu.net> | 2010-07-24 20:01:08 +0200 |
commit | b9f47391f7f259c24119d1de0a87839e2cc5e80c (patch) | |
tree | 26dd3d5de63f420384fd84196d3a144af01f6084 /toplevel/vernacentries.ml | |
parent | 5b7eafd0f00a16d78f99a27f5c7d5a0de77dc7e6 (diff) |
Imported Upstream snapshot 8.3~beta0+13323
Diffstat (limited to 'toplevel/vernacentries.ml')
-rw-r--r-- | toplevel/vernacentries.ml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/toplevel/vernacentries.ml b/toplevel/vernacentries.ml index c4286900..3a5e1da8 100644 --- a/toplevel/vernacentries.ml +++ b/toplevel/vernacentries.ml @@ -1,6 +1,6 @@ (************************************************************************) (* v * The Coq Proof Assistant / The Coq Development Team *) -(* <O___,, * CNRS-Ecole Polytechnique-INRIA Futurs-Universite Paris Sud *) +(* <O___,, * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999-2010 *) (* \VV/ **************************************************************) (* // * This file is distributed under the terms of the *) (* * GNU Lesser General Public License Version 2.1 *) @@ -195,7 +195,9 @@ let print_loadpath dir = let print_modules () = let opened = Library.opened_libraries () and loaded = Library.loaded_libraries () in - let loaded_opened = list_intersect loaded opened + (* we intersect over opened to preserve the order of opened since *) + (* non-commutative operations (e.g. visibility) are done at import time *) + let loaded_opened = list_intersect opened loaded and only_loaded = list_subtract loaded opened in str"Loaded and imported library files: " ++ pr_vertical_list pr_dirpath loaded_opened ++ fnl () ++ |