You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After delete-selection-mode turned on, C-y will replace the active region with yanked text, but , y still behave like delete-selection-mode is not active, , y till just insert yanked text at cursor position.
The text was updated successfully, but these errors were encountered:
fbrosda
added a commit
to fbrosda/devil
that referenced
this issue
Nov 20, 2024
The problem here is that the pre-command-hook, which is used for delete-selection-mode, isn't fired at all if a command is executed via M-x or call-interactively as used by devil.
Calling the delete-selection-pre-hook explicitly just before invoking the command seems to work. I'm honestly not sure, why exactly this-command is already set to the right value at that point, but as long as I don't find any problems, I'm using it.
Happy to create a pull request if someone else confirms, that this is a safe thing to do. s.a. fbrosda@73e5fc1
After
delete-selection-mode
turned on,C-y
will replace the active region with yanked text, but, y
still behave likedelete-selection-mode
is not active,, y
till just insert yanked text at cursor position.The text was updated successfully, but these errors were encountered: