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.help Subject: RE: [External] : Re: Bind two commands to one key to toggle between them for the same local keymap. Date: Fri, 22 Oct 2021 17:37:51 +0000 Message-ID: References: <87y26lporl.fsf@zoho.eu> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8352"; mail-complaints-to="usenet@ciao.gmane.io" To: Hongyi Zhao , Emanuel Berg , help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 22 19:51:59 2021 Return-path: Envelope-to: geh-help-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 1mdyhy-0001rH-C9 for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 22 Oct 2021 19:51:58 +0200 Original-Received: from localhost ([::1]:46224 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mdyhw-0000nG-5J for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 22 Oct 2021 13:51:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58406) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mdyUY-0000eB-Hg for help-gnu-emacs@gnu.org; Fri, 22 Oct 2021 13:38:07 -0400 Original-Received: from mx0a-00069f02.pphosted.com ([205.220.165.32]:48054) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mdyUV-0008K2-J4 for help-gnu-emacs@gnu.org; Fri, 22 Oct 2021 13:38:06 -0400 Original-Received: from pps.filterd (m0246629.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 19MGXsdl029493; Fri, 22 Oct 2021 17:38:00 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2021-07-09; bh=CSWekZhJq4xLUYp8w3U0pbkRvLPb3g7gd8YZKvb94no=; b=PtUd+5yAhrWZiYqeNPZlnaG7he+oLqHjXLp80LkWBXUmk7KLD4UVD4m2IB25ot0n1JCk wXfxAZg0dVMw3VKqQKyvOicLdzhPRP0Jug1ZUAcFr4QeQvBQlrczrUmOdDp7cHGfnI1x escHO0XdARVLH3Hlr57nEHTjJz903apUiFkmfRoylDoj8bN8CkkGXPPPeAiEItpmrBED gaJWHxoUZI8EW1S/5KZ3W+yTDhtrc9Tfm07ranAMhgoaZNkow4DJm/gFhSqvnCms95Bt WSYJkJr6m5GoFQ887JXnZR4nnIRDBkqFg494zlGGEWySw19YMUtgG+ep03lDpNcSHV5d hw== Original-Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by mx0b-00069f02.pphosted.com with ESMTP id 3bunvd3cf3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 22 Oct 2021 17:37:57 +0000 Original-Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.1.2/8.16.1.2) with SMTP id 19MHVJdX103347; Fri, 22 Oct 2021 17:37:54 GMT Original-Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2100.outbound.protection.outlook.com [104.47.55.100]) by aserp3020.oracle.com with ESMTP id 3bqpjaxpds-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 22 Oct 2021 17:37:54 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jLvcFnMOiyMp7g15MDpSInd1qcraSvk9ULdyzv1e6kYKIeoCkUYG+37WYAQvMCnI1BSyDwPAvbChSa+/tLMkyquPGD5KqDsE0ujh6DPefw+7ijBl3eDmTrpVG+RcSVQCb5UziCb+CDCi8W5nH1QG1lmF7zMZlGTl0BhRxs0P0ozR/GwRxliQSUpENEt3cXQIhIF+M0d69iAGnvfi0TAWtcHT8Fwf4HTdVily3JTMBJZDglibSM+AXqRvWxVUW7mbmyd2xvtQrwNzvFvvwHnTQk4YhA976u7BCTX4qTzwxuxPQ5l9qPFxqO+457HleC4jbm2DU2zjUlfkcPSoRRFxdw== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=CSWekZhJq4xLUYp8w3U0pbkRvLPb3g7gd8YZKvb94no=; b=jF6anEFa25jLajI+pJtyUCEzjSQ+G4A5w8/rpBmSxoYDKg6hLDYbRAiDZTBh1QOPEdPA8BQEgaxv/2en0i4l1Po+en6FsJC4GYlM0nrR2FUpuH+rhR1+bQl6m2XmtNGXIT5GMh1QM9603uHgOe2QZq+myGuMG5PgRzXcuex+M/ReGzUMijS1xeVEFwd4TgglHah2yOcfiUNyPSEV59C4VCUu2kts28t1l2qScSm0VuOrz1rqoo6g7wutv9va3/0bW+kqSl9WD8b4diglOLXbkL/4bXtCY47+723w59ayO7shQuTiGyy5Sn0+HDTzbxLr/iowjD1xnRAR6peLOYuc/w== 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=CSWekZhJq4xLUYp8w3U0pbkRvLPb3g7gd8YZKvb94no=; b=mZsnYRXYliFpsUBDe7991JUaHlB0p9fa23rjnVk+dIH/5iESA/HirB3m/uO6oM+z3dQgmIGNWMfiikTvmC4+vVSZrhcsF3j7vAcBnqIFJwevoVh+SVOLagSsgfAY99z46kB9QsHfqbJT8NDO5yqWO7Xx1jDuCU4tAUUVFTue0VM= Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by BYAPR10MB4088.namprd10.prod.outlook.com (2603:10b6:a03:11b::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.16; Fri, 22 Oct 2021 17:37:52 +0000 Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::c0bc:7c3a:292f:8a82]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::c0bc:7c3a:292f:8a82%9]) with mapi id 15.20.4608.018; Fri, 22 Oct 2021 17:37:51 +0000 Thread-Topic: [External] : Re: Bind two commands to one key to toggle between them for the same local keymap. Thread-Index: AQHXxxdCTPJFDEjmBUug/pS2Xc9P6qvfSG3w In-Reply-To: Accept-Language: en-US Content-Language: en-US authentication-results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=oracle.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: f05d6ecc-77e4-43e9-3ffd-08d99582ac5e x-ms-traffictypediagnostic: BYAPR10MB4088: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3826; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: SxNtQjPj3h76e1FQ3ND/qgTo/mxMaT5r30mdxbJWaF6GU0WBRgEIsGA5Zyw7OURLZ9UJK7hP+u9dbcDk05f76JGO0kALpelBdp4NSppKXo04G+T5sSVkl7RTTRBGN27BbFggnyPs1GHx5jPRPxyigRq/+hnMj4gfTX4R74YdyxCJPUheK68oflcd+q/zGsdrtHlWoybi5CFKC4GF0DayMPD8X8Ta2LJf3yeUeFmFJtJGZBAjUILmCCZo8syDBjoaLQRsrIkrOY4XghoGClrOtCS9woywdRLkXnTODBZ+lbbOw6LoXnKHf8qqk/A0W7/mwUJg/LL0ZjIpOMgKlKI/BLnnvZmMmxsyXuXvx2c7QUeTTmGY3NeESiGiAJ0YR0abnpo5ix2yJ/gNoXTEKi1hkM2kxSgx+rMZwRHEdLwovrpU0iKsHwyXxlEBWCVwvSCqUtPBiB91xFQwRUJ5IV+pTjoOGfQ/v7vrsExRjv4PtWtmDXcRlaipY59jLJAM8TmLjPtVhaNpmqKN8j0nwljaQYY/P3p+jSYEoqHeIZQyHinFpjvnr8mzQiil4ovQQ4FwJgar/fU9fud5pMViyJbekAirMMOmNBWn4a62Ym/PAuxntNPRcMvmREknoyT/MS94K5IT5fu7l8Xq6JpYJa3pIx0Meo8OjkJzUcIkfOOCyIFfKkV4OORWjpihK1kvYFWm5+hUQxI8G1tJL26FXimtWQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR10MB5488.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(33656002)(122000001)(86362001)(26005)(2906002)(55016002)(9686003)(186003)(5660300002)(316002)(8936002)(66556008)(8676002)(7696005)(6506007)(38100700002)(76116006)(66476007)(64756008)(38070700005)(66446008)(508600001)(52536014)(66946007)(110136005)(44832011)(4744005)(83380400001)(71200400001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?YTA5MWljbFFKdXozQXJjMk1vT1NJUGplZGdxL21yM2JLYkpJQjkyNkZMR0U3?= =?utf-8?B?TE13NjAzanBnL2lQTXpTZGNTTXdPS1JvaTdIYnR3d0NzaWxJaU45eVdVWkto?= =?utf-8?B?UUhmeCtPQ2RZbU1DTERrbCtXM25FR3liSzN2NGt0Tkd2bzhKZTZLOWdhVkNr?= =?utf-8?B?dnFMa01QZkxkZE51YjFyRmcwd2dDc2xrUXl4QUZvSDQ1WDFrTloxSGUxU29m?= =?utf-8?B?MmZCVnJGWVZrcnpTeTNhLzc5YVJieEYybWF5em91eGFheDQzRXNKVjVlODc2?= =?utf-8?B?WnJvWmtuZ2ZyRjcvSzQyNmhuZEZqcVhrSThTWVZzS3VielN2K3B4d0c2Q3Fn?= =?utf-8?B?cGFlQWdDbW5EbXVWYWIvbUZCMmprWXdBWHVDVUFkc2kzMzljMGxobGFPVFl3?= =?utf-8?B?V3hBa1k3anJ6My9QR3k2WEk0RXBjU2JkcVdRZnE4THh6WGxxTElBWm9OczlI?= =?utf-8?B?Q1g0VDlqTDJnem9xSHJaOVAyUVd3cE0xVFd1UG1hQkd2S1hBRldIQzNIYjJU?= =?utf-8?B?c3owYVRqN0YzVWs5aS9ldXhubUlGeEFoMVN0YXc3R2VuTGs0STNZMndSalda?= =?utf-8?B?S25sdzR6N0lBUTA5OWRFUzJHK2VKMGVNRDBxb1AwR2VJRC8rNmVYZXY1ZENr?= =?utf-8?B?dlEzcEdHQ09tT2JXUzVTTlQzMTU0cXRmLzJicT X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB5488.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: f05d6ecc-77e4-43e9-3ffd-08d99582ac5e X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Oct 2021 17:37:51.9103 (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: drew.adams@oracle.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR10MB4088 X-Proofpoint-Virus-Version: vendor=nai engine=6300 definitions=10145 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 spamscore=0 adultscore=0 malwarescore=0 phishscore=0 bulkscore=0 mlxlogscore=775 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2109230001 definitions=main-2110220101 X-Proofpoint-ORIG-GUID: XI2wfnoEz8qY7s1FXVeL-Moq3CysugOm X-Proofpoint-GUID: XI2wfnoEz8qY7s1FXVeL-Moq3CysugOm Received-SPF: pass client-ip=205.220.165.32; envelope-from=drew.adams@oracle.com; helo=mx0a-00069f02.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:134018 Archived-At: PiBJIHRyaWVkIHdpdGggdGhlIGZvbGxvd2luZyB1c2UtcGFja2FnZSBiaW5kaW5nIGNvbmZpZ3Vy YXRpb24sIGJ1dA0KPiBpdCBkb2Vzbid0IHdvcms6DQo+IA0KPiAgICAgKCI8dGFiPiIgLiAobGFt ZGEgKCkgKGlmIChjb21wYW55LXNlYXJjaC1tb2RlKSAjJ2NvbXBhbnktc2VhcmNoLQ0KPiBhYm9y dA0KPiAgICAgICAgICAgICAgICAgICAgICMnY29tcGFueS1zZWFyY2gtY2FuZGlkYXRlcykpKQ0K DQpUbyBzdGFydCB3aXRoIChJIHNlZSB5b3UgY29ycmVjdGVkIHRoZXNlIHRoaW5ncw0KbGF0ZXIs IGJ1dCBqdXN0IGluIGNhc2UgdGhlIHJlbWluZGVyIGhlbHBzIHNvbWVvbmUpOg0KDQoxLiBsYW1i ZGEgdnMgbGFtZGENCg0KMi4gWW91ciBhbm9ueW1vdXMgZnVuY3Rpb24gaXNuJ3QgYSBjb21tYW5k Lg0KICAgSXQgbmVlZHMgYGludGVyYWN0aXZlJy4NCg==