Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
racket-run vs. racket-run-module-at-point
The command named `racket-run` now runs the `main` submodule, if any, else the file module. This behavior is like command-line racket, and, like Dr Racket in its default mode. (Note that if a main submodule is found and run, the REPL prompt will be "file.rkt/main>". This is intentional. When the "magic" happens, you will see that it happened.) The command named `racket-run-module-at-point` is what `racket-run` used to be: It runs a specific module around point. C-c C-c is still bound to this. How the back end implements this: If a dynamic-requiring `(submod "file.rkt" main)` fails, we always retry with "file.rkt". This automatically handles the racket-run case. And it is N/A for the racket-run-at-module case because it will only try to run `main` if such a submodule exists in the source file. This fixes issue #430 -- at least if you use the new `racket-run` command, either directly or via `racket-run-and-switch-to-repl` bound to F5 by default. If you have the default keybindings and C-c C-c to do a racket-run-module-at-point, the hidden `main` submodule created by lindenmayer/turtle will not run adn therefore the tree will not print.
- Loading branch information
1 parent
c0abae2
commit 5226366
Showing
6 changed files
with
65 additions
and
32 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
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