Fix emacs completion on OS X

Avoid calling seq with 0 as argument since its behaviour is wrong on OS X.
Merge pull request #1708 from lledey/master

Fix emacs completion on OS X