smart-region icon indicating copy to clipboard operation
smart-region copied to clipboard

When expanding region you can unexpectedly end up with rectangle selection

Open glucas opened this issue 9 years ago • 1 comments

For example, in the middle of the word 'interactive' below and start hitting C-SPC repeatedly. Selection expands to the defun, then switches to rectangle selection.

(defun smart-region-off ()
  "Reset C-SPC to original command."
  (interactive)
  (define-key global-map [remap set-mark-command] nil))

You can always hit C-SPC twice to start expand-region and then switch to SPC, but it might make sense to handle this case and continue calling expand-region once you start.

glucas avatar Dec 09 '16 21:12 glucas

If we fix #3 then this problem won't really come up anymore. The typical expand-region pattern would then be C-SPC SPC (SPC)*.

glucas avatar Dec 12 '16 15:12 glucas