Abhishek Jain asks Stack Overflow about the differences between zlib, gzip and Zip, and gets a fascinating and very insightful response from none other than Mark Adler. I particularly like the comment Adler made when the OP asked about referenecs for his answer.
I am the reference, having been part of all of that. This post could be cited in Wikipedia as an original source.
This, to me, is a perfect example of the enormous impact of open source and free software libraries developed in the 80s and 90s have on modern-day computing. All these small components of Linux or *BSD systems that were developed over the years now play such crucial parts in so many complex systems we rely on every day.
Free/open source software developers are the heroes of the internet era, and as such should have monuments built to their glory and schools named after them.
auto-fill-mode and even have it customized for
LaTeX-mode in my Emacs configuration. However, while working with other people via a distributed version control system, like I do with my friends,
auto-fill-mode can be a real pain if not everyone uses it. Whenever the ones that do commit any code, others are annoyed because it’s difficult to see the changes in the diff file, since
auto-fill-mode reformats paragraphs (hence producing ‘more’ changes).
The most straightforward solution is to put some local variables into the file, like
(auto-fill-mode -1), but today at StackOverflow I saw a much neater solution: one can put a function that searches for a specific string inside a file and sets minor-modes accordingly. So now there’s a coauthors search function in my
; auto-fill is enabled for TeX... (add-hook 'LaTeX-mode-hook 'turn-on-auto-fill) ; ...unless I work with the gang (defun my-auto-fill-disabling-hook () "Check to see if we should disable autofill." (save-excursion (when (or (re-search-forward "truls" 1000 t) (re-search-forward "sjur" 1000 t) (re-search-forward "erik" 1000 t)) (auto-fill-mode -1)))) (add-hook 'find-file-hooks 'my-auto-fill-disabling-hook)