Am Fri, 23 Aug 2013 17:29:37 +0300 schrieb Eli Zaretskii : > > That patch seems to work, thank you. > > Thanks, committed as trunk revision 113979. Cool! > I think your analysis is correct. Perhaps invoking font-lock to > fontify the appropriate portion of the text, before taking the prefix > string, will solve that? > > > Perhaps this is a more an issue of adaptive-wrap-mode, I > > don't know. > > I think it is indeed an issue with adaptive-wrap-mode. Yes, it seems to work. I used the attached patch for adaptive-wrap.el (although I do not know if this is the correct way to do because I'm not really familiar with font-lock), it just works for me. Thanks again Frank