In my post-command-hook callback, when I do kill-word, the this-command var is kill-region - and not kill-word as expected.
I guess that's because kill-word uses kill-region, but knowing exactly which command was used is essential to my script. Any way to get at that information somehow?
Thanks
Turns out all the kill-commands change this-command to kill-region so they can interoperate on appending things to the kill ring. To get to the actual command, emacs has this-original-command - which is not modified.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With