1. At [line 3747 of document.c](https://github.com/geany/geany/blob/e5680fe85de536fc61ff0f2d4eadc54171d6c982...) the value of `doc->priv->file_disk_status` is set to `FILE_OK` **immediately after it was set to** `FILE_CHANGED`. This seems a bug, possible this glitch was earlier mentioned in the [comments here](https://github.com/geany/geany/pull/1180). This information is needed to implement [reload all](https://github.com/geany/geany/issues/2540), but disappears too early. (A similar field `doc->changed` nicely updates only when the text buffer is updated. It has another purpose, I know)
2. Studying the behavior in some more detail I wonder this enumeration type can be simplified: ```C typedef enum { FILE_OK, FILE_CHANGED, /* also valid for deleted files */ /* FILE_IGNORE --> Not needed anymore? */ } FileDiskStatus; ```