[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Moving kbd to subr.el

From: Lars Ingebrigtsen
Subject: Re: Moving kbd to subr.el
Date: Tue, 19 Oct 2021 17:09:54 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> kbd-define
>> kbd-define-map
> Since we're in the bikeshedding part of this, let me throw some ideas:
> - The name `define-key` might be tolerable because it "defines" the behavior 
> of
>   a given key, but I find it shouldn't say "define" but rather something
>   like "set" or "put" since it behaves much more like `setq`, `aset`,
>   `put`, `puthash`, ...

That's a really good point.  So `kbd-set'?

> - I really don't like `define-keymap` because "define" usually gives
>   a definition to a name, but here there's no name.  I'd prefer
>   something that says "make" or "create", or even just `keymap` (in the
>   tradition of reusing a type/class name as the name of the function
>   that constructs objects of this type).

I went with "define" since `make-keymap' was taken.  But if we're
switching stuff around, then perhaps...  `kbd-make'?

(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no

reply via email to

[Prev in Thread] Current Thread [Next in Thread]