[Top][All Lists]

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

Re: Suggestion for improving ergonomics of repeat-maps: define-repeat-ma

From: Lars Ingebrigtsen
Subject: Re: Suggestion for improving ergonomics of repeat-maps: define-repeat-map
Date: Mon, 04 Oct 2021 13:33:47 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Adam Porter <adam@alphapapa.net> writes:

> To be honest, I was surprised to see defvar-keymap as a separate macro.
> I was expecting, e.g. define-keymap to be used inside a defvar,
> something like:
>   (defvar foo-map
>     (define-keymap ...)
>     "Docstring for foo-map.")
> Not to complain about having the macro, of course.  :)

It was a late addition.  I started converting a couple keymaps to check
the ergonomics, and it became clear that >90% of the usages would look
just like that, so I added the macro version.

(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]