Don't allow emacs in dependency lists

Possible fix for #1348?