[p4] problem using emacs as P4EDITOR under win2k and tcsh or cmd shell
David Birkhead
daveb at data-pipes.com
Mon Jan 14 08:08:45 PST 2002
There are actually 2 commands for running emacs, 'emacs' and 'runemacs'.
If you run 'runemacs' from a command prompt will see that it returns
immediately, while running 'emacs' does not.
Try using the 'emacs' command. I believe that will solve your problems.
-Daveb
At 03:30 PM 1/14/2002 +0000, Simon Green wrote:
> >>>>> Paul Mitchell <pmitchel at ati.com> writes:
>
> > We are seeing the problem described in Perforce's technote 17
> > (http://www.perforce.com/perforce/technotes/note017.html). Quoting from
> > that tech note:
>
> > On NT 4.0, Perforce sometimes uses the DOS shell (cmd.exe) to start
> > programs designated by the user's P4EDITOR or P4DIFF environment variable.
> > Unfortunately, the DOS shell is smart enough to know that when a Windows
> > command is run, it doesn't need to wait for the command to complete. This
> > makes Perforce think the command has finished, and Perforce then continues
> > processing, often deleting the temporary files that the editor or diff
> were
> > run on. This yields errors about temp files not being found and other
> weird
> > results.
>
> > The workarounds that are described in the note do not work under tcsh
> or cmd
> > shell. Can anyone point me toward a fix for this?
>
>Untested:
>Can you wrap the command you really want to run in something that doesn't look
>like a windows program (ie a .cmd or .bat script)?
>
>If that doesn't work and you're desperate, you could always put a 'pause'
>command at the end of the wrapper, to force the shell to wait. Ugh.
>
>--Simon
>
>_______________________________________________
>perforce-user mailing list - perforce-user at perforce.com
>http://maillist.perforce.com/mailman/listinfo/perforce-user
--------------------------------------------------------------------
David Birkhead Voice: (510) 914-0438
Perforce Consulting Partner Fax: (510) 530-2699
Piccolo Engineering Email: daveb at piccoloeng.com
Web: http://www.piccoloeng.com
--------------------------------------------------------------------
More information about the perforce-user
mailing list