TODO: Note that '=' should sometimes count from the end of the buffer.