carbon2-commit: Make functions in frame.el more general.