>> expects in every table
>> \endfirsthead
>> before
>> \endhead .
>
> I'm very surprised about this. The longtable doc does not mention that
> \endhead needs a prior \endfirsthead.
It is the opposite way: \endfirsthead has to be before \endhead
> I see why the problem occurs, but I think the fix is too general. I think the
> fix, whatever it is, should only apply to cases where captions are actually
> used.
When you have a header but no first header, the the first header is empty. In this case the first
header is now also set as empty in the dialog. I think that this is uncontroversial.
It was already the case that you get an \endhead when the first header was set to empty. So I
haven't introduced anything new.
Having \endhead before \endfirsthead is always correct, no matter what you are using. Yo can test
this by setting the first header as empty in LyX 1.6.3. You will see that you still can compile all
documents - this has to be the case, otherwise the empty option would have to be removed.
So as we already provide the empty option it is safe to use it.
regards Uwe