From: Augusto Stoffel <arstoffel@gmail.com>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: acdw <acdw@acdw.net>, emacs-devel@gnu.org, Juri Linkov <juri@linkov.net>
Subject: Re: Suggestion for improving ergonomics of repeat-maps: define-repeat-map
Date: Thu, 09 Sep 2021 22:35:13 +0200 [thread overview]
Message-ID: <87zgslzdvi.fsf@gmail.com> (raw)
In-Reply-To: <87h7etsjxx.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 09 Sep 2021 20:06:02 +0200")
On Thu, 9 Sep 2021 at 20:06, Lars Ingebrigtsen <larsi@gnus.org> wrote:
> Juri Linkov <juri@linkov.net> writes:
>
>> If normal keymaps were defined with a macro similar to the macro
>> that you created, it would be easier to migrate the existing repeat-maps
>> to your macro. I mean if we had a macro `define-keymap' that defines
>> normal keymaps and that is similar to your `define-repeat-map',
>> then creating a repeat-map from the normal map would require just
>> changing the macro name `define-keymap' to `define-repeat-map'.
>
> Heh. I've got a `define-keymap' macro stashed away, waiting for Emacs
> 29. :-) (So another week or so.)
Why is it a macro, not just a function?
This is tangential, but if define-key could take an arbitrary number of
KEY DEF pairs to define (like setq for variables), it would be immensely
more convenient.
It would also be nice to allow keyword arguments like :prefix (to define
a bunch of keys with a common prefix) or :filter (to put all the DEFs in
menu-items with the provided :filter function)
next prev parent reply other threads:[~2021-09-09 20:35 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-08 3:22 Suggestion for improving ergonomics of repeat-maps: define-repeat-map acdw
2021-09-08 14:54 ` Philip Kaludercic
2021-09-08 17:01 ` acdw
2021-09-09 17:50 ` Juri Linkov
2021-09-09 18:06 ` Lars Ingebrigtsen
2021-09-09 20:35 ` Augusto Stoffel [this message]
2021-09-09 20:39 ` Lars Ingebrigtsen
2021-09-10 0:53 ` acdw
2021-09-10 10:53 ` Lars Ingebrigtsen
2021-10-04 8:22 ` Lars Ingebrigtsen
2021-10-04 9:05 ` Adam Porter
2021-10-04 9:49 ` Lars Ingebrigtsen
2021-10-04 11:29 ` Adam Porter
2021-10-04 11:33 ` Lars Ingebrigtsen
2021-10-04 18:18 ` Juri Linkov
2021-10-04 19:02 ` Lars Ingebrigtsen
2021-10-04 19:24 ` Stefan Monnier
2021-10-04 19:54 ` Lars Ingebrigtsen
2021-10-04 20:16 ` Lars Ingebrigtsen
2021-09-10 0:53 ` acdw
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zgslzdvi.fsf@gmail.com \
--to=arstoffel@gmail.com \
--cc=acdw@acdw.net \
--cc=emacs-devel@gnu.org \
--cc=juri@linkov.net \
--cc=larsi@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).