From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: keymap.el and its checks Date: Sun, 02 Oct 2022 20:48:16 -0400 Message-ID: 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="15276"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: "T.V Raman" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Oct 03 02:49:17 2022 Return-path: Envelope-to: ged-emacs-devel@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 1of9e1-0003rF-HF for ged-emacs-devel@m.gmane-mx.org; Mon, 03 Oct 2022 02:49:17 +0200 Original-Received: from localhost ([::1]:46586 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1of9dz-0008JC-Vf for ged-emacs-devel@m.gmane-mx.org; Sun, 02 Oct 2022 20:49:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:32778) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1of9d8-0007bo-Ip for emacs-devel@gnu.org; Sun, 02 Oct 2022 20:48:22 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:34639) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1of9d6-0005b3-2A for emacs-devel@gnu.org; Sun, 02 Oct 2022 20:48:21 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 23E0844312F; Sun, 2 Oct 2022 20:48:19 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id E04D84407AF; Sun, 2 Oct 2022 20:48:17 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1664758097; bh=KpN1UdgIZONS7BShPnrYCFydWJkdlZU6WvnajzJSAhg=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=Humx0PD5wMTCBrNoWtJbsUhPNtIzXgrwkYmka/S4vn9WNa9rY7CNDHZalYu8Hc2Wv 2KQ0+82NaqS+fFCQvmUvf7iTnUGZH1E/Yxa+kK1HI8T1R9L3wnfA24ipN8RVOuG5Pi je2fEQAsx6fZol05g4Ql5OyYaPeQvgQzpLVmPY5Vu3S7ylj2fZLiK2gcwuOyQu6Y2K N3CSZ5UA7WDxg5DKlf91DmllUXZAQpA2Scq/qP3UkzRsywOu5L+Ttdy+qGmFxPh2+w ZYLiy/INHRJIPsnRoDETHp3Pg4fMxaPwoUuuvMiOB2hpDeZmT9Pi9Buy6Zci4T/S5n 7+J17QS6MEJug== Original-Received: from alfajor (65-110-220-202.cpe.pppoe.ca [65.110.220.202]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id B1A0A120E8B; Sun, 2 Oct 2022 20:48:17 -0400 (EDT) In-Reply-To: (T. V. Raman's message of "Sun, 02 Oct 2022 17:39:00 -0700") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:296721 Archived-At: > I saw this change from Stefan: > 570a11052b * keymap.el: Ease up support for non-`kbd` formats. > > and thought this would let me write > (push repeat-exit-key unread-command-events) No relation. As for your problem: `unread-command-events` is defined tpo hold a list of events. `repeat-exit-key` is supposed to contain a key-sequence (more or less an array of keys). Keys and events are somewhat similar so you can use keys as events. But a key *sequence* is definitely not an events. You can use `listify-key-sequence`to turn the key sequence into a list of keys, and then use `append`. Stefan