Derek Chen-Becker <[email protected]> writes:

> Thanks for the update, this looks good! On the defcustom comment I made, I
> think you can do both predefined and user-provided values like this (maybe
> Ihor or another elisp expert can confirm?):
>
> (defcustom org-latex-descriptive-environment "description"
>   "The environment to use for lists tagged as descriptive.
>
> Set this variable to \"itemize\" or \"enumerate\" if using
>  - tag ::
> upsets the typesetting of a list."
>   :group 'org-export-latex
>   :package-version '(Org . "10.0")
>   :type '(choice (const :tag "description (default)" "description")
>                  (const :tag "itemize" "itemize")
>                  (const :tag "enumerate" "enumerate")
>                  (string :tag "Custom")))
>
> I think it would require dropping the ":safe" tag. Honestly, it might be
> simpler to use your original implementation.

No need to drop safe. The type you suggested is essentially the same as
:type 'string, but additionally providing a set of pre-defined
suggestions in customization interface.

So, :safe #'stringp will work just fine with your approach.

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>

Reply via email to