I've recently discovered setf, which is a wonderful way to modify arbitrary datastructures in elisp. #emacs