emacs-devel
[Top][All Lists]
Advanced

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

move-beginning-of-line misbehaves on wrapped-line invisible text - recen


From: Ken Manheimer
Subject: move-beginning-of-line misbehaves on wrapped-line invisible text - recent cvs checkout
Date: Thu, 12 Jan 2006 19:12:39 -0500

i think i've found a bug in the behavior of move-beginning-of-line
when crossing invisible text at or beyond the right window edge.  i'm
not sure exactly what is meant by the function's description, so don't
know exactly what the right behavior is, but i know it behaves
inconsistently, which i can demonstrate.

move-beginning-of-line is supposed to move to the beginning of the
current _display_ line.  emphasis on "display" is because i'm not
quite clear what it means.

the attached elisp script sets up a buffer with text where you can
demonstrate the problem for your self (or demonstrate that there's
something weird about my setup or me in general, eg hallucinations:). 
the demonstration includes some description, but for those of you that
don't want to run it:

on lines where invisible text starts near (so the elipses hit) or
beyond the right margin, starting at the end of the line and doing a
move-beginning-of-line (often bound to \C-a), the cursor stops in the
invisible text.  if the place where the cursor stopped is at the right
margin, successive move-beginning-of-line doesn't advance.  if the
cursor stopped somewhere to the right, then the next
move-beginning-of-line will actually get to the real beginning of
line.

the inconsistency there is obvious, but is compounded by the fact that
move-beginning-of-line always moves to the real beginning if no
invisible text is present.

i have noticed in passing some problems with move-end-of-line, but
haven't pinpointed them and wouldn't swear that they exist.

ken
address@hidden

Attachment: overlay-prob.el
Description: Binary data


reply via email to

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