X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/profile/blobdiff_plain/c39d1139c4dc74bae2bdb809799efcfe8306ddca..6f75a47e1fda9f8c718d0193b9f18ff1b73a1952:/bin/mdw-editor?ds=sidebyside diff --git a/bin/mdw-editor b/bin/mdw-editor index aa52fd5..c162da3 100755 --- a/bin/mdw-editor +++ b/bin/mdw-editor @@ -2,6 +2,9 @@ set -e editor=${MDW_EDITOR-ed} +case ${TMP+t},${TMPDIR+t} in + t,) TMPDIR=$TMP; export TMPDIR ;; +esac emacsclient=$( emacsclient --eval '(>= emacs-major-version 23)' 2>/dev/null || :) [ -t 0 -a -t 1 ] || TERM=dumb