[darcs-users] New long comments behavior under w2k doesn't work with my editor

Eric Y. Kow eric.kow at gmail.com
Mon Jul 31 19:28:48 UTC 2006

On Wed, Jul 12, 2006 at 14:46:40 -0500, Richard A. Smith wrote:
> Under 1.0.8 I do not get a duplicate copy of ultraedit but rather it 
> opens up in my existing editor process as a new file.  But the moment 
> the file opens darcs shows "Finished recording patch 'foo'" and I get an 
> empty long comment.

Could you try something for me, please?

I'm attaching a small program that runs your editor, and then asks you
to hit return to continue.

Could you:
1. edit the file so that the editor= line has ultraedit in it instead
   of gvim
2. compile it, say ghc runAndWait.hs -o runAndWait
3. set DARCS_EDITOR to runAndWait

What I expect to happen is that, now, darcs waits for you to press
enter, and that in the meantime, you can edit your log in peace.  I just
wanted to see if this is similar to the stuff we do when running an
external diff/merge program.



P.S. if you feel Haskell is overkill for this, of course, write a 
     batch file or something :-)

Eric Kow                     http://www.loria.fr/~kow
PGP Key ID: 08AC04F9         Merci de corriger mon français.
-------------- next part --------------
{-# OPTIONS_GHC -cpp #-}

module Main where

import System (getArgs)
import System.IO (hFlush, stdout)
import System.Process (runCommand)


main = 
 do args <- getArgs
    runCommand $ unwords (editor : args)
    putStr "Hit return to move on..."
    hFlush stdout
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://lists.osuosl.org/pipermail/darcs-users/attachments/20060731/d460031b/attachment.pgp 

More information about the darcs-users mailing list