[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re : [Help-smalltalk] smalltalk-mode typo
From: |
Mathieu Suen |
Subject: |
Re : [Help-smalltalk] smalltalk-mode typo |
Date: |
Tue, 11 Jan 2011 08:14:25 +0000 (GMT) |
Hi Paolo,
> De : Paolo Bonzini <address@hidden>
>
> On 01/10/2011 09:32 PM, Denis Washington wrote:
> >> Let me know if that fix the issue.
> >
> > It does. So it's no typo after all... thanks for pointing this out.
>
> Yeah, sorry for applying the patch too fast. I'm changing instead
>smalltalk-mode.el to use save-excursion. Since the original-point keyword
>argument is only used to restore it on exit, and it always does this, you can
>replace
>
> (if ...
> (progn (goto-char original-point) (point))
> (prog1 (point) (goto-char original-point)))
>
> with
>
> (or (save-excursion
> (if ...
> nil
> (point)))
> (point)
Yes that seems more reasonable.
For a shortcut I propose:
C-c f (forward)
C-c b (backward)
>
> (This seems more complicated, but the "if" is inside its own function so
> it's
>not bad).
>
> Can anybody suggest a shortcut for smalltalk-goto-{previous,next}-keyword?
> It
>seems relatively useful even in day-to-day use.
>
> Paolo
>