I'm looking for a way to reduce what Emacs kills when I use backward-kill-word
.
protected virtual void OnPropertyChanged(PropertyChangedEventArgs e)
{
if (PropertyChanged != null)
PropertyChanged(this, e);
}
If I'm editing the above code in Emacs and I place my cursor on the very last character (the }
) and I call backward-kill-word
, the entirety of e);
is killed, since Emacs only considers the e
to be a word.
Another example is if you place your cursor on the 'P' of PropertyChanged(this, e)
and call backward-kill-word
, the entirety of null)
before it is killed. The closed parenthesis is simply considered to not be a word.
My question is how I can eliminate this behavior. I want characters like )
, '
, }
, etc. to be treated as words by backward-kill-word
. This means that backward-kill-word
kills these characters and the cursor replaces them, just how backward-kill-word
typically behaves for one-character-long words like e
. One possible solution I've thought of is to somehow edit what Emacs considers to be words and simply add the characters I want to the list. Regardless, thanks for the help!
)
and}
? Do you want them to be skipped over and the next word found to be killed? Or do you want the word-kill operation to do nothing if it runs into a non-word char? Or something else? Try to specify the behavior you want.}
to be treated as if they were words--so the character itself would be killed and the cursor end up in its place.foo)) ))
? It sounds like you want a command that deletes the non-word characters one by one and then deletes 'foo' in one go? So more of a "backward delete char or word?" I think you may need to write your own command here.