phillord / lentic

Create views of the same content in two Emacs buffers
183 stars 12 forks source link

Lentic recovers from buffer invalidity ungracefully #29

Closed phillord closed 9 years ago

phillord commented 9 years ago

If a buffer becomes invalid in block mode, then it can recover ungracefully -- so parts of the lentic buffer are correct and parts are not.

This happens because of incremental cloning. The bits which are cloned during invalidity are cloned with the default clone (which is effectively wrong), but then after the buffer becomes valid again only the incrementally cloned bits are fixed. We need to detect when invalidity status changes and clone the entire buffer.