Emacs: improve support for occurences