From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Phil Hudson Newsgroups: gmane.emacs.bugs Subject: bug#55301: 27.2; RFE: Auto-create defcustom for declared minor mode keymap Date: Sun, 8 May 2022 14:47:57 +0100 Message-ID: References: <8735hlnypl.fsf@gnus.org> <87pmkojlg7.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25610"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 55301@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 08 15:49:18 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1nnhHi-0006SK-UK for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 08 May 2022 15:49:18 +0200 Original-Received: from localhost ([::1]:33610 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nnhHh-0000vK-Sp for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 08 May 2022 09:49:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60952) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nnhHS-0000sx-Cj for bug-gnu-emacs@gnu.org; Sun, 08 May 2022 09:49:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59858) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nnhHS-0005ZK-4m for bug-gnu-emacs@gnu.org; Sun, 08 May 2022 09:49:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nnhHS-0002M0-2v for bug-gnu-emacs@gnu.org; Sun, 08 May 2022 09:49:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Phil Hudson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 08 May 2022 13:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55301 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 55301-submit@debbugs.gnu.org id=B55301.16520176968984 (code B ref 55301); Sun, 08 May 2022 13:49:02 +0000 Original-Received: (at 55301) by debbugs.gnu.org; 8 May 2022 13:48:16 +0000 Original-Received: from localhost ([127.0.0.1]:53755 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nnhGi-0002Kq-4V for submit@debbugs.gnu.org; Sun, 08 May 2022 09:48:16 -0400 Original-Received: from mail-vs1-f45.google.com ([209.85.217.45]:37446) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nnhGg-0002KJ-61 for 55301@debbugs.gnu.org; Sun, 08 May 2022 09:48:15 -0400 Original-Received: by mail-vs1-f45.google.com with SMTP id t85so11532730vst.4 for <55301@debbugs.gnu.org>; Sun, 08 May 2022 06:48:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=wtIFDIB7LDofj1zUnPBqhwUtVtWpZBm3gzdolcTbvEk=; b=S0+In6UkNkkYkEwZnDzdqF9FIBAf3K2oIqNj7UESLDshhObsGaH1GN+euap9uxGK4u 8VL3vV6o0DyjHmBMGjTC6LsEj6SUONl676YTlyJpNqxbRIftc3CKkJ2sO/RH/cUVBEDM g8BHx1FUAiCBjczpRrsX5zvtD1J4rAfZD1EVp2uI2wti0m7l+KIJPcu97ch6T5AOkwZs +G6IVlcTaSKnlAv+ptopz8wAzg4OPu+wf1G6gn9jlB77kOeCyZvGl3YBttVgTbnVtJ5R VZm3y6jKPRd1SfLUI6BgHd+RfHikY2WFECzijvsRT2N47SRGLzXeeTq4G/gstBdK+YbG gwRg== X-Gm-Message-State: AOAM5302Uzx2pIyZ6rk6789cwbtov+zbw8/2S4+gghcTXHgI6mR3Ek5d 9sNhQN+NKN/aw+JeaoS04rCxUYrC2b0btAEzSBls/Ixo X-Google-Smtp-Source: ABdhPJwAtM7XKX0wDE1Sit68+L6Sg4IfpNp2iIFwebcLkTMfsyGWwGX228cRg/tUhD9/xXkU7uwcb0GvsKJ4DsboejE= X-Received: by 2002:a67:be0b:0:b0:32c:d82f:6723 with SMTP id x11-20020a67be0b000000b0032cd82f6723mr6254697vsq.67.1652017688311; Sun, 08 May 2022 06:48:08 -0700 (PDT) In-Reply-To: <87pmkojlg7.fsf@gnus.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:231654 Archived-At: Not a built-in one, no, but it is not difficult to construct a composite defcustom. There are plenty of sequence types and a keybinding type to compose with. Perhaps Emacs *should* have a standard built-in keymap defcustom type, but that would be the subject for a separate RFE. What I am proposing is something along the lines of this: when a mode (major or minor, it's strictly irrelevant) declares a keymap, part of the processing of the expansion of the mode definition should include a defcustom enabling the user to customize that keymap using the Customize UI, rather than (only) by writing elisp code. In other words, where foo-mode-map is currently implemented (I assume) using a defvar, that should change to a defcustom. That's really all I'm suggesting: change the defvar (or whatever) to a defcustom. On Sun, 8 May 2022 at 12:46, Lars Ingebrigtsen wrote: > > Phil Hudson writes: > > > If nobody sees any benefit from the idea, I imagine the best thing is > > to just close this. > > I just don't understand the request -- we don't have a Customize > interface for altering keymaps anyway. > > -- > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no