;; - lots of commands handle the region without paying attention to its
;; rectangular shape.
-(add-hook 'deactivate-mark-hook
- (lambda () (rectangle-mark-mode -1)))
-
(add-function :around redisplay-highlight-region-function
#'rectangle--highlight-for-redisplay)
(add-function :around redisplay-unhighlight-region-function
Activates the region if needed. Only lasts until the region is deactivated."
nil nil nil
(when rectangle-mark-mode
+ (add-hook 'deactivate-mark-hook
+ (lambda () (rectangle-mark-mode -1)))
(unless (region-active-p)
(push-mark)
(activate-mark))))