[racket-dev] "bookmarks" in drracket?

From: Matthias Felleisen (matthias at ccs.neu.edu)
Date: Fri Feb 3 10:48:53 EST 2012

I like the idea of bookmarks a lot, but a visual representation is needed. 

On Feb 3, 2012, at 2:06 AM, Stephen Chang wrote:

> When using Dr Racket, I use the right-click "Jump to definition of" a
> lot but I frequently find that I also want an easy way to get back to
> the code I was previously looking at. Does anyone else think this
> would be a useful feature to have? I've implemented something that
> adds this functionality.
> If anyone wants to try it out, I've included both modified source
> files (from drracket/private) and a patch.
> With the code I added, a "bookmark" automatically gets saved when
> jumping to a definition from the right-click menu and when choosing a
> definition from the "(define ...)" menu. Multiple bookmarks accumulate
> on a stack. You can also add your own bookmarks with the right click
> menu.
> To go back to the most recent bookmark, either use the right-click
> menu, or press C-x r (is this an appropriate key binding? I chose it
> because emacs similarly uses C-x r to do bookmark-related stuff).
> Since I'm not very familiar with drracket code, I'm not sure I put
> stuff in the right place. Would anyone mind reviewing my code? It's
> only a few lines.
> Also, would something like this be better as a plugin in the future?
> <bookmarks.rkt><rep.rkt><unit.rkt><bookmarks.patch>_________________________
>  Racket Developers list:
>  http://lists.racket-lang.org/dev

Posted on the dev mailing list.