I've the delete-selection-mode enabled. In programming modes like Python and Lua, or in general modes like Fundamental or Text, when there's an active region, pressing ( rightly wraps the region with the parenthesis pair like ( region ). I understand that this behaviour is not special and the key ( is just bound to self-insert-command.
However, when I'm in CC mode the region is deleted and I see this (|), which is not the desired behaviour as there was an active region; this seems appropriate when there's no active region. Upon investigation I understand that disabling delete-selection-mode fixes the situation.
In CC mode, giving M-( does the job, however, I don't want to special case in my brain saying, for CC mode do M-( and for every other mode do (. I want a simple solution where I can just do ( and instead of deleting the selection, the active region should get wrapped.
emacs -Qand report whether behavior still exists.delete-selection-modeseems to be the issue. However, on other programming modes the issue isn't present even when it's enabled.cc-modeis the faulty one; whendelete-selection-modeis enabled, it just deletes the selection instead of wrapping it.