emacs: prevents from hanging