help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-smalltalk] smalltalk-mode in non-class files: indent and colon err


From: Garreau\, Alexandre
Subject: [Help-smalltalk] smalltalk-mode in non-class files: indent and colon err out “End of buffer”
Date: Tue, 23 Oct 2018 17:07:18 +0200
User-agent: Gnus (5.13), GNU Emacs 25.1.1 (i686-pc-linux-gnu)

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?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]