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

According to the doc-string for vertical-motion, (vertical-motion 1)
should put you at the start of the next screen line and
(vertical-motion -1) should put you at the start of the previous
screen line.

It does, except that, 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.

I use screen-lines.el and scroll-in-place.el, both of which use
vertical-motion to scroll, and both of which behave weirdly when
scrolling upwards in buffers where hide-body has been used.  That's
what led me to find this bug.

To reproduce it: on my month-old CVS checkout, I ran emacs -q, then
find-library to find any biggish elisp file, then M-x
outline-minor-mode and M-x hide-body.  I put point somewhere in the
middle of the folded defuns, and compared the behavior of
(vertical-motion 1) and (vertical-motion -1)

I tried to see if the same bug appeared when hiding the defun forms
with hs-hide-all, but (vertical-motion -1) seems to work just fine
with hideshow.

Peter

             reply	other threads:[~2004-10-22 22:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-22 22:44 Peter Heslin [this message]
2004-10-22 23:34 ` (vertical-motion -1) misbehaves in outline-minor-mode Peter Heslin
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='clc2gk$m7h$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).