Emacs will require changes to find its lisp library files and sub programs such as movemail and loadst. Some changes to the lisp startup code could copy certain environment variables to the appropriate lisp variables when emacs starts.