Extra rectangle functions for emacs.