Timeline for I want when "C-w" is pressed, execute delete-backward-char when no region is selected and kill-region when the region is selected
Current License: CC BY-SA 4.0
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 7, 2021 at 22:06 | comment | added | Drew | @NickD. Done. Thx. | |
| Sep 7, 2021 at 22:06 | history | edited | Drew | CC BY-SA 4.0 | added 210 characters in body |
| Sep 7, 2021 at 19:52 | vote | accept | deepanshu | ||
| Sep 7, 2021 at 19:52 | comment | added | deepanshu | Thanks for taking time to read such a big question (for me at least), Your code worked perfectly but the only addition I did was to assign your 'my-backward-delete-word function to 'M-w' to delete word backward. I believe I will be able to understand your code one day. | |
| Sep 7, 2021 at 19:21 | comment | added | Phil Hudson | Good point, @NickD. So: killing removes text and places it on the kill-ring, ready to yank. This is roughly the same as what most apps call cutting and pasting. Deleting just removes text; the only way to get it back is to undo. | |
| Sep 7, 2021 at 17:37 | comment | added | NickD | Maybe explain the difference between deleting and killing? | |
| Sep 7, 2021 at 16:52 | history | edited | Drew | CC BY-SA 4.0 | added 26 characters in body |
| Sep 7, 2021 at 16:46 | history | answered | Drew | CC BY-SA 4.0 |