From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#49265: [External] : bug#49265: 28.0.50; repeat mode feature request Date: Tue, 29 Jun 2021 15:25:42 +0000 Message-ID: References: <87czs53aei.fsf.ref@aol.com> <87czs53aei.fsf@aol.com> <87h7hh6o8t.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17290"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "49265@debbugs.gnu.org" <49265@debbugs.gnu.org> To: Juri Linkov , Ergus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 29 17:26:17 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 1lyFct-0004FI-Bk for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 29 Jun 2021 17:26:15 +0200 Original-Received: from localhost ([::1]:50550 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lyFcr-0001Td-Kb for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 29 Jun 2021 11:26:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40558) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lyFcg-0001TS-8o for bug-gnu-emacs@gnu.org; Tue, 29 Jun 2021 11:26:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43601) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lyFcg-0003p6-1L for bug-gnu-emacs@gnu.org; Tue, 29 Jun 2021 11:26:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lyFcf-0008US-RZ for bug-gnu-emacs@gnu.org; Tue, 29 Jun 2021 11:26:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 29 Jun 2021 15:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49265 X-GNU-PR-Package: emacs Original-Received: via spool by 49265-submit@debbugs.gnu.org id=B49265.162498036032629 (code B ref 49265); Tue, 29 Jun 2021 15:26:01 +0000 Original-Received: (at 49265) by debbugs.gnu.org; 29 Jun 2021 15:26:00 +0000 Original-Received: from localhost ([127.0.0.1]:55147 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lyFcd-0008UC-PF for submit@debbugs.gnu.org; Tue, 29 Jun 2021 11:26:00 -0400 Original-Received: from mx0a-00069f02.pphosted.com ([205.220.165.32]:19748) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lyFcb-0008U3-6T for 49265@debbugs.gnu.org; Tue, 29 Jun 2021 11:25:58 -0400 Original-Received: from pps.filterd (m0246617.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 15TFPpTQ023314; Tue, 29 Jun 2021 15:25:54 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2020-01-29; bh=H3ZF06NPV4+JJrrghiRQ1XN8n3J3hGoD16b95L2C6PI=; b=s+I4lCCTZUfv41IwMuM1mzP4XlCxWiuwd67dq3mL5dIqRE92NZt0h42DgbAjZcrULc3A A0DdoDKkqxAc3edzepGw20qQOSrw6mpyeikNK5HULh7/4uM7QlAJejPQqoFiRGRoblyL zrwv4Zds64FCutC5utBaFY8DAGlQQnu3vGvj9JNXRMHJpx5oV+zjy8WkxlCEnwm//iLO d5kh15W7GyOvApAuETVPravAupCvfVaN/J3Nax8iS286CKWyxO+9LGA8iEjkPJf0Qu00 kl4m7ifLyzatFl6OKEfQH5wBJbkx/UlbM/TUyuIdspZ5SzDW2b/XJXpaEZcN1kMebJ7B XQ== Original-Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by mx0b-00069f02.pphosted.com with ESMTP id 39f1hcm8hd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 29 Jun 2021 15:25:54 +0000 Original-Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 15TFPqGB161410; Tue, 29 Jun 2021 15:25:53 GMT Original-Received: from nam11-dm6-obe.outbound.protection.outlook.com (mail-dm6nam11lp2171.outbound.protection.outlook.com [104.47.57.171]) by aserp3020.oracle.com with ESMTP id 39dv25w0yq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 29 Jun 2021 15:25:53 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CkJhMMlK0yh7HHasgo+NPys7ufgjjvyMtAXeuoQBGNJkcqUg7RhVlU+X42CDowCbJY4GJCheyq3SDLWsb22k6MntjvHbTE6leb8OvORwX4+sEABc+thdLqvkkaWyLtkhXHs8zhlsHySydaGg+iB+OZ/93CMikgK1Ov1zIUNSpN7XgpH3nNDvvH9UY8RDf/ehNz1xe8oPO9oWnU4suhZ04U/kPzeoHjvF78fSNehkoRCHCPPWfUDxIvKVGYvAXvHQK7LwuPEU9Wu6YglYyt0Vw20j1ExZHvqgb35hflM+hpPiQ3Vb6REeWGlmqhx58xQpeL/8V2bcPapoSTR3+Qh9hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=H3ZF06NPV4+JJrrghiRQ1XN8n3J3hGoD16b95L2C6PI=; b=kIhasiBjmmjJVcgN1SEJx73jAlD5Xskhntvz9yIC2rDKEVLf59IB9x8SGpj/XDaW99VqXJ/iu2YynORxfoednqQ6jO6dGqXzuweksnoJ+Y2lFIwEwhd1v4l8es/73Yow2fg6HAufyBg0qZGJQXrrvRO4ONBjXoXdZl06gLQzQQ4uEHv2lKEvQnie8xGtyAxDdCdJ62svaQzJZ6FsLRuGomAccxC8eTj4z6m66DSM3mkwh2XcX9LU89eiUzQbV17BPoparAlWajrRA5GlXsaYq8cqthSQesy4vanBt3AP6eeojI13M7i0vx9W26yBan+lWf8/atKQ2Q+q+prkauxtNA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=H3ZF06NPV4+JJrrghiRQ1XN8n3J3hGoD16b95L2C6PI=; b=ac60Kps5CxcxiqfEBZ8Ih69Um4I4LEcdE7xZ8zMEfccUpFIpB5szZT5/64p+mzx2a2+IKyM0DccXnOx9hGt2ciq/HUkGWN1cfM2vQJIndyINrdso+LqbknUdsTNttC07AP3Km9pFSvK0yr8j2EdHFPYZF+K89NXNhZ7M9GVyi80= Original-Received: from SA2PR10MB4474.namprd10.prod.outlook.com (2603:10b6:806:11b::15) by SN6PR10MB2781.namprd10.prod.outlook.com (2603:10b6:805:d4::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4264.20; Tue, 29 Jun 2021 15:25:42 +0000 Original-Received: from SA2PR10MB4474.namprd10.prod.outlook.com ([fe80::1c0e:6d54:3781:bd5c]) by SA2PR10MB4474.namprd10.prod.outlook.com ([fe80::1c0e:6d54:3781:bd5c%7]) with mapi id 15.20.4264.026; Tue, 29 Jun 2021 15:25:42 +0000 Thread-Topic: [External] : bug#49265: 28.0.50; repeat mode feature request Thread-Index: AQHXbMWy03M8UuS7M0uLoWmYnaBl/6srFhog In-Reply-To: <87h7hh6o8t.fsf@mail.linkov.net> Accept-Language: en-US Content-Language: en-US authentication-results: linkov.net; dkim=none (message not signed) header.d=none;linkov.net; dmarc=none action=none header.from=oracle.com; x-originating-ip: [73.170.83.28] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 94dc328e-cba9-4eee-3bef-08d93b122867 x-ms-traffictypediagnostic: SN6PR10MB2781: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: g4edBmhxtf7hpcJzYhRM57HHOfsL3hSF9saZdZNMqr1WLjotAq2EtxjylBUBl7JUba0VXNa3+FUN3TJcMYehLGxWBwJtuvIoC+zzgDmLSZPgQTUPY+OtiTTSDRmB0v0gkkXmRAp0+mpXISIORVXUvX9fiOUTahKgadanz/5lR5L0qlfJnZhfcuAkSNz2yoK60PrqjEhldbah3CjMEljdKbcIEG2QgGk1AjN0pVhPNPL2Y+Nm4FteGNFisOBLcbzgrh3HfGUzU54vHvK8mI+E07R8DGQeCMjthS8hjO/f9Ss5kwufWbEtalM3pQGJd9/y95pXzmZrR9IuIDkiKH7gObDUyGrdJIJAW3eWqhdsBEQbmRFfzvkoYiG95gDEey0FcgJQYyiqZlpeJ4skG653tFNqVUSS9pOIRxFBrZ+Mq3QWaqun9mQStI5M5/+OwcmIzg+P0B6lALlzgH1Z/kElAtotMS8zTus56rfCuou39Csz5LqNZOSWVww7EqfYImvUDcfTMHUII71Z3RxDkXbV9QfBEPbPGYSCMNm1WtiSU3IHKJ9PTmZJIwJoHlN8b/+blEPJ6nvCOezU9ThEEDCCd1ozt/VDhHtOUh2nLXnEVIApavua9sdDZXfp3QAGk5fBN0fmVmUD5BwKhUrcnv38FA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SA2PR10MB4474.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(136003)(39860400002)(366004)(376002)(396003)(346002)(5660300002)(4326008)(8676002)(83380400001)(86362001)(44832011)(7696005)(38100700002)(71200400001)(316002)(186003)(33656002)(66946007)(55016002)(110136005)(26005)(478600001)(64756008)(66446008)(66556008)(8936002)(52536014)(76116006)(66476007)(6506007)(2906002)(9686003)(122000001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: 72hVQo/Jptz3sgoZhj9Fc8vgzSPryeDJRNGSoHDJBaWaEdQXd37HiRRTjw+SzPP3Hf6/RPp+88zVoPZ/Yx4B2U9QDAeph97DgLgFXQXGEXyL5qbFoAOzoCGI/6RM7MdBxPW4DGBO39bZUbTA6p5Zc7R5D/427OiOpLnXWE3gmM2qEPpV9lTcAycFE9W55nPsK1Hp45IMa/DtTAPRAqEHcyjVHAxr/BQW8qqOBdg73D4E1F8RXe6b2TxxiOi6FVXRXuNnXSNxJkPaOGjB4LPDv1gXYKUuGBL26yWZQ0EsyiSWYJuuGbh0ls6cCRptAmPPjL400rzS0gpVqryvgLBVlAuv+J0MG+t4+qFnBu31oL3C+KOjG/MHVD5LcyH0sJ7+tfUiw93deYSZ6XTujl86qlvqSUi3FqSfc49IdNddFml+0MPzPkx5Pp+4lb33Wg2rQ2y2zEyV0q7VmLi95Hu8NkpT2RFb04fwRXAxpOg5vNX/XNCQNA674RnqdmhaISiBgom4SZpw70t3dpSn7Dh9KIeXVOiGUNIC9/EDcEjH1cQD85tpN3pRTK3RlP10H2f2BsOb53tks1Bi9lRFQPdG7LydeWQp7xQEwxvuVQ82W8OzS2R9chme70+yMQYAd5WeWpgGp6Fi/6k9aNGk1IEshOcVcPlomYhRCuFadpwkHIHd7xgHoaVa5Gb6yzV2BKBEX3S1ToMaAJclcTNImnu3u4QAOae9TOvuWxBnjNlwMy+cVk4iIhDKfP6f+6 cbqByW9uIjWnrmI39HLJ6DkY7/FCXYGYOliM3DeVahHeC3csQEM/c79SLA+e2JjsMcpd7vWuloD7KxKIITm/DnR3hdnh44wwLV x-ms-exchange-transport-forked: True X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SA2PR10MB4474.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 94dc328e-cba9-4eee-3bef-08d93b122867 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Jun 2021 15:25:42.1456 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: YmTnokxhoFFg98QeaWGSZCUxSkzmZdk0G0YyNdqjHt0B8CDRuqH5G7xwJzDYByJ14XoqTPP8D/SI4N+WZJh+pw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR10MB2781 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=10030 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 spamscore=0 adultscore=0 malwarescore=0 mlxlogscore=999 suspectscore=0 phishscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104190000 definitions=main-2106290101 X-Proofpoint-ORIG-GUID: myq0548odXqq3PGwtYaPLWyQu8KItvq6 X-Proofpoint-GUID: myq0548odXqq3PGwtYaPLWyQu8KItvq6 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:209106 Archived-At: > > Is it possible to add a command to get information about the commands > > that have a repeat map? Basically something to know the commands with > > some associated repeat like list-repeat-commands or describe-repeat or > > so? >=20 > I thought that such a command could have the same prefix like 'repeat-hel= p', > but prefixes 'list-' and 'describe-' are also fine. Maybe it should be > similar to 'describe-bindings' or better 'describe-keymap'. I thought the question was whether Emacs automatically, or already in some way, provides some a way of determining (e.g. using Lisp code) whether a given command is repeatable (i.e., by just holding down a key that it's bound to). If that's the question then I think the answer is no. (Is that right?) ___ If the question is instead just whether there is some naming convention for such repeatable commands, or if it is just a suggestion to have such a convention, then I'll offer the naming pattern I use for such commands: I append `+' to the command name. For example, I use `end-of-line+' as the name of my repeatable version of `end-of-line'. If called interactively with no prefix arg: If the previous command was also `end-of-line+', then move to the end of the next line. Else, move to the end of the current line. Otherwise, move to the end of the Nth next line (Nth previous line if N<0). Command `end-of-line', by contrast, moves to the end of the (N-1)th next line. Similarly, repeatable command `doremi-bg+' changes a frame's background color incrementally. IMO, it makes much more sense to use a suffix for a "repeatable" indication than to use a prefix. And there's no need for a long (pre|suf)fix, such as `repeat-'. Emphasis should be on the actual command name, and not on the fact that it's repeatable. One char (or at most `-' followed by a single char) should suffice. ___ The other part of the request is to have a command that shows, describes, etc. only repeatable commands. With my naming that trivially amounts to typing a pattern that matches `+'. Even if your completion method doesn't let you limit matches to `+' only at the end of the name, you'll likely get only repeatable commands, as there aren't many existing commands with `+' in the name. And of course it's easy to define a command that matches only command names with `+' at the end. And such a command could do anything you like with the result (describe all matching commands, return nil or non-nil for a given command-name arg,...).