Interactor and the new syntax

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Interactor and the new syntax

Jeronimo Pellegrini-5
Hello.

I am using GNU Smalltalk 3.0.1 with the Emacs interactor, but I am having
some problems.

The first is that the key "!" now seems to be bound to a function
"smalltalk-bang", which seems to jump to the end of the chass
definition. I used that in the past to define methods, like

!MyClass methodsFor: 'stuff'!
   oneMethod | parameter otherParameter |
       "Method implementation goes here" !
!

I suppose this will not work anymore because of the new class definition
syntax? If that is the case, then is there some way I can edit my old
files without having to convert them all to the new sytnax?

BTW, the ne syntax confused me a bit.
I suppose the new syntax is the one used in the tutorial in the manual?
Like:

Object subclass: MyClass [
    | var1 var2 |
    oneMethod [
        "..."
    ]
]

Or,

Object subclass: #MyClass.
MyClass instanceVariableNames: 'var1 var2'.

MyClass class extend [
    oneMethod [
        "..."
    ]
]

Right?

Also, every time I hit C-c d to send something through gst the focus
goes to the gst-mode buffer, so I have to keep hitting C-x o to
go back to the editing buffer. Is there some way to configure
gst-mode/smalltalk-mode so I can stay in the edit buffer even
after performing a doIt?


Thank you very much,
J.



_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: Interactor and the new syntax

Paolo Bonzini-2
Jeronimo Pellegrini wrote:

> Hello.
>
> I am using GNU Smalltalk 3.0.1 with the Emacs interactor, but I am having
> some problems.
>
> The first is that the key "!" now seems to be bound to a function
> "smalltalk-bang", which seems to jump to the end of the chass
> definition. I used that in the past to define methods, like
>
> !MyClass methodsFor: 'stuff'!
>    oneMethod | parameter otherParameter |
>        "Method implementation goes here" !
> !

It should go to the end of the method definition.  But indeed I didn't
try the new smalltalk-mode on the old syntax.  Can you report a bug so
that it does not get lost?

> Also, every time I hit C-c d to send something through gst the focus
> goes to the gst-mode buffer, so I have to keep hitting C-x o to
> go back to the editing buffer. Is there some way to configure
> gst-mode/smalltalk-mode so I can stay in the edit buffer even
> after performing a doIt?

This is also a bug.

Paolo


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk