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

Filip Gruszczyński gruszczy at xxxxx
Wed Jan 21 22:18:35 UTC 2009


Sadly, it didn't help. I am still experiencing this bug, although it
seems to happen rarer.

2009/1/21 Filip Gruszczyński <gruszczy at gmail.com>:
> Cool :) Thanks for quick response.
>
> 2009/1/21 Enrico Tröger <enrico.troeger at uvena.de>:
>> 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
>>
>> _______________________________________________
>> Geany mailing list
>> Geany at uvena.de
>> http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
>>
>>
>
>
>
> --
> Filip Gruszczyński
>



-- 
Filip Gruszczyński



More information about the Users mailing list