List-manipulation utility functions for Emacs