Thanks, but the updated version of the BPSQSE section in this thread is still very different from the latest from version .50.2. It might make more sense to post the version .50.2 code with the quote blocking stuff removed. It would certainly be more useful to me.
As for the changes I think I need (that I posted above): are they anywhere near being correct?