| 
									
										
										
										
											2011-11-03 15:02:06 -04:00
										 |  |  | USING: combinators.short-circuit editors kernel make | 
					
						
							|  |  |  | math.parser namespaces sequences system vocabs ;
 | 
					
						
							| 
									
										
										
										
											2007-09-20 18:09:08 -04:00
										 |  |  | IN: editors.emacs | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-10-31 14:53:07 -04:00
										 |  |  | SINGLETON: emacsclient | 
					
						
							|  |  |  | emacsclient editor-class set-global
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-02-20 13:15:26 -05:00
										 |  |  | SYMBOL: emacsclient-path | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | HOOK: default-emacsclient os ( -- path )
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | M: object default-emacsclient ( -- path ) "emacsclient" ;
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-10-31 14:53:07 -04:00
										 |  |  | M: emacsclient editor-command ( file line -- command )
 | 
					
						
							| 
									
										
										
										
											2007-09-20 18:09:08 -04:00
										 |  |  |     [ | 
					
						
							| 
									
										
										
										
											2009-04-20 20:11:07 -04:00
										 |  |  |         { | 
					
						
							|  |  |  |             [ emacsclient-path get-global ] | 
					
						
							|  |  |  |             [ default-emacsclient dup emacsclient-path set-global ] | 
					
						
							|  |  |  |         } 0|| , | 
					
						
							| 
									
										
										
										
											2009-02-20 13:25:55 -05:00
										 |  |  |         "--no-wait" , | 
					
						
							| 
									
										
										
										
											2009-02-20 13:15:26 -05:00
										 |  |  |         number>string "+" prepend , | 
					
						
							| 
									
										
										
										
											2008-01-24 02:50:40 -05:00
										 |  |  |         , | 
					
						
							| 
									
										
										
										
											2011-11-03 15:02:06 -04:00
										 |  |  |     ] { } make ;
 | 
					
						
							| 
									
										
										
										
											2007-09-20 18:09:08 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-02-23 11:35:42 -05:00
										 |  |  | os windows? [ "editors.emacs.windows" require ] when
 | 
					
						
							| 
									
										
										
										
											2011-11-03 15:02:06 -04:00
										 |  |  | 
 |