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: The new keymap functions Date: Tue, 16 Nov 2021 23:16:09 -0500 Message-ID: References: <87zgq8sfw3.fsf@gnus.org> <86k0h8ts66.fsf@mail.linkov.net> 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="20317"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Nov 17 05:17:49 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 1mnCOK-000573-ID for ged-emacs-devel@m.gmane-mx.org; Wed, 17 Nov 2021 05:17:48 +0100 Original-Received: from localhost ([::1]:41368 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mnCOJ-0006ay-CZ for ged-emacs-devel@m.gmane-mx.org; Tue, 16 Nov 2021 23:17:47 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:57860) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mnCMn-00054m-Jl for emacs-devel@gnu.org; Tue, 16 Nov 2021 23:16:13 -0500 Original-Received: from [2001:470:142:3::e] (port=47126 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 1mnCMm-0001xV-UA; Tue, 16 Nov 2021 23:16:12 -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=X2xBGFW4IJ1veyBXf/CDZrsb+8fzOh6ZhmNOOBXelR4=; b=MhbgcY4Onnzn lbAJqB0gTnvvgK/3QYHOJAEJQOowWedUGh7CoutoLCwopc/ocDBEUp2oJQ914wyeeZ/I12C6pltje U5vobxfeudg7DLCDnNFz8h6uCdSjWDQrpxsvAlVdwLWl1wRhXL/PQ49zcUPPafu2vEw+iwc2myHLr hSUB8E7YwbUIxxiGXdeUkMKGvTbTpFpOC93/eR2eL3aPMKOW5M5qiQZJ9CUPQFc16vGtz9uDyWd4Z 7DCL5R75OD8J4d19fPPxxJ6wWfp3T6u7SENBrg5tBB8GGkYVWmpbgC8TVOFV8CPkIGQZfjcZNDPFb Gqu7Q62yVKtLlLb5d4OMdA==; Original-Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1mnCMj-0005z6-8a; Tue, 16 Nov 2021 23:16:12 -0500 In-Reply-To: <86k0h8ts66.fsf@mail.linkov.net> (message from Juri Linkov on Tue, 16 Nov 2021 22:14:41 +0200) 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:279597 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. ]]] > (define-keymap "C-c C-c" #'quit-buffer) > (keymap-set map "C-c C-c" #'quit-buffer) > What about renaming it to `keymap-define'? Then: Definition constructs should have names that start with `def'. It's a general convention, and following it provides regularity. -- 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)