emacs functions for managing buffers.