11 # modify the gsrvdir check to search for directories that are owned by me
12 if [ -x /usr/bin/emacsclient ] && [ -x /usr/bin/emacs ]; then
13 # reset the tempdir to deal with setuid things clearing it
14 export TMPDIR="$(echo ~/tmp)";
15 if ( emacsclient -n -e '()' </dev/null >/dev/null); then
16 if [ -z "$DISPLAY" ]; then
17 exec emacsclient -c -nw "$@";
19 exec emacsclient -c "$@";
23 if [ -x /usr/bin/gnuclient ] && [ -x /usr/bin/emacs ]; then
24 if ( gnuclient -batch < /dev/null >/dev/null); then
28 if [ -x /usr/bin/vi ]; then
31 if [ -x /usr/bin/nano ]; then
34 if [ -x /usr/bin/ed ]; then
37 echo "Unable to find a suitable editor" >/dev/stderr;