]> gitweb.factorcode.org Git - factor.git/commitdiff
keep the old emacs behavior on unix systems
authorDoug Coleman <doug.coleman@gmail.com>
Fri, 20 Feb 2009 18:32:07 +0000 (12:32 -0600)
committerDoug Coleman <doug.coleman@gmail.com>
Fri, 20 Feb 2009 18:32:07 +0000 (12:32 -0600)
basis/editors/emacs/emacs.factor

index 0aeb7bb467f4218ea3c3c20100ac85d111922a0f..fa717a70fa03f39885da19c4c30c7b8f8bd004f0 100644 (file)
@@ -15,7 +15,8 @@ M: object default-emacsclient ( -- path ) "emacsclient" ;
         "--no-wait" ,
         number>string "+" prepend ,
         ,
-    ] { } make run-detached drop ;
+    ] { } make
+    os windows? [ run-detached drop ] [ try-process ] if ;
 
 : emacs ( word -- )
     where first2 emacsclient ;