Hi Rasmus, ras...@gmx.us writes:
>>> I also find something like this ghastly: >>> >>> But perhaps it is the only way to get what you want. >> >> I could not find a way to do it another way, but I'll gladly take any >> suggestion. What we want is: >> - if email is set in the file, use it; >> - otherwise, use the one from the lco; >> - otherwise, use the default one. > > Hmm, I guess we'd have to have to assign the variables to certain > lists on the fly. If the header string is a concat of > > (PREAMBLE-STRING DEFAULT-VALUES LCO BUFFER-LOCAL) > > where a member of DEFAULT-VALUES is a cons, e.g. > > ("fromname" . "Rasmus"). > > Then we can remove all pairs from DEFAULT-VALUES where the first first > element (the "key") also exists in BUFFER-LOCAL. > > It might be too much work? I'm not sure. . . This could be a way to do it. However, I don't know how to detect the variables in the LCO file, which is why they may be duplicated in the tex file. Alan