[emacs] Clean up the 'dev' file.

* Move a function to the 'functions' file.
* Remove a few comments.
* Update the TODO file.