-
-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Eliminate some janky scenarios related to editing and motion; in some cases faces or overlays would persist too long and/or in wrong locations while editing. Remove all "decorations" (face overlays plus possible racket-show presentation) earlier. Set the overlay property that inserts before the overlay do not become part of it. Have the motion handler update unless all of window-point, -start, and -end are the same (handle case where scrolling happens to preserve -point). Similar to racket--pdb-change-generation, add a "generation" variable for motion, used to ignore point-info command responses that are outdated (although this is much less likely to occur, I think it's still a possibility worth guarding against). Also don't do updates if we know we're still waiting for an analysis to complete, so the results won't be correct. Note: When first adding racket-pdb-mode in commit 86e35ea, I moved some face overlay helper functions from racket-xp.el to util.el to be shared. It turns out we want to use overlays somewhat differently in each mode, so I moved them back. In racket-pdb-mode, we create relatively few, short-lived overlays. Not only is it practical to keep them in a side list variable, it speeds certain operations like removing all of them or navigating a subset of them for things like next/previous use/def commands. Also we create overlays with a different "front-advance" value.
- Loading branch information
1 parent
703c518
commit 669a7e2
Showing
3 changed files
with
207 additions
and
174 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
Oops, something went wrong.