<retroj`> M-x describe-variable tells a default value for variables. I wonder
where it gets that information. it seems to be incorrect
<retroj`> at least it's incorrect for mime_type_external_handlers
<nicktastic> Are you looking into it, or shall I file a bug?
<retroj`> I shouldn't spend more time on conkeror today :) :(
<jbms> nicktastic: it gets the information from the call to define_variable
<jbms> nicktastic: perhaps the default value should not be listed if it is an object
<nicktastic> Make a deep copy of the original?
<jbms> I don't think it is a good idea
<jbms> it probably just shouldn't be listed
<jbms> it isn't that useful, anyway, I don't think
<nicktastic> I think it is useful but I can't give an example at the moment.
I'll give it some thought after work.
<jbms> well, the point is you can always hit \ to view the definition in the
source code
<jbms> and that will be more reliable
<nicktastic> Incidentally, why would deep copies be a bad idea? Memory wasted
for no good reason?
<jbms> yeah
<jbms> I guess realistically it is not very much memory
<jbms> deep copying doesn't necessarily work, though
<retroj`> agree... that would waste memory
<retroj`> it could serialize it instead, but I see no compelling reason to go to
such lengths
<jbms> I seems though that putting a lot of complexity into the describe
variable feature doesn't make too much sense
<jbms> because in a lot of cases it might be some number that is actually taken
from a set of constants, for instance
<jbms> and then showing the default value as a number isn't very helpful
<nicktastic> Aye, like OPEN_NEW_BUFFER_BACKGROUND
|