List Info

Thread: Interactor and the new syntax




Interactor and the new syntax
country flaguser name
Brazil
2008-03-03 08:14:53
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
help-smalltalkgnu.org

http://lists.gnu.org/mailman/listinfo/help-smalltalk

Re: Interactor and the new syntax
country flaguser name
Italy
2008-03-04 00:08:19
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
help-smalltalkgnu.org

http://lists.gnu.org/mailman/listinfo/help-smalltalk

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )