nmh-workers
[Top][All Lists]
Advanced

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

[Nmh-workers] configurable part separator lines


From: Paul Fox
Subject: [Nmh-workers] configurable part separator lines
Date: Wed, 23 Apr 2014 22:22:31 -0400

ken wrote, responding to me:
 > >it's unfortunate that the marker for non-displayed parts is
 > >customizable, but for displayed parts it is not.  looking at
 > >the code, i see that that would be a bit of an untangle.
 > 
 > Hrm.  Let me meditate on that.  Might not be so bad.  The key is that
 > they can't have a different set of components, since the component hash
 > table is global.  It MIGHT be doable.  I've thought about making the
 > hash table returned as part of fmt_compile so different programs can
 > have completely independent compiled format strings, but that's too much
 > of an API change to cram into 1.6.

this issue was rather a big itch for me, so i had to scratch it.  i
agree about "not 1.6", but i think i might have it, or something
close.

it's just a couple of "real" changes to get all part separators to use
the marker form (see the new call to output_marker() in
show_content_aux2(), and then a whole bunch more small changes to pass
the fmt pointer everywhere it needs to go.

in addition, the format needs some sort of parameter to let the marker
line vary, depending on whether the part is being displayed or
suppressed.  i've done this by providing a new component escape
("hidden") which is only set when the part isn't being shown.  it has
a value of either nothing, or "(suppressed)", but it can be used as a
boolean rather than as a string to allow more flexibility.  of course
my knowledge of how mhl format strings and their parameters really
work ran out about an hour ago, so take all this with a grain of salt.

patch attached for perusal.

paul
----------------------
 paul fox, address@hidden (arlington, ma, where it's 42.8 degrees)

Attachment: 0001-mhshow-apply-marker-form-to-all-part-separators.patch
Description: 0001-mhshow-apply-marker-form-to-all-part-separators.patch


reply via email to

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