[plt-scheme] Closing the current tab in DrScheme -- a roundabout way of doing it

From: Danny Yoo (dyoo at hkn.eecs.berkeley.edu)
Date: Tue May 30 18:07:23 EDT 2006

>>> I could not find a nice keybinding to close the current tab in
>>> DrScheme.  I know some binding for this exists on the Mac platform,
>>> but I couldn't find an equivalent for Linux.
>> Doesn't C-w do that?

Hi everyone,

Ah, ok.  But that C-w binding seems to be available only if "Enable 
Keybindings In Menus" is checked.  Even though I'm using DrScheme, I'm 
still a sinful Emacs user at heart and use C-w to do "cut-clipboard".

I'm looking at drscheme/private/unit.ss, and I do see close-current-tab in 
there, but I can't use it directly: it's define/private-ed.  Also, the 
definition scoped within the setup of the DrScheme unit frame, which makes 
it difficult for me to grab directly.

I've made some changes to my keybinding code to make it do either 'close 
tab' or 'close window' depending on context.  Here it is:


Posted on the users mailing list.