GNU bug report logs -
#42841
28.0.50; [ruby-mode] ruby-{beginning,end}-of-block doesn't work as is exepected if arguments of method is divided into multi line
Previous Next
Reported by: Yasuhiro KIMURA <yasu <at> utahime.org>
Date: Thu, 13 Aug 2020 07:18:02 UTC
Severity: normal
Found in version 28.0.50
Fixed in version 28.1
Done: Dmitry Gutov <dgutov <at> yandex.ru>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Hi!
On 13.08.2020 10:17, Yasuhiro KIMURA wrote:
> ruby-{beginning,end}-of-block doesn't work as is exepected if
> arguments of method is divided into multi line. Following is a sample
> code to reproduce the issue.
>
> ----------------------------------------------------------------------
> 0001: class A
> 0002: def foo
> 0003: puts("aaa", "bbb")
> 0004: end
> 0005: end
> 0006:
> 0007: class B
> 0008: def foo
> 0009: puts("aaa",
> 0010: "bbb")
> 0011: end
> 0012: end
> ----------------------------------------------------------------------
>
> At first let me assume point is on line 1 column 1. If I type 'C-M-n'
> in this situmation, then point moves to line 5 column 1. And if I type
> 'C-M-p' then point moves back to line 1 column 1. This is just
> expected behavior.
>
> Next let me assume point is on line 7 column 1 and I type 'C-M-n'. The
> expected behavior is that point moves to line 12 column 1. But what
> really happens is that point moves to line 10 column 1 and following
> error message is displayed in minibuffer.
I can't seem to reproduce this. Even after some intensive testing.
> Wrong type argument: number-or-marker-p, nil
Could you perhaps provide a backtrace?
Type M-x toggle-debug-on-error, then trigger the error again.
This bug report was last modified 4 years and 311 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.