bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#47688: closed (Re: bug#47688: 28.0.50; repeat-mode: Make rectangle c


From: Ramesh Nedunchezian
Subject: bug#47688: closed (Re: bug#47688: 28.0.50; repeat-mode: Make rectangle commands repeatable. Also some misc. queries, comments)
Date: Tue, 4 May 2021 09:49:21 +0530
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0


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.







reply via email to

[Prev in Thread] Current Thread [Next in Thread]