GNU bug report logs - #55301
Wishlist: Customize should have a way to edit keymaps

Previous Next

Package: emacs;

Reported by: Phil Hudson <phil.hudson <at> iname.com>

Date: Sat, 7 May 2022 14:08:02 UTC

Severity: wishlist

Found in version 27.2

Full log


Message #41 received at 55301 <at> debbugs.gnu.org (full text, mbox):

From: Robert Pluim <rpluim <at> gmail.com>
To: Phil Hudson <phil.hudson <at> iname.com>
Cc: Lars Ingebrigtsen <larsi <at> gnus.org>, 55301 <at> debbugs.gnu.org
Subject: Re: bug#55301: 27.2; RFE: Auto-create defcustom for declared minor
 mode keymap
Date: Mon, 09 May 2022 15:39:01 +0200
>>>>> On Mon, 9 May 2022 11:02:20 +0100, Phil Hudson <phil.hudson <at> iname.com> said:

    Phil> On Mon, 9 May 2022 at 10:54, Lars Ingebrigtsen <larsi <at> gnus.org> wrote:
    >> 
    >> Phil Hudson <phil.hudson <at> iname.com> writes:
    >> 
    >> > How about ":type '(alist :key-type key-sequence :value-type function)"?
    >> 
    >> Like I said, that wouldn't be very useful, because people don't want the
    >> entire keymap in their .emacs files anyway.

    Phil> Isn't that exactly the right place for declarative personal preferences?

Yes, but if a keymap were a defcustom, then the whole keymap would be
in your .emacs, and you would not receive any updates if the keymap
definition changed, since that affects the *default* defcustom value.

Now if you wanted to define a defcustom type for changing bindings in an
existing keymap, thatʼs a different proposition (and we already have
define-key, so Iʼm not so sure of the utility).

Robert
-- 




This bug report was last modified 3 years and 4 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.