[Geany] Geany constantly informs about more recent version of a file

Enrico Tröger enrico.troeger at xxxxx
Wed Jan 21 16:03:54 UTC 2009


On Wed, 21 Jan 2009 02:37:48 +0100, Thomas Martitz
<thomas.martitz at fhtw-berlin.de> wrote:

>Thomas Martitz wrote:
>> The attached patch seems to fix it.
>>
>> From reading the SOURCE, ignoring stuff implies setting file status
>> to FILE_OK. Several cases which were supposed to be ignored don't do
>> this.
>>
>> However, I don't know GIO good enough to pretend that this is the 
>> proper fix, so let the pros look at it.
>
>
>I found out, that if you type anything in the editor window (let it be 
>text or just moving cursor, or clicking in the windw) quickly after
>the file was saved, the file is reported as changed (and thus the
>reload message is issued).
>That also means if you wait long enough, the reload message doesn't
>appear.
>
>By debugging I found, that the time frame is the time between saving
>and the return of file_monitor_changed_cb() (in document.c) (which is
>IIUC polled every few seconds, so the time frame is variable).
>That said, GIO reports G_FILE_MONITOR_EVENT_CHANGED if the typing has 
>taken place between saving and the regular file status update, even 
>though the file as is hasn't been changed after saving.
>
>This is a bit weird, since saving files explicitly sets the file
>status to FILE_IGNORE, which should result in ignoring 
>G_FILE_MONITOR_EVENT_CHANGED.

Yeah, but there was one check for the ignore flag missing in the code
which resulted in this weird behaviour.
This and some other issues should be fixed/better in SVN 3495.

Thanks a lot for these information.

Regards,
Enrico

-- 
Get my GPG key from http://www.uvena.de/pub.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/users/attachments/20090121/a1ffa5fb/attachment.pgp>


More information about the Users mailing list