## changes directory and displays the name of the directory in a subshell to
## avoid changing the current state.
HOME=`(set -P; cd $HOME; pwd)`
-cd $HOME
+[ -n "$SCHROOT_SESSION_ID" ] || cd $HOME
## CDE's session structure is demented and doesn't leave us with a proper
## logout hook, so synthesize one here.
export MDW_EDITOR=ed
emacs_startup_args="--no-site-file --mdw-fast-startup -nw"
for ed in \
+ "emacs23 $emacs_startup_args" \
+ "emacs24 $emacs_startup_args" \
"emacs22 $emacs_startup_args" \
"emacs21 $emacs_startup_args" \
zile mg \