Initial import from http://www.selenic.com/quilt/quilt.el