emacs-devel
[Top][All Lists]
Advanced

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

Re: Proposal to add Popper to ELPA


From: Mauro Aranda
Subject: Re: Proposal to add Popper to ELPA
Date: Tue, 5 Sep 2023 17:27:08 -0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0

On 5/9/23 14:38, Philip Kaludercic wrote:
> Karthik Chikmagalur <karthikchikmagalur@gmail.com> writes:
>
>> I would like to add my package Popper to GNU ELPA.
>>
>> URL: https://github.com/karthink/popper
>
> Here are a few changes I would propose to make.  Haven't tested it, so
> take it with a grain of salt:
> - :type '(restricted-sexp :match-alternatives (stringp symbolp functionp consp))
> -  :group 'popper)
> +  :type '(repeat (string :tag "Regular Expression")
> +           (symbol :tag "Major Mode")
> +           (function :tag "Predicate Function")
> + ;; What is the consp in (restricted-sexp :match-alternatives (stringp symbolp functionp consp))?
> +           ))

The different alternatives should be inside a choice:
:type '(repeat (choice (string :tag "Regular Expression")
                       (symbol :tag "Major Mode")
                       (function :tag "Predicate Function"))

>   (defcustom popper-mode-line-position 0
>     "Position in mode-line to place `popper-mode-line'."
> -  :type 'integer
> -  :group 'popper)
> +  :type 'natnum)

IIUC, the package requires Emacs 26.1, and the natnum widget wasn't
available back then.  Does Compat have it?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]