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#54161: 27.2; `define-minor-mode' with alist of key bindings Date: Fri, 25 Feb 2022 22:43:33 +0000 Message-ID: References: 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="25595"; mail-complaints-to="usenet@ciao.gmane.io" To: "54161@debbugs.gnu.org" <54161@debbugs.gnu.org> Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 26 00:37:24 2022 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 1nNk9J-0006UW-Vt for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 26 Feb 2022 00:37:22 +0100 Original-Received: from localhost ([::1]:49290 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nNk9I-0004Kh-V6 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 25 Feb 2022 18:37:20 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51274) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nNjJi-0005Ae-Of for bug-gnu-emacs@gnu.org; Fri, 25 Feb 2022 17:44:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59989) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nNjJi-0000vz-EW for bug-gnu-emacs@gnu.org; Fri, 25 Feb 2022 17:44:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nNjJi-000422-AV for bug-gnu-emacs@gnu.org; Fri, 25 Feb 2022 17:44:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 25 Feb 2022 22:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54161 X-GNU-PR-Package: emacs Original-Received: via spool by 54161-submit@debbugs.gnu.org id=B54161.164582902015455 (code B ref 54161); Fri, 25 Feb 2022 22:44:02 +0000 Original-Received: (at 54161) by debbugs.gnu.org; 25 Feb 2022 22:43:40 +0000 Original-Received: from localhost ([127.0.0.1]:53886 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nNjJM-00041C-7o for submit@debbugs.gnu.org; Fri, 25 Feb 2022 17:43:40 -0500 Original-Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]:25536) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nNjJJ-00040z-7K for 54161@debbugs.gnu.org; Fri, 25 Feb 2022 17:43:38 -0500 Original-Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 21PIiY9F010540 for <54161@debbugs.gnu.org>; Fri, 25 Feb 2022 22:43:36 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=gwSFnDBt6Zha+0ECQOAJs6ulopnQsVyIsNW2mnVS7Zw=; b=ygByISLsHU+TmWUSxFvBwzr5Zgl6ban79/sx1syiIV253zzcxD8xxsQeHcd3Y+sd+nRV RHXxJTmvyzmQL45axe3jqc1O7gqmj/KaGPipTafWPNMLzWX+aivL4//B3/PReXwtuXay 4yZ1cCG8EPq2X8RicmwTUXJmpdASiwnpcTLwk0rqitITXrZzr923WEEOtKGoYVB2zV+o 7YfNdGJcJupzij0kvt4kCIv1otoFdxHpZ/IyGdwZrE1MYJpNy4VpOCdh9wOdJtoV5QdT coVNyvqu8oYa/H+PS6e4DJehNMPpMQePWKxocikV9SXWp12SAM5Hy8OBiN5s3pGMuwI9 hw== Original-Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by mx0b-00069f02.pphosted.com with ESMTP id 3eey5dj2av-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for <54161@debbugs.gnu.org>; Fri, 25 Feb 2022 22:43:36 +0000 Original-Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.1.2/8.16.1.2) with SMTP id 21PMf46X099233 for <54161@debbugs.gnu.org>; Fri, 25 Feb 2022 22:43:35 GMT Original-Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2177.outbound.protection.outlook.com [104.47.58.177]) by aserp3030.oracle.com with ESMTP id 3eapkncn84-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for <54161@debbugs.gnu.org>; Fri, 25 Feb 2022 22:43:35 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Mx1dy3eiz/pa/NUwnbfmb3JWGHYcJLqnTVuTVZsTkouaqzJYc/sptMLuPEAE+SAQmQNCv8eVtFpvLj/vVedGnDHfvubsiyfaywVoBj9ypX7JAHSethL6tuPBdCUlPft5xBXKlIT9DLLcrrQD17Gq2/FrU4XH71ixP6pbOSgNDLTpmYX5jtVHt8gN/YuWrafgrFE7QoXPs7GxiiJjEr0yu7uhVBMHCiJpJC5HlOp80kinZwHEtvllpv5DboqgKaQwWnOl8Ch2lqnjl6wPohG9nqkfLB0YMOh5X7fqwxjN2bcNLB+Z2JedrYyQBumHQDb1U4Tqxm3X1THTAoQssU8xqA== 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=gwSFnDBt6Zha+0ECQOAJs6ulopnQsVyIsNW2mnVS7Zw=; b=MZm+1OP4HeNuw1qB63CVGveg1VTWUcbWYNWH/PxBgOaozBUzr5C1qeoQILTZC9O9V3VjoeZrcQMoDEoqyfFcE1RzSCU5wldxYLs8xQO4QySovrRFJxUeqf2JiE8RSLl0muBlSMr1jyaEN/L2LCOxot0/CbOrDI8i6nmbREPZhhZfZN0Gm1eZ0t/Zmfcvb7L6kGw/7D9Rh4FY5V1YfeO4N9tCtBmNhdoQ6J+6t/HEIbOm4g+r2tNQwr2r8VsBcC1prp+P0kgQ8XOqfIwneUYCkBY/J972nxQTe+WsgGKpnh2O4FI4WrU52ozsEU6r7UIq+yJV3Cm3PEUtN2yXyxY94g== 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=gwSFnDBt6Zha+0ECQOAJs6ulopnQsVyIsNW2mnVS7Zw=; b=Cz5dqMalDhZM/qLHUiDmOpYkEUSO7lG9iCyQxM3qVolWdZaKdYUyyIGEHdHK7Ogk2AbL9xYdMWKD5PmRyXOt//buxMkZk2RsgM3jc8z58yZv2/t7SlUq7sH5O55W+PRZ+CVgp4QNJgieB5xAIENjGeo6Ef0lJaScVb9nOrX5heM= Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by PH0PR10MB5530.namprd10.prod.outlook.com (2603:10b6:510:10c::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5017.23; Fri, 25 Feb 2022 22:43:33 +0000 Original-Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::f811:66c9:41ab:df79]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::f811:66c9:41ab:df79%7]) with mapi id 15.20.5017.026; Fri, 25 Feb 2022 22:43:33 +0000 Thread-Topic: 27.2; `define-minor-mode' with alist of key bindings Thread-Index: Adgqb9uJCPzV6IRMSmOFwWRzYqvc1AAJwHxAAABnfPA= In-Reply-To: Accept-Language: en-US Content-Language: en-US x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 15b112ac-8b77-4441-4093-08d9f8b040ec x-ms-traffictypediagnostic: PH0PR10MB5530:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Ttscc9FP5E2B/zTJSdr8Uz/OuyJVHRmmsN8JkO85FVV1N2KQYPbJZSU41Arp2eXMcqV5RiWOaqtMy+JeYGHbeCarelIikdzfpS3gssq9gHax0kM4ThmaGVD+J85x9F2DVivApIg08WgtNX58ZY4kv23Ki9pSjKN399vKzvytkYu1+LYMG95o65rDC9VN8nmqD84adLlJUnOjLoXaxLADdaIondYckKkaXzOzBUnWVR9eeNc+gwbby7JtvkKdKztuvm9T7cZz3gL56bXgfvVro0nI5I4qCoR3lJdyuCfccOFS+h8QzQcINK+M/Zdp6VzilYVlg2kC9MmBaPRJxSPjVUTdgVE0uPlzj3TU4QWotXbDH/zuenJvq8fCVAtnjhN7NXMVCNGvYv6mPOZ33HXJsxY+d3E5txVJsG+KRs3DE2LIH4IG3VrRhs629lwhmimkXEho9Fn+UtthhE+r8PBbN2bvZ64h/D+ZSNy6wZkrooiJiuSi9OMrzNdSsVoM8bnV4T3ClgASa0GXdidL+UJWG81DgEmc82hCfgVw1PO1pdg9OwE7HPBbLNq0G6bF/64ptu8JlrBqvelC/hJC8Y5a/t4c8zxFgAkghJKr+3nfTLJkkQazZS34D8edCPZwUGNNvulbB1Tvm8I/ngoYlh/K9Riua7dW5RZTwgIPgfmQielfUWewL6pfS4QJX3dyCz2s9nJjcRyy4+Xnd11vek8v7QH8ulJeb/tTurw9hZt37mU= 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:(13230001)(366004)(64756008)(8676002)(76116006)(33656002)(122000001)(66556008)(86362001)(66946007)(66446008)(66476007)(38100700002)(6916009)(316002)(38070700005)(2940100002)(9686003)(508600001)(55016003)(7696005)(6506007)(71200400001)(2906002)(8936002)(4744005)(44832011)(5660300002)(52536014)(186003)(26005)(81973001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: FBGR0pqJWz5t9xJBpyVYflxIpMx6kb6YnhbJA4Pko5wFEUiawq0UZS+qGn3rIr0Wm6QIS/FZlgfGLJwO7NXXRYXfsa7/l9iqf2iKn5JkXXQIFtRjBv5ht71wU5ofebz7osGlWiTIc5VH/j2txzn2rXirpT9Vx7iInLman79WMvLZbMIpvbH4lh1VGsTJF4J3tgu34KblAqo0URfgdiFXxr9FhkLlAH+fy3Wd27oIJhfH+ZFczC3V/ZUs0FWJTQhsWsMaxybycxzhsDl8r7uIviwEtf77ajT0m8NOmdPeQ1R29+UbxlgHZfmb8vG9s1oNfSVr09qwMrlo24vzkDG/owpp9GRzmtNDGzaEWuSuznd4p/P9yvxhH0w6MvtnuyasixyBrmCnrMs9H3o1oW4BXMRoMHLA6kxlnGAHDtPXOdoTfBUn1IhScd5z6hq/o25UZrxungXdV/qMZr/Z2G/RpiCk+bUk84mwAyWX1k45C273W7S1OnK1ATVnYhJ+HNTWhJNG+pdgzorig85gaHdr3Ykecona0CJg3s2hnQX2sTKGuyAeIcG4+F4/5lKLbPyb/8EPucUZ0nhQXBrHLKHxBRW5JFNR01ugogBlYsz2h3wxMaqCdmZeeNeCt2W2LJAvhaOKbyY3RHMvJ4S09W8IFtieHXXWaWN9MkHZ5pmbL2BS+iOKG77DBJNlyFJRP/rLt9qf8ubjZWxGtEpJj7J5tGOuH/7mP/82KQrdpmytPszbGFwrw7HcfB3Dce 536i7ly98YBELTxomY3WbCCswXFnVfRdYUnZLAhSVcO02rK42TL9qgMNEvBpyw3YNkYNmroyphPZwS2CMA3nOR70RfEcyAVD98 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: 15b112ac-8b77-4441-4093-08d9f8b040ec X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Feb 2022 22:43:33.6012 (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: xZHsQTmHtmkwBaRHsfj0jsR8qxWM04szj3kX4DNyiNdvBYCx7Kwwv7bb9rVvT38FbAu6NshYDH/H4HZ463XJUw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR10MB5530 X-Proofpoint-Virus-Version: vendor=nai engine=6300 definitions=10269 signatures=684655 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 suspectscore=0 mlxscore=0 spamscore=0 mlxlogscore=879 adultscore=0 phishscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2201110000 definitions=main-2202250124 X-Proofpoint-GUID: EdKuaQvtQfBvhZgQ0ht5wpAD-hA2w025 X-Proofpoint-ORIG-GUID: EdKuaQvtQfBvhZgQ0ht5wpAD-hA2w025 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:227659 Archived-At: BTW, note that this is not a problem: (define-minor-mode tata-mode "TATA MODE" nil nil '(((kbd ">") . forward-char))) The key `>' gets defined, no problem. Even though `(kbd ">")' is actually a list, not a key sequence. But this is a problem (as expected, once it's understood that the `(kbd "C->")' doesn't get evaluated): (define-minor-mode tata-mode "TATA MODE" nil nil '(((kbd "C->") . forward-char))) Why isn't there the same problem with `(kbd ">")'? The behavior is a bit confusing. All the more reason for making sure the doc can't mislead.