emacs-devel
[Top][All Lists]
Advanced

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

Re: Patch for beginning-of-visual-line and end-of-visual-line


From: Justin Burkett
Subject: Re: Patch for beginning-of-visual-line and end-of-visual-line
Date: Fri, 11 Aug 2017 17:10:23 -0400

> Did you try this in "emacs -Q"?  If not, some of your customizations
> could be the reason for the behavior you see.

Yes, I just tried it on a debian build of 25.1.1 as well. Here are
reproduction steps

$ emacs -Q
C-x b *test* RET
asdf
M-: (beginning-of-visual-line 2)

point ends up at the beginning of the buffer for me. Note this doesn't
happen with a final newline in the buffer.

Justin


On Fri, Aug 11, 2017 at 2:41 PM, Eli Zaretskii <address@hidden> wrote:
>> From: Justin Burkett <address@hidden>
>> Date: Fri, 11 Aug 2017 13:24:54 -0400
>>
>> I found (what seems like) a bug in these two functions. The docstrings
>> advertise that they should stop if they reach the beginning or end of
>> buffer and they don't. As a test cast, try
>>
>> (beginning-of-visual-line 2)
>>
>> in a buffer with one line. According to the docstring, point should be
>> at the end of the buffer, but it ends up at the beginning for me in
>> Emacs 25.2.1.
>
> I cannot reproduce what you see.  I created a buffer with one line,
> and (beginning-of-visual-line 2) ends up at EOB for me, in both Emacs
> 25.2 and the current master.
>
> Did you try this in "emacs -Q"?  If not, some of your customizations
> could be the reason for the behavior you see.
>
> Or maybe you should describe your recipe in more detail.



reply via email to

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