Vector-manipulation utility functions for Emacs