Qt-TeXmacs - exec_delayed broken

View: New views
3 Messages — Rating Filter:   Alert me  

Qt-TeXmacs - exec_delayed broken

by Norbert Nemec :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Max,

it seems that the exec_delayed implementation in Qt/TeXmacs is seriously
broken. The old version mixed up the order, and the latest patch that
tries to correct this somehow does not work either. Actually, I don't
even understand how the latest version is supposed to work.

A quick-and-dirty workaround is to comment out exec_delayed&Co in
qt_gui.cpp, reactivate it in Guile/Scheme/object.cpp and reintroduce the
call to exec_pending_commands in tm_server.cpp. This seems to solve all
my problems at once...

Greetings,
Norbert


_______________________________________________
Texmacs-dev mailing list
Texmacs-dev@...
http://lists.gnu.org/mailman/listinfo/texmacs-dev

Re: Qt-TeXmacs - exec_delayed broken

by Massimiliano Gubinelli :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Norbert,

On 10 oct. 09, at 17:17, Norbert Nemec wrote:

> Hi Max,
>
> it seems that the exec_delayed implementation in Qt/TeXmacs is  
> seriously broken. The old version mixed up the order, and the latest  
> patch that tries to correct this somehow does not work either.  
> Actually, I don't even understand how the latest version is supposed  
> to work.
>
> A quick-and-dirty workaround is to comment out exec_delayed&Co in  
> qt_gui.cpp, reactivate it in Guile/Scheme/object.cpp and reintroduce  
> the call to exec_pending_commands in tm_server.cpp. This seems to  
> solve all my problems at once...
>

Unfortunately on my Mac my patch worked (and also on a Linux machine I  
cannot reproduce your observations) so I cannot really understand what  
is going wrong. I just commited a further patch which reimplements all  
the delayed messages handling using a unique timer so that commands  
should be sequenced like in the X11 version. Please check that the bug  
is gone or try to provide me some protocol to reproduce it (even if  
not deterministically).

Thanks for you help.

Best
Max



> Greetings,
> Norbert
>
>
> _______________________________________________
> Texmacs-dev mailing list
> Texmacs-dev@...
> http://lists.gnu.org/mailman/listinfo/texmacs-dev



_______________________________________________
Texmacs-dev mailing list
Texmacs-dev@...
http://lists.gnu.org/mailman/listinfo/texmacs-dev

Re: Qt-TeXmacs - exec_delayed broken

by Norbert Nemec :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The problems have changed, but it is still not working properly. I
experience strange delays on some commands and a crash when closing the
program.

Don't worry about it for the moment. I will look into it myself as soon
as I find some more time.

Greetings,
Norbert




Gubinelli Massimiliano wrote:

> Hi Norbert,
>
> On 10 oct. 09, at 17:17, Norbert Nemec wrote:
>
>> Hi Max,
>>
>> it seems that the exec_delayed implementation in Qt/TeXmacs is
>> seriously broken. The old version mixed up the order, and the latest
>> patch that tries to correct this somehow does not work either.
>> Actually, I don't even understand how the latest version is supposed
>> to work.
>>
>> A quick-and-dirty workaround is to comment out exec_delayed&Co in
>> qt_gui.cpp, reactivate it in Guile/Scheme/object.cpp and reintroduce
>> the call to exec_pending_commands in tm_server.cpp. This seems to
>> solve all my problems at once...
>>
>
> Unfortunately on my Mac my patch worked (and also on a Linux machine I
> cannot reproduce your observations) so I cannot really understand what
> is going wrong. I just commited a further patch which reimplements all
> the delayed messages handling using a unique timer so that commands
> should be sequenced like in the X11 version. Please check that the bug
> is gone or try to provide me some protocol to reproduce it (even if
> not deterministically).
>
> Thanks for you help.
>
> Best
> Max
>
>
>
>> Greetings,
>> Norbert
>>
>>
>> _______________________________________________
>> Texmacs-dev mailing list
>> Texmacs-dev@...
>> http://lists.gnu.org/mailman/listinfo/texmacs-dev
>
>
>
> _______________________________________________
> Texmacs-dev mailing list
> Texmacs-dev@...
> http://lists.gnu.org/mailman/listinfo/texmacs-dev
>



_______________________________________________
Texmacs-dev mailing list
Texmacs-dev@...
http://lists.gnu.org/mailman/listinfo/texmacs-dev