Open hab25 opened 1 year ago
I use the #'custom-type and #'custom-value-satisfies-type-p functions of cus-edit-plus (https://github.com/emacsmirror/cus-edit-plus/blob/99b16cb95e1b892e15e3091f124e0be6dd914e16/cus-edit%2B.el#L1073) to type-check any variables I set (if they have a 'custom-type property). This allows me to catch many type errors like this one. Dirvish may want to do something similar.
Emacs 29 comes with similar functionality in the form of the new setopt
. I believe that therefore, my usage, as described above, has been made obsolete.
Thank you for the bug report
dirvish
related packages.emacs -Q
.Bug description
'dirvish-open-with-programs
has an incorrect'custom-type
property. This prevents it from being customized via the customize interface, and fails programmatic type-checking (see theAnything else
section below).Steps to reproduce
and see that no customization buttons specific to
'dirvish-open-with-programs
show up in the customize buffer and the following message appears in the message buffer:OR
and see that an error is signaled (my erro callstack is provided below).
Expected behavior
Customize buffer displays properly;
widget-convert
works.OS
Linux
Emacs Version
28
Emacs Configurations
Vanilla
Error callstack
Anything else
I use the
#'custom-type
and#'custom-value-satisfies-type-p
functions ofcus-edit-plus
(https://github.com/emacsmirror/cus-edit-plus/blob/99b16cb95e1b892e15e3091f124e0be6dd914e16/cus-edit%2B.el#L1073) to type-check any variables I set (if they have a'custom-type
property). This allows me to catch many type errors like this one. Dirvish may want to do something similar.