Hi,
When calling the smart commands from keybindings with a region selected, smart-hungry-delete-forward-char will also delete the char after point, and smart-hungry-delete-backward-char also deletes the char before point. If the char is whitespace, it will hungrily delete it.
For example, with ([] being point and | mark):
pressing backspace results in
instead of
The weird thing is that it only happens if the functions are called from a bound key. Using M-x smart-hungry-delete-XXX-char works fine in both cases, deleting only the region.
It also appears to be two actions for undo: one undo will undo the character deletion, the second will undo the region deletion.
I don't know if it is related to #3 (regarding delete-selection-mode).
Cheers!
Hi,
When calling the smart commands from keybindings with a region selected,
smart-hungry-delete-forward-charwill also delete the char after point, andsmart-hungry-delete-backward-charalso deletes the char before point. If the char is whitespace, it will hungrily delete it.For example, with (
[]being point and|mark):pressing backspace results in
instead of
The weird thing is that it only happens if the functions are called from a bound key. Using
M-x smart-hungry-delete-XXX-charworks fine in both cases, deleting only the region.It also appears to be two actions for undo: one undo will undo the character deletion, the second will undo the region deletion.
I don't know if it is related to #3 (regarding delete-selection-mode).
Cheers!