[patch] Synchronization of the panels

Siver Andrey siver at sirius.ihep.su
Sat Apr 2 17:18:24 UTC 2005


Hi, All,

I've rewriten my previous patch (main.c.diff, sync.inc):
1) Now synchronization is doing by time (SYNC_DELAY keeps inverval in seconds; 2 secs by default);
2) The synchronization is loosing for some DLG_ signals for efficiency;
3) Add some errors checks.

It looks a little more stable and faster.

But there is some MC behaviour that I could not understand or explain now. After some numbers of the update calls (3-5 and more), "enter" key does not work any longer for any directory of the panel opposited to the updating: error occurs: "cannot change directory". 'magic_path' function does not detect any problem though. I do not know whether it due to my patch, or due to MC or system property.
Also it looks like my patch behaviour depends on type of terminal... Please test it.

For those who possesses configure magic I also prepared patches for main.h and configure.ac (I also registered "enable-synchro" option; it will be useful until patch become stable); you may use sync4.h and sync4.c also. Unfortunately I'm not such a person now :).

Suggestions are welcome.


Thanks,

Andrey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20050402/57beb4e2/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sync4.h
Type: application/octet-stream
Size: 951 bytes
Desc: not available
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20050402/57beb4e2/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.c.diff
Type: application/octet-stream
Size: 1052 bytes
Desc: not available
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20050402/57beb4e2/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.h.diff
Type: application/octet-stream
Size: 206 bytes
Desc: not available
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20050402/57beb4e2/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sync.inc
Type: application/octet-stream
Size: 3825 bytes
Desc: not available
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20050402/57beb4e2/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sync4.c
Type: application/octet-stream
Size: 3851 bytes
Desc: not available
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20050402/57beb4e2/attachment-0004.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure.ac.diff
Type: application/octet-stream
Size: 228 bytes
Desc: not available
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20050402/57beb4e2/attachment-0005.obj>


More information about the mc-devel mailing list