---Reply to mail from Marcello Perathoner about Why are bookmarks sorted?

> I'm writing a custom text/plain parser.
> 
> I'm parsing a text file and as I go along I add all chapter heads to the 
> bookmark list using:
> 
>    PluckerDocs.PluckerTextDocument.add_bookmark
[...]
> I'm wondering why bookmarks have to be sorted? Is there any reason to do 
> that?

    I wrote the bookmark code in PluckerDocs.py. They are sorted 'cause
with 'regular' bookmarks ("Conclusion", "Other Links", etc) they are
easier to find.

    Maybe sorting shoud be (yet) another option. In the short term you can
comment out the line that calls the sort ( the_keys.sort() ).

---End reply

Christopher R. Hawks
HAWKSoft
-------------------------------------------------------------------------
Any research done on how to efficiently use computers has been long lost
in the mad rush to upgrade systems to do things that aren't needed by
people who don't understand what they are really supposed to do with them.
    -- Graham Reed, in a.s.r.





_______________________________________________
plucker-dev mailing list
plucker-dev@rubberchicken.org
http://lists.rubberchicken.org/mailman/listinfo/plucker-dev

Reply via email to