emacs-devel
[Top][All Lists]
Advanced

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

Re: (vertical-motion -1) misbehaves in outline-minor-mode


From: Peter Heslin
Subject: Re: (vertical-motion -1) misbehaves in outline-minor-mode
Date: Fri, 22 Oct 2004 23:34:28 +0000 (UTC)
User-agent: slrn/0.9.8.0 (Linux)

On 2004-10-22, Peter Heslin <address@hidden> wrote:
> ... when viewing the headings of a file in outline-minor-mode after
>  running hide-body, (vertical-motion -1) puts point at the *end* of
>  the previous screen line.

Some experimentation shows that this bug only manifests itself when
the folded entries include trailing whitespace.  This would explain
why hideshow does not normally trigger this bug: it folds from the
start of a construct up to the delimiter at the end, and does not
include any whitespace afterwards.  On the other hand,
outline-minor-mode only knows that one entry has ended when the next
one starts, so it includes anything up to the start of the next
heading.

Thus, an elisp file like the following does not show the bug when
folded with hide-body:

(a
)
(b
)
(c
)

But this file does:

(a
)

(b
)

(c
)

Peter





reply via email to

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