My co-worker is visually impaired, and he uses a custom emacs. His
EDITOR is set to something like "~/bin/xemacs -nw". When git-commit
runs, it complains:
% git-commit
git-commit: line 582: ~/bin/xemacs -nw: No such file or directory
So, I fiddled with the following line in git-commit:
${VISUAL:-${EDITOR:-vi}} "$GIT_DIR/COMMIT_EDITMSG"
and changed it to:
eval ${VISUAL:-${EDITOR:-vi}} "$GIT_DIR/COMMIT_EDITMSG"
and it seems to work as I would expect in this case.
Is this a reasonable fix?
Bill
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html