emacs: Use 'and' instead of 'when' when the return value matters