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

Re: [PATCH] defcustom ':size'

In [emacs-w3m : No.12713]
On Sun, 25 Jun 2017 20:00:04 -0400, Boruch Baum wrote:
> Can that be fixed using a macro conditional? Something to the effect
> of:

>   (when (the variable is empty) ":size 10")

Oh, it might be possible.  I'll try it.  What we want to do would
be to regenerate the UI widget according to the actual length of
the value when creating the customization buffer, using:
| `:convert-widget'
|   Function to convert a widget type before creating a widget of that
|   type.  It takes a widget type as an argument, and returns the
|   converted widget type.  When a widget is created, this function is
|   called for the widget type and all the widget’s parent types, most
|   derived first.
We already have the `w3m-widget-type-convert-widget' function.