Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ fixed #4647 ] top-level interaction: access to private decls.
This commit addresses the problem that interaction commands that run in the top-level, like C-c C-n, do not have access to private decls of the main module. These are deleted from the scope before serialization, for reasons of performance (see #1806). The solution implemented here is that interaction gets two modes: 1. RegularInteraction: Initial mode after C-c C-l. The internal representation of the top module, hence its insideScope, is loaded from the interface file and thus has no knowledge of private declarations. 2. TopLevelInteraction: Top-level interaction commands switch to this mode, leading to a reload of the current top module in a way that private declarations are preserved in the insideScope. The module is not serialized. When a new file is loaded, we switch back to RegularInteraction. The emacs mode had to be changed to switch on highlighting for top-level commands, which was off because no highlighting would happen. Now, highlighting can happen due to a reload.
- Loading branch information
1 parent
08333a1
commit b9a7bd2
Showing
7 changed files
with
169 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.