Give this a try, I had to add the "VSARG2_TEXT_BOX" to the command declaration, and put in a "command_state()" guard so it doesn't use any properties unsupported by text boxes in dialogs:
_command void hungry_delete( ) name_info(','VSARG2_REQUIRES_EDITORCTL|VSARG2_TEXT_BOX)
{
if (command_state()) {
linewrap_rubout();
} else {
int col = p_col;
left();
cur_char = get_text();
if( col > 1 ) { right();}
if( is_whitespace( cur_char) )
{
/* backspace until we find a char */
while( is_whitespace( cur_char ) || (col == 1) )
{
linewrap_rubout();
col = p_col;
left();
cur_char = get_text();
if( col > 1) { right(); }
}
}
else
linewrap_rubout();
}
}
[code]