Fix emacs completion on OS X

Avoid calling seq with 0 as argument since its behaviour is wrong on OS X.

This is similar to #628.