home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / TextEditors&Viewers / Texteditors / FFRED10.LHA / fpl / ShowChanged.FPL < prev    next >
Encoding:
Text File  |  1994-09-22  |  473 b   |  21 lines

  1. export int ShowAllChanged()  /* Show all changed buffers */
  2. {
  3.   int firstid=GetBufferID();
  4.   int id=firstid;
  5.   string files="";
  6.  
  7.   do {
  8.     if (ReadInfo("changes", id))
  9.       files=joinstr(files, ReadInfo("file_name", id), "\n");
  10.     id=NextBuffer(id);
  11.     if (id == firstid)
  12.       id=0;
  13.   } while (id);
  14.  
  15.   if (strlen(files))
  16.     Request(files, "Changed files", "Got it!");
  17.   else
  18.     ReturnStatus("No files changed!");
  19. }
  20. AssignKey("ShowAllChanged();", "Amiga Control c");
  21.