Jean-Marc Lasgouttes wrote: >> You mean to preserve undo stack for each reload of file or just for save-as >> scenario? We also reload automatically after commit/checkout VCS operation >> which can change read-only status. > > This is why I propose to add a parameter to reload telling whether undo > should be discarded.
That looks fine. > OTOH, it looks like doing a reload in after save-as is a bit harsh. Is the > goal only to sanitize IncludeInset? Paths to images also change, though don't know whether reload is needed. Pavel