emacs: synchronize the buffer before locate