From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#55301: 27.2; RFE: Auto-create defcustom for declared minor mode keymap Date: Mon, 09 May 2022 11:34:07 +0200 Message-ID: <87pmkncank.fsf@gnus.org> References: <8735hlnypl.fsf@gnus.org> <87pmkojlg7.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="1327"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 55301@debbugs.gnu.org To: Phil Hudson Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 09 11:35:50 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 1nnzny-00007S-B7 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 09 May 2022 11:35:50 +0200 Original-Received: from localhost ([::1]:37646 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nnznw-0000b4-TI for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 09 May 2022 05:35:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37860) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nnznD-0000JN-0Z for bug-gnu-emacs@gnu.org; Mon, 09 May 2022 05:35:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33967) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nnznC-00025S-NB for bug-gnu-emacs@gnu.org; Mon, 09 May 2022 05:35:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nnznC-0002YT-Ji for bug-gnu-emacs@gnu.org; Mon, 09 May 2022 05:35:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 May 2022 09:35: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.16520888609654 (code B ref 55301); Mon, 09 May 2022 09:35:02 +0000 Original-Received: (at 55301) by debbugs.gnu.org; 9 May 2022 09:34:20 +0000 Original-Received: from localhost ([127.0.0.1]:56094 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nnzmW-0002Vc-5H for submit@debbugs.gnu.org; Mon, 09 May 2022 05:34:20 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:39706) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nnzmU-0002V4-1b for 55301@debbugs.gnu.org; Mon, 09 May 2022 05:34:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=1Ad5bUa+yd3tEB4oxot9LCXHQW1eYYDZwBevcz+n4a0=; b=Bq9JKvjd1bCK5B9c3E6BtcNIJ/ tZe62Cowuwj9Vu8s451xChuF2lHuG7jqQp95rlPg0rDxDSTl2gjF0g7buCTV0ruJNpS+KiiPbQXNV X7hrEh3OR9LzeS3NU0gidaSsnCQ0069Ri2miSaUfMR/ZDvY3qRLeXR8VNikuU08dHPE4=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nnzmL-0003zt-2q; Mon, 09 May 2022 11:34:11 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEXZcnO+sKni39L2 9etsd4H////mjpy1AAAAAWJLR0QF+G/pxwAAAAd0SU1FB+YFCQkSKPuxcWMAAAG0SURBVDjLlVTr mdwgDCQdBOEGJNEA0jaAc/3XlBFgw92XP5HX2IsYafRySv8tv/OQ9XjlV1JVdzd3HSse8W6exIZm Ksc+dtUlCTYEu/Fv7ONFzSSp+BbolmmDD/MfEgY06Tr5TcJ5E1EWiOEOZvOQpQrSXzn3D+7rtkXO PcVpB+cAySRt4SYxEyuzs+TMpI9DTWaHc30SoD5ZBY1xhaEZWPIXccAsTL08vokl8X3aTsU/I/fI 7hQb63ajI0AIk+Ci08eJkJ8Ijh+ywg8HtTSOcu1sdiBQqDZM1BtE6FVEoaZz7sIWWV5kgeCFsABs hG+EHqbMtymlQVd95XnFUTuWhQg/oo/itgz39Jp6fAwEMLskCPDrlV3yKNShOCIfpkj804t5zju7 GINK3Ap8cMm0GzyS2Mjpc9ufpsHqGZYkrNr40/Nt5ZJVdgmFFapeu3qz8rbMyK42LQiwtGKku4IN GvKG7HZq9KQw0l6ICl+3V21FxjjNUUN/AHPdVY0LH3RhioQ5anfNJGKWo9tZHRbMLAwdPQpWTCgE X9yNeIzBkGREu+EKjvL8mKQop8YHAeOqUD+Kv6HCuLBZHCH4AAAAJXRFWHRkYXRlOmNyZWF0ZQAy MDIyLTA1LTA5VDA5OjE4OjQwKzAwOjAwELu3MAAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0wNS0w OVQwOToxODo0MCswMDowMGHmD4wAAAAASUVORK5CYII= X-Now-Playing: Blaine L. Reininger & Alain Goutier's _Paris en Autumne_: "Burn Like Rome" In-Reply-To: (Phil Hudson's message of "Sun, 8 May 2022 14:47:57 +0100") 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:231699 Archived-At: Phil Hudson writes: > 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. Emacs doesn't have a Customize UI to alter keymaps, so changing defvars to defcustom isn't currently useful (because there's no :type that could be used other than `sexp'). It would be possible to create such an UI, of course, but it would work quite differently than all other Customize widgets. I don't think anybody wants to have the entire definitions of keymaps in their .emacs files -- they want to add a keystroke or remove a keystroke or two, and that's it. (And, besides, they want to get new keystrokes that are added to the maps.) But it'd be nice to have; sure. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no