[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 21:02:39 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Juri Linkov <juri@linkov.net> writes:

> But why not to unify them in another direction, i.e. not to use a list
> for options in defvar-keymap.  Then both syntaxes would be the same:


>   (defvar-keymap eww-textarea-map
>     :full t
>     "g" #'eww-reload)

The parenthesised version is more regular -- the keywords-at-the-start
thing feels pretty hackish.  (And means that eldoc doesn't give correct

But we do use the keyword-at-the-start approach in
`define-derived-mode', for instance, so perhaps we could here, too.
Putting keywords inside a () is pretty unusual syntax, anyway.

So I'm open to unify them in this direction...

Does eldoc have support for this kind of oddball syntax, by any chance?

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