Emacs mode glitch (keeps going back to interactor window)

Tagged:
Project:GNU Smalltalk
Component:Base classes
Category:bug
Priority:normal
Assigned:Unassigned
Status:fixed
Description

Hi,

I use the Emacs interactor (I am used to Lisp and SLIME), and there seems to be a problem: if I put the cursor after a chunk of code and hit C-c d, the code is sent to GNU Smalltalk (good!), but then the cursor switches to the gst-mode window, so I have to keep going back to the editing window all the time...

If some people prefer the current behavior, then maybe it could be configurable?

Thanks,
J.

Updates

#1 submitted by Paolo Bonzini on Tue, 03/04/2008 - 10:47
Attachment:gst-180.patch (906 bytes)

Can you try the attached patch -- I am not sure it works because I can't run GST interactor mode right now; but from the symptoms it should fix it.

#2 submitted by Paolo Bonzini on Tue, 03/04/2008 - 12:11
Status:active» fixed

Ok, I'm committing it (and also the one for node 179). This patch is also necessary.

diff --git a/main.c b/main.c
index e38d293..d770c3a 100644
--- a/main.c
+++ b/main.c
@@ -229,6 +229,7 @@ parse_args (int argc,
        case OPT_EMACS_MODE:
           stdin_prompt = EMACS_PROCESS_MARKER "st> ";
          gst_set_var (GST_VERBOSITY, 1);
+         flags |= GST_NO_TTY;
          break;
        case 'q':
        case 'Q':

User login