Add test for #1348.
Don't allow emacs in dependency lists

Possible fix for #1348?