|
|
10.4: leaving Xml plists as Xml
It appears jka-compr only uses magic numbers (ie. "bplist") when saving a file to see if it has already been compressed. Thus there is no way to use it as is to discriminate between original-xml and original-binary plists. One could modify jka-compr to check files before uncompressing, and accordingly set a flag to recompress on write. (perhaps an extra state of 'jka-compr-really-do-compress') This could conflict with other compression modes with optional magic numbers.
Since is the first filetype with the same extension for both formats, it may be easier to just extend the previous hint than to generalize jka-compr. So here is a .emacs snippet that recognizes both formats and reconverts only initially-binary files on save:
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.13 seconds |
|