Subject: bug#47688: closed (Re: bug#47688: 28.0.50; repeat-mode: Make rectangle commands repeatable. Also some misc. queries, comments)

From: Ramesh Nedunchezian <[email-masked]>
Date: Tue, 4 May 2021 09:49:21 +0530

On 14/04/21 11:46 pm, GNU bug Tracking System wrote:
> Thanks for the suggestions.  'C-x SPC' activates 'rectangle-mark-mode'
> that already supports short key sequences similar to 'repeat-mode':
> 
>   (defvar rectangle-mark-mode-map
>     (let ((map (make-sparse-keymap)))
>       (define-key map [?\C-o] 'open-rectangle)
>       (define-key map [?\C-t] 'string-rectangle)
>       (define-key map [remap exchange-point-and-mark]
>         'rectangle-exchange-point-and-mark)
>       (dolist (cmd '(right-char left-char forward-char backward-char
>                      next-line previous-line))
>         (define-key map (vector 'remap cmd)
>           (intern (format "rectangle-%s" cmd))))
> 
> There are already single keys to edit the rectangle.

C-o, C-t are not single keys. There is a difference between: (a) There
exists single keys (b) All keys are single keys.

I will not chase down this request further.  I can achieve what I want
in my `.emacs'.  Thanks for addressing the C-x C-x part which I
wouldn't have been able to take care of in my .emacs.