unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* ediff merge fails on Win2K - RESOLVED!
@ 2003-03-25 17:11 Eric Pement
  0 siblings, 0 replies; only message in thread
From: Eric Pement @ 2003-03-25 17:11 UTC (permalink / raw)


This bug report will be sent to the Free Software Foundation [ ... ] 
Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list,
and to the gnu.emacs.bug news group.

  Several minutes ago, I sent in a bug report about ediff-merge-files
  failing on a Win2K machine using GNU Emacs 21.2.1. Specifically,
  Emacs complained that "diff3.exe" could not be executed, even though
  "diff3" was the proper version, was on the Windows PATH, and even
  though ediff-compare-files had worked successfully in the past.

  As I looked at the error message which I had to paste in with
  continuation lines because it would have been unreadably long, it
  occurred to me that perhaps this long line was the cause of the
  problem. In Windows 2000, the default environment setting for the
  TEMP variable is "%USERPROFILE%\Local Settings\Temp". Of course, the
  %USERPROFILE% is expanded to "C:\Documents and Settings\username",
  and three copies of this string (plus 3 different filenames) are
  appended to the diff3 command, thus creating a very long line.

  Here's how I resolved it:

  I manually created C:\TEMP (which is not in Windows 2K by default).
  I altered the TEMP variable to point to C:\TEMP. That's all I did;
  now everything works.

  My recommendation: I recommend that the ediff fuction calculate the
  length of the command line which will be sent to CMD.EXE, before the
  command is actually sent. If the length of the command line is
  greater than CMD.EXE allows, issue an error message suggesting that
  the user reduce the length of the TEMP environment variable. Thanks
  for listening.

--
Eric Pement - pemente[at]northpark.edu, eric.pement[at]moody.edu

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-03-25 17:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-25 17:11 ediff merge fails on Win2K - RESOLVED! Eric Pement

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).