Provide iterator functions for emacs