]> gitweb.factorcode.org Git - factor.git/commitdiff
Update emacs for editors protocol.
authorDoug Coleman <doug.coleman@gmail.com>
Thu, 3 Nov 2011 19:02:06 +0000 (12:02 -0700)
committerDoug Coleman <doug.coleman@gmail.com>
Thu, 3 Nov 2011 19:04:02 +0000 (12:04 -0700)
basis/editors/emacs/emacs.factor

index fca81df502085a63207dfbc5d7f449291dd3f715..683ddcad25ad8448b6a118df2b73c8c9ebe15b26 100644 (file)
@@ -1,6 +1,5 @@
-USING: definitions io.launcher kernel parser words sequences math
-math.parser namespaces editors make system combinators.short-circuit
-fry threads vocabs ;
+USING: combinators.short-circuit editors kernel make
+math.parser namespaces sequences system vocabs ;
 IN: editors.emacs
 
 SINGLETON: emacsclient
@@ -21,10 +20,7 @@ M: emacsclient editor-command ( file line -- command )
         "--no-wait" ,
         number>string "+" prepend ,
         ,
-    ] { } make
-    os windows? [ run-detached drop ] [ try-process ] if ;
-
-: emacs ( word -- )
-    where first2 emacsclient ;
+    ] { } make ;
 
 os windows? [ "editors.emacs.windows" require ] when
+