smalltalk-mode in non-class files: indent and colon err out “End of buffer”

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

smalltalk-mode in non-class files: indent and colon err out “End of buffer”

Garreau, Alexandre
Hi,

In my current smalltalk classes, we didn’t do any OOP yet (who knows
why ><), nor creating classes, etc. so we keeps writing raw stuff in
files, so I do with emacs because it’s a lot more convenient than
gst-browser/VisualGST, than don’t have emacs keybindings.

But, and I noticed that before, in org-mode source blocks (btw this one
really oughts to support smalltalk ^^), in some cases (dunno which yet),
from some point, whenever I hit TAB, or return (in now default
electric-indent-mode), or colon (“:”), I end up with nothing hapenning
and emacs erring on “End of buffer”.

This seems to be because `smalltalk-end-of-paren' (that’s called by
`smalltalk-indent-for-colon', which is called at every indent) goes at
the end of the buffer, then `smalltalk-narrow-to-method' (near its end)
goes forward-char by 1, and that triggers and error and stops
everything.

Is this because I’m not writing a class? because narrowing to a method
seems strange if there are no methods… or is it supposed to narrow to
the whole buffer if no method?

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

Test file forgotten attachment [Was: Re: smalltalk-mode in non-class files: indent and colon err out “End of buffer”]

Garreau, Alexandre
Sorry! I forgot to attach the file in which I was writing when finding
out about all this, so here I attach it.

Please don’t answer this message, so not to break the thread: answer the
former, so even the subject line is kept meaningful.


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

tp6.st (450 bytes) Download Attachment