summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
c39d113)
Setuid programs drop the TMPDIR environment variable. This means that
emacsclient can't find the correct socket directory if it's started via
`sudo -e', which is annoying. Fortunately, we have a copy of the
correct directory lying around, so we can use it to fix things up.
set -e
editor=${MDW_EDITOR-ed}
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
emacsclient=$(
emacsclient --eval '(>= emacs-major-version 23)' 2>/dev/null || :)
[ -t 0 -a -t 1 ] || TERM=dumb