anchor.diff:        Exit(false);
     end;
   
  +  if bNameChanged then
  +    DoLexerFromFilename(Ed, GetFileName(Ed));
  +
     NotifEnabled:= PrevEnabled;
   
     if not TabCaptionFromApi then
  
positive.code:   if DoPyEvent(Ed, cEventOnSaveBefore, [])=cPyFalse then exit(true); //disable saving, but close
  
    SFileName:= GetFileName(Ed);
  
    if ASaveAs or (SFileName='') then
    begin
  
negative.code: 
      SFileName:= SaveDialog.FileName;
      SetFileName(Ed, SFileName);
      bNameChanged:= true;
  
      //add to recents saved-as file:
      if Assigned(FOnAddRecent) then
  