anchor.diff:  var
     An: TecSyntAnalyzer;
     attr: integer;
  -  PrevEnabled: boolean;
  +  PrevEnabled, bNameChanged: boolean;
     NameCounter: integer;
     SFileName, NameTemp, NameInitial: string;
   begin
  
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:       Exit(false);
    end;
  
    if bNameChanged then
      DoLexerFromFilename(Ed, GetFileName(Ed));
  
    NotifEnabled:= PrevEnabled;
  
    if not TabCaptionFromApi then
  