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: Representing key sequences Date: Wed, 13 Oct 2021 12:28:50 -0400 Message-ID: References: <20211004081724.6281.11798@vcs0.savannah.gnu.org> <20211004081727.4F24921048@vcs0.savannah.gnu.org> <871r4qcs8s.fsf@gnus.org> <87o87ubcnl.fsf@gnus.org> <87h7dm9en7.fsf@gnus.org> <87czoa9e7p.fsf@gnus.org> <878ryxakv9.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15135"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Lars Ingebrigtsen , Emacs developers To: Stefan Kangas Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Oct 13 18:31:21 2021 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 1mahA0-0003kD-MN for ged-emacs-devel@m.gmane-mx.org; Wed, 13 Oct 2021 18:31:20 +0200 Original-Received: from localhost ([::1]:41220 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mah9z-0007M6-L3 for ged-emacs-devel@m.gmane-mx.org; Wed, 13 Oct 2021 12:31:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45586) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mah8d-0006MS-2T for emacs-devel@gnu.org; Wed, 13 Oct 2021 12:29:55 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:56231) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mah8a-0004Vj-DV for emacs-devel@gnu.org; Wed, 13 Oct 2021 12:29:53 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id E584780658; Wed, 13 Oct 2021 12:29:50 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 854C280620; Wed, 13 Oct 2021 12:29:49 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1634142589; bh=k+BIxRO4ZHPTPBK4HYUNDYdjWxxtzUpxTSv5iKdUKyk=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=gZHpdofkj+ieS8WrRfwYN021gbhXsjZGXk+PL2HLOG/jP+cyTmMkWbuVWoVOxMxy/ 06z25oWjiB8RQ/P5Y6i49F9QAcx6SrfaxwRIoYB5mBOVo++EYujZwd+c7PS9J7Kxu8 Erk2IlW9cU8gGT0RDOk6pX67NP31Z2WsO9RnSJHYtok6UOjYw7g2lChWCt9SDTaI7p h9WR5BxR9wqFj+AhWGjq4BfWjhGHAUjQVxPkT8U4Gw9ADTSLTFBVXTSM7wZ+iC3Hbi JkKrHdwvFhGsUjG2WFSUF5s8Hso12mwHAyEqa3hcSuYWpQ6XX1SCNOT2JYozTQLjU7 ahisGFeDdXySQ== Original-Received: from alfajor (lechon.iro.umontreal.ca [132.204.27.242]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 77B4412022E; Wed, 13 Oct 2021 12:29:49 -0400 (EDT) In-Reply-To: (Stefan Kangas's message of "Wed, 13 Oct 2021 15:17:51 +0200") 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.23 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:276924 Archived-At: > I agree with regards to A and C, but I was not aware of the difference > between B and D. Could you show an example of the difference between > B and D, and explain how the latter is more preferable? (B) is for example [?\C-\M-x C-home] (D) would be [(control meta x) (control home)] Notice how you don't need to know that one is a char whereas the other is a "non-char key". > Also, in which situations can we currently use B but not D? (B) and derivatives is used internally everywhere (e.g. `read-key-sequence`), whereas (D) is only supported for `define-key` and friends. Stefan