More perma-scratch-buffer stuff.