From: Jean-Marc Lasgouttes [lasgout...@lyx.org]
Sent: Thursday, August 23, 2012 4:41 AM

>Le 23/08/2012 06:19, Scott Kostyshak a écrit :
>> Currently buffer-forall rehides each hidden buffer after the LFUN is applied.
>> Should it not do that?

>Is it because they had to be made visible earlier?

I don't know how to dispatch a function to a buffer without first switching to 
it:
                                                vLv->setBuffer(b);
                                                lyx::dispatch(funcToRun);

Is there a better way?

Also, it seems that LyX does not like having a dirty hidden buffer so it 
prompts the user to save before re-hiding. I don't know how this would work if 
it didn't have to switch to the buffer first. I think I even saw source code 
somewhere that assumed that all hidden buffers were clean.

I'm traveling now and will send a new patch with the changes we discussed on 
Monday.

Thanks,

Scott

Reply via email to