[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 11:49:48 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Adam Porter <adam@alphapapa.net> writes:
> I'm confused about a small detail, though: it seems that define-keymap
> allows keyword/value pairs inline with the key/binding pairs, but
> defvar-keymap requires the keyword/value pairs to be in a list, and an
> empty one when none are given. The manual entry doesn't seem to cover
> this difference.
Doesn't the manual document the syntax of both of these?
But I guess it's a bit confusing how the syntaxes are similar but
different? I went back and forth a number of time on the syntax --
define-keymap is a function, so it can't do the function-line macro
syntax that defvar-keymap can (which is better). But having the first
argument of define-keymap be a list (which would be preferable in most
ways) just looked awkward.
(define-keymap (list :full t)
...)
But I'm open to changing it if it's too confusing the way it is now.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- Re: Suggestion for improving ergonomics of repeat-maps: define-repeat-map, Lars Ingebrigtsen, 2021/10/04
- Re: Suggestion for improving ergonomics of repeat-maps: define-repeat-map, Adam Porter, 2021/10/04
- Re: Suggestion for improving ergonomics of repeat-maps: define-repeat-map,
Lars Ingebrigtsen <=
- Re: Suggestion for improving ergonomics of repeat-maps: define-repeat-map, Juri Linkov, 2021/10/04
- Re: Suggestion for improving ergonomics of repeat-maps: define-repeat-map, Lars Ingebrigtsen, 2021/10/04
- Re: Suggestion for improving ergonomics of repeat-maps: define-repeat-map, Stefan Monnier, 2021/10/04
- Re: Suggestion for improving ergonomics of repeat-maps: define-repeat-map, Lars Ingebrigtsen, 2021/10/04
- Re: Suggestion for improving ergonomics of repeat-maps: define-repeat-map, Lars Ingebrigtsen, 2021/10/04