unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Peter Heslin <usenet@heslin.eclipse.co.uk>
Subject: Re: (vertical-motion -1) misbehaves in outline-minor-mode
Date: Fri, 22 Oct 2004 23:34:28 +0000 (UTC)	[thread overview]
Message-ID: <clc5e4$s1k$1@sea.gmane.org> (raw)
In-Reply-To: clc2gk$m7h$1@sea.gmane.org

On 2004-10-22, Peter Heslin <usenet@heslin.eclipse.co.uk> 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	other threads:[~2004-10-22 23:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-22 22:44 (vertical-motion -1) misbehaves in outline-minor-mode Peter Heslin
2004-10-22 23:34 ` Peter Heslin [this message]
2004-10-25  0:35   ` Peter Heslin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='clc5e4$s1k$1@sea.gmane.org' \
    --to=usenet@heslin.eclipse.co.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).