Update emacs for editors protocol.

db4
Doug Coleman 2011-11-03 12:02:06 -07:00
parent 6bb46a3f1e
commit 2d12fea828
1 changed files with 4 additions and 8 deletions

View 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