#3282: How to start an emacs editor within ghci asynchronously with :edit
filename.hs      :set editor emacs &   don't go
---------------------------------+------------------------------------------
    Reporter:  petersonx         |       Owner:              
        Type:  feature request   |      Status:  new         
    Priority:  lowest            |   Milestone:  7.6.2       
   Component:  GHCi              |     Version:  6.10.2      
    Keywords:                    |          Os:  Linux       
Architecture:  Unknown/Multiple  |     Failure:  None/Unknown
  Difficulty:  Unknown           |    Testcase:              
   Blockedby:                    |    Blocking:              
     Related:                    |  
---------------------------------+------------------------------------------
Changes (by mf825):

  * failure:  => None/Unknown


Comment:

 there is an easy work-around, at least for emacs users:

 start emacs like this in a separate terminal:
 $ emacs -e server-start

 then, in ghci:
 > :set editor emacsclient -n
 > :load Main.hs
 > :edit

 emacsclient should not block, so you can continue using ghci.  the only
 catch is that emacs will only open a new window if it is configured to do
 that (mine only has buffers), and only if Main.hs hasn't already been
 loaded into a buffer.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3282#comment:10>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to