Remove dead code

db4
Slava Pestov 2008-06-14 04:21:52 -05:00
parent bd7bee867b
commit 5b4809e49d
3 changed files with 2 additions and 10 deletions

View File

@ -8,8 +8,6 @@ SINGLETON: gvim
M: gvim vim-command ( file line -- string ) M: gvim vim-command ( file line -- string )
[ gvim-path , swap , "+" swap number>string append , ] { } make ; [ gvim-path , swap , "+" swap number>string append , ] { } make ;
t vim-detach set-global ! don't block the ui
gvim vim-editor set-global gvim vim-editor set-global
{ {

View File

@ -11,7 +11,5 @@ $nl
"USE: vim" "USE: vim"
"\"c:\\\\program files\\\\vim\\\\vim70\\\\gvim\" vim-path set-global" "\"c:\\\\program files\\\\vim\\\\vim70\\\\gvim\" vim-path set-global"
} }
"On Unix, you may omit the last line if " { $snippet "\"vim\"" } " is in your " { $snippet "$PATH" } "." "On Unix, you may omit the last line if " { $snippet "\"vim\"" } " is in your " { $snippet "$PATH" } "." ;
$nl
"If you are running the terminal version of Vim, you want it to block Factor until exiting, but for GVim the opposite is desired, so that one can work in Factor and GVim concurrently. The " { $link vim-detach } " global variable can be set to " { $link t } " to detach the Vim process. The default is " { $link f } "." ;

View File

@ -3,7 +3,6 @@ namespaces parser prettyprint sequences editors accessors ;
IN: editors.vim IN: editors.vim
SYMBOL: vim-path SYMBOL: vim-path
SYMBOL: vim-detach
SYMBOL: vim-editor SYMBOL: vim-editor
HOOK: vim-command vim-editor ( file line -- array ) HOOK: vim-command vim-editor ( file line -- array )
@ -16,10 +15,7 @@ M: vim vim-command
] { } make ; ] { } make ;
: vim-location ( file line -- ) : vim-location ( file line -- )
vim-command vim-command try-process ;
<process> swap >>command
vim-detach get-global [ t >>detached ] when
try-process ;
"vim" vim-path set-global "vim" vim-path set-global
[ vim-location ] edit-hook set-global [ vim-location ] edit-hook set-global