jed-users mailing list

[2003 Date Index] [2003 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

ffx.sl update


The sync behaviour of the updated ffx.sl (
http://home.wtal.de/klaus/jedks/ffx.zip ) can be
described with the following pseudocode:

    sync_at_startup (optional)
        get current_list from buffer_list
        if sync_after and current_list
            save_to_file current_list

    before file_dialog (optional, required if sync_after)
        if sync_before and new_file_list_from_file
            merge_to_current_list file_list

    after file_dialog (optional)
        if strings_to_save
            merge_to_current_list strings_to_save
            if sync_after
               save_to_file strings_to_save

    sync_on_exit (optional, redundant if sync_after)
        if current_list
            save_to_file current_list

example configurations
  low sync. : sync_before, sync_on_exit
  high sync.: sync_at_startup, sync_before, sync_after

To minimize i/o, the lines are now appended to the file.
If the file size exceeds a limit, the file will be read,
sorted, cleaned up, truncated and rewritten.
The file will be read only, if time-stamp or size differ.

Suggestions to improve anything welcome.

-- Klaus


--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


[2003 date index] [2003 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]