Improve function kill-word-dwim to support for EOB and region