From: Philip Kaludercic <philipk@posteo.net>
To: Karthik Chikmagalur <karthikchikmagalur@gmail.com>
Cc: Mauro Aranda <maurooaranda@gmail.com>, emacs-devel@gnu.org
Subject: Re: Proposal to add Popper to ELPA
Date: Sat, 09 Sep 2023 08:10:09 +0000 [thread overview]
Message-ID: <875y4jdaxq.fsf@posteo.net> (raw)
In-Reply-To: <87msxwib82.fsf@gmail.com> (Karthik Chikmagalur's message of "Fri, 08 Sep 2023 14:52:45 -0700")
Karthik Chikmagalur <karthikchikmagalur@gmail.com> writes:
>> One more point, the user option `popper-echo-dispatch-keys' seems to
>> have a broken type. Shouldn't it be something like
>>
>> (repeat (choice key-sequence character))
>>
>> with proper tag annotations?
>
> I'm not sure it makes sense to enter these keybindings one-by-one, or to
> have tags attached to each entry. The idea is that this is a list of
> keys that will be bound to buffers.
>
> I will change it from (group string character) to (group key-sequence character).
The issue here is that `group' is the wrong type. See (elisp) Composite
Types,
‘(group ELEMENT-TYPES...)’
This works like ‘list’ except for the formatting of text in the
Custom buffer.
and
‘(list ELEMENT-TYPES...)’
The value must be a list with exactly as many elements as the
ELEMENT-TYPES given; and each element must fit the corresponding
ELEMENT-TYPE.
So your type now will match
(list (kbd "C-a") ?z)
but not
(list (kbd "C-a"))
(list ?z)
(list)
(list ?a ?z)
(list (kbd "C-a") (kbd "C-a") ?z)
or the current default value.
> As an aside, how do I determine when a customization type was added to
> Emacs? I want to be sure that (for instance) the `key-binding' type is
> available on Emacs 26.1.
I don't know if this is the best way, but I checked wid-edit.el and
using vc-annotate I could see that it was added in 2005. It is also
documented in the ChangeLog files.
>> Other than that, I have added the package to the archive, thanks for
>> contributing your package!
>
> Thank you Philip.
>
> Karthik
prev parent reply other threads:[~2023-09-09 8:10 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-05 16:55 Proposal to add Popper to ELPA Karthik Chikmagalur
2023-09-05 17:38 ` Philip Kaludercic
2023-09-05 20:12 ` Karthik Chikmagalur
2023-09-05 20:37 ` Mauro Aranda
2023-09-06 17:36 ` Philip Kaludercic
2023-09-06 23:09 ` Karthik Chikmagalur
2023-09-05 20:27 ` Mauro Aranda
2023-09-05 20:49 ` Karthik Chikmagalur
2023-09-05 21:05 ` Mauro Aranda
2023-09-06 17:13 ` Karthik Chikmagalur
2023-09-08 17:25 ` Philip Kaludercic
2023-09-08 21:52 ` Karthik Chikmagalur
2023-09-09 0:33 ` Mauro Aranda
2023-09-09 0:57 ` Karthik Chikmagalur
2023-09-09 8:10 ` Philip Kaludercic [this message]
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=875y4jdaxq.fsf@posteo.net \
--to=philipk@posteo.net \
--cc=emacs-devel@gnu.org \
--cc=karthikchikmagalur@gmail.com \
--cc=maurooaranda@gmail.com \
/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).