From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: use correct vector/list syntax for keybindings? Date: Tue, 05 Nov 2019 14:25:18 +0100 Message-ID: <8736f2h2v5.fsf@igel.home> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="238008"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 05 14:25:47 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iRyqA-000zoL-V4 for ged-emacs-devel@m.gmane.org; Tue, 05 Nov 2019 14:25:47 +0100 Original-Received: from localhost ([::1]:44188 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iRyq9-0000CX-JR for ged-emacs-devel@m.gmane.org; Tue, 05 Nov 2019 08:25:45 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38940) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iRypo-0000CO-SD for emacs-devel@gnu.org; Tue, 05 Nov 2019 08:25:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iRypn-0000Hp-He for emacs-devel@gnu.org; Tue, 05 Nov 2019 08:25:24 -0500 Original-Received: from mail-out.m-online.net ([212.18.0.10]:45076) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iRypn-0000GZ-Ba for emacs-devel@gnu.org; Tue, 05 Nov 2019 08:25:23 -0500 Original-Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 476r4w4tq4z1rfM0 for ; Tue, 5 Nov 2019 14:25:20 +0100 (CET) Original-Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 476r4w4WLNz1qqkj for ; Tue, 5 Nov 2019 14:25:20 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id aclumYU4knBQ for ; Tue, 5 Nov 2019 14:25:20 +0100 (CET) X-Auth-Info: 86AUoNlgkFzc2oMWIqQGHDQuXh5wMSEIBHLm5tx7PUtM5JtRCgXbuN1EU3KtCcwm Original-Received: from igel.home (ppp-46-244-168-100.dynamic.mnet-online.de [46.244.168.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA for ; Tue, 5 Nov 2019 14:25:19 +0100 (CET) Original-Received: by igel.home (Postfix, from userid 1000) id F1E8F2C0212; Tue, 5 Nov 2019 14:25:18 +0100 (CET) X-Yow: I'm RELIGIOUS!! I love a man with a HAIRPIECE!! Equip me with MISSILES!! In-Reply-To: (Robert Pluim's message of "Tue, 05 Nov 2019 13:31:46 +0100") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.18.0.10 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:241802 Archived-At: On Nov 05 2019, Robert Pluim wrote: > In "(emacs) Init Rebinding", it says > > If a vector element is a character, write it > as a Lisp character constant: =E2=80=98?=E2=80=99 followed by the c= haracter as it would > appear in a string. > > There are a fair few bindings in the emacs source that forget the '?' > and do eg > > [(control c)] > > Is it worth going through and changing those? This is not the syntax the text above is talking about. It is a vector of Lucid-style event type lists, where the characters can be written as symbols (see event-convert-list). It is supported for XEmacs compatibility. Andreas. --=20 Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint =3D 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC= 1 "And now for something completely different."