Is there an Emacs function to delete (forward or backwards) until the first whitespace? For example, I have the following line, and the cursor is marked by the caret:
someword ?(&)!* morewords
^
I want to delete the backwards the sequence of non-alphanumeric characters, but not the word someword
. Using backward-delete-word
will wipe out the word as well. The same is with the cursor before the weird characters and kill-word
.