From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#47688: 28.0.50; repeat-mode: Make rectangle commands repeatable. Also some misc. queries, comments Date: Wed, 14 Apr 2021 21:12:54 +0300 Organization: LINKOV.NET Message-ID: <87fszsn3u1.fsf@mail.linkov.net> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18533"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: 47688-done@debbugs.gnu.org To: Ramesh Nedunchezian Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 14 20:22:00 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lWk9I-0004gl-Ba for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 14 Apr 2021 20:22:00 +0200 Original-Received: from localhost ([::1]:47996 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lWk9H-0002ij-Dl for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 14 Apr 2021 14:21:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37466) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lWk3W-0000aM-Mr for bug-gnu-emacs@gnu.org; Wed, 14 Apr 2021 14:16:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52358) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lWk3W-0001Wb-Cl for bug-gnu-emacs@gnu.org; Wed, 14 Apr 2021 14:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lWk3W-00054Q-9f for bug-gnu-emacs@gnu.org; Wed, 14 Apr 2021 14:16:02 -0400 Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Wed, 14 Apr 2021 18:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 47688 X-GNU-PR-Package: emacs Mail-Followup-To: 47688@debbugs.gnu.org, juri@linkov.net, rameshnedunchezian@outlook.com Original-Received: via spool by 47688-done@debbugs.gnu.org id=D47688.161842410719411 (code D ref 47688); Wed, 14 Apr 2021 18:16:02 +0000 Original-Received: (at 47688-done) by debbugs.gnu.org; 14 Apr 2021 18:15:07 +0000 Original-Received: from localhost ([127.0.0.1]:35670 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWk2d-000531-KW for submit@debbugs.gnu.org; Wed, 14 Apr 2021 14:15:07 -0400 Original-Received: from relay4-d.mail.gandi.net ([217.70.183.196]:57387) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWk2Y-00051y-6c for 47688-done@debbugs.gnu.org; Wed, 14 Apr 2021 14:15:02 -0400 X-Originating-IP: 91.129.96.157 Original-Received: from mail.gandi.net (m91-129-96-157.cust.tele2.ee [91.129.96.157]) (Authenticated sender: juri@linkov.net) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id B7939E0007; Wed, 14 Apr 2021 18:14:54 +0000 (UTC) In-Reply-To: (Ramesh Nedunchezian's message of "Sat, 10 Apr 2021 13:53:06 +0530") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:204024 Archived-At: > Could you please add rectangle commands to the repeatable set? This > is what I have in my .emacs. > ... > (rectangle-backward-char . "b") > (rectangle-backward-char . ,(kbd "C-b")) > (rectangle-exchange-point-and-mark . "x") > (rectangle-exchange-point-and-mark . ,(kbd "C-x C-x")) > (rectangle-forward-char . "f") > (rectangle-forward-char . ,(kbd "C-f")) > (rectangle-left-char . ,(kbd "")) > (rectangle-mark-mode . " ") > (rectangle-mark-mode . ,(kbd "C-x SPC")) > (rectangle-next-line . ,(kbd "")) > (rectangle-next-line . ,(kbd "C-n")) > (rectangle-number-lines . "N") > (rectangle-previous-line . ,(kbd "")) > (rectangle-previous-line . ,(kbd "C-p")) > (rectangle-right-char . ,(kbd "")) 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. If you want, you can request more short keys to be added to rectangle-mark-mode-map in a separate report. So it seems this request can be closed now.