From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: [External] : New key binding syntax Date: Tue, 09 Nov 2021 23:35:38 -0500 Message-ID: References: <20211004081724.6281.11798@vcs0.savannah.gnu.org> <838ryqftlh.fsf@gnu.org> <87zgr487cj.fsf@gnus.org> <875ytrzg13.fsf@posteo.net> <87bl3jjdfw.fsf@gnus.org> <87lf2mwl68.fsf@posteo.net> <874k99f8ev.fsf@gnus.org> <87sfwtrttu.fsf@posteo.net> <87mtn1cdbh.fsf@gnus.org> <87o87hrte4.fsf@posteo.net> <878rylccyi.fsf@gnus.org> <87fssssz57.fsf@posteo.net> <87v91oc49k.fsf@gnus.org> <877de2a746.fsf@gnus.org> <87lf2d5obc.fsf@gnus.org> <87ee82r8p0.fsf@gnus.org> <87v91dnsxg.fsf@gnus.org> Reply-To: rms@gnu.org Content-Type: text/plain; charset=Utf-8 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12071"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Nov 10 05:37:12 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 1mkfMF-0002xo-J4 for ged-emacs-devel@m.gmane-mx.org; Wed, 10 Nov 2021 05:37:11 +0100 Original-Received: from localhost ([::1]:35666 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mkfME-00079f-J8 for ged-emacs-devel@m.gmane-mx.org; Tue, 09 Nov 2021 23:37:10 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:38254) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mkfKl-0005ar-DN for emacs-devel@gnu.org; Tue, 09 Nov 2021 23:35:39 -0500 Original-Received: from [2001:470:142:3::e] (port=43770 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mkfKk-0003yl-UN; Tue, 09 Nov 2021 23:35:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From: mime-version; bh=+aW2uncGq/dwWd8WRgQ+NQaYGGFrG1y++EeBcvPZBHk=; b=Yf7S2r8Rc5MX faPRsdi8t+adpPqZS9t1LooxjpjAIlQ2RXCVXaL32nyAfKcWLgtEEVnTWbZqeK935OQQXGjFvzhA9 R5zBmke3zJB/V/rCiqGN0i35NSdipXIwVmgaHlqSXRtn8QD2k+540g2IsPBG4km1/78B5Xe0obrEJ ziiNE3wusoV0KS2PljFkwuutS5VOS4LEQlxcXymGSh6P5e/r+3WRRChW3SceVViQMg1TmCkWlNqdk lCs9rwFA1I7r2PdgUDkHmtFmBt6G6cvk5eL7ZFcZk1NXg5ddJrVSuQRjJ5UsGhkILCqrFLeOoMcBU j5uZFOLJ94EpF91gMD6uzw==; Original-Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1mkfKk-0006cm-Ne; Tue, 09 Nov 2021 23:35:38 -0500 In-Reply-To: (message from Drew Adams on Mon, 8 Nov 2021 23:50:46 +0000) 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:279147 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] I agree with your points 1, 2, 4, 5 and 6. > 7. I'm in favor of letting `kbd' and Help descriptions > drop the use of angle brackets altogether. I agree that that would be good -- provided no ambiguity results. Does anyone see a concrete problem with this? > 3. Personally, I don't feel a need to allow the > argument to `kbd' to be used on its own (e.g., passed > to `define-key" or its replacement), in place of using > (kbd ARG) - let alone feel a need to prescribe that. To allow the new syntax in arguments to old functions such as `define-key' would be desirable if it doesn't cause problems. But I think it would lead to incompatibilities or conflicts, where an argument has one meaning as a key sequence (old style) and another as an argument to `kbd', so I think we can't do it. I suggest defining new functions to replace `define-key' and friends, that will take a new-style key sequence as argument and will NOT accept an old-style key sequence. > \"S o m\" is _not_ a key sequence. It's not a > "sequence of the keys 'S', 'o' and 'm'". I can't make head or tail of that. Why the backslashes before those doublequotes? With the default Emacs key bindings, S o m is not a valid key sequence, because S is not a prefix key. But it COULD be a valid key sequence if you defined S as a prefix key, then defined S o as a prefix key. -- Dr Richard Stallman (https://stallman.org) Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)