It was recently removed a 1.3.x feature of collapsables that was considered useful with spellchecking.
The feature consisted of the following: on an edit event, a bool first_after_edit was set to true. On any other event it was set to false. Then on the search code, if nothing (more) was found in the inset, and first_after_edit was true, the inset was automatically closed. The behaviour is then that while spellchecking, the inset was opened, and if nothing was found inside then it was closed. If the user typed something inside between a search and the following, while the cursor was inside, then first_after_edit becomes false and then the inset stays open. I think it would be relatively simple to reimplement exactly the same thing, but it seems pretty much of a hack to me, and would be search-specific. If we can have a reasonable implementation of autocloseable insets, then we can use that also in other parts of the code, like spellchecker, goto bookmark, toc navigation etc. Maybe some kind of LFUN_CURSOR_IS_ABOUT_TO_EXIT notification, that gives a chance to the inset to close itself if it is in "autoclose" mode? Thoughts? Alfredo
