anchor.diff:      DoRemovePreviewStyle;
   
     UpdateCaptionFromFilename;
  -  DoOnChangeCaption;
   
     if AWithEvent then
       DoPyEventState(Ed, EDSTATE_MODIFIED);
  
positive.code:   Name1, Name2: string;
  begin
    //avoid updating caption if API already had set it
    if FTabCaptionFromApi then exit;
  
    if EditorsLinked then
    begin
  
negative.code:       if Assigned(FOnAddRecent) then
          FOnAddRecent(Ed);
  
      UpdateCaptionFromFilename;
  
      DoSaveUndo(Ed, SFileName);
      DoPyEvent(Ed, cEventOnSaveAfter, []);
  