From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Peter Heslin Newsgroups: gmane.emacs.devel Subject: (vertical-motion -1) misbehaves in outline-minor-mode Date: Fri, 22 Oct 2004 22:44:36 +0000 (UTC) Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1098485129 22924 80.91.229.6 (22 Oct 2004 22:45:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 22 Oct 2004 22:45:29 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 23 00:45:20 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CL89w-0004MV-00 for ; Sat, 23 Oct 2004 00:45:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CL8HS-0006Ne-2v for ged-emacs-devel@m.gmane.org; Fri, 22 Oct 2004 18:53:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CL8HK-0006NY-4N for emacs-devel@gnu.org; Fri, 22 Oct 2004 18:52:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CL8HJ-0006NM-L0 for emacs-devel@gnu.org; Fri, 22 Oct 2004 18:52:57 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CL8HJ-0006NJ-DI for emacs-devel@gnu.org; Fri, 22 Oct 2004 18:52:57 -0400 Original-Received: from [80.91.229.2] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CL89I-0008N4-Go for emacs-devel@gnu.org; Fri, 22 Oct 2004 18:44:40 -0400 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1CL89H-0002j9-00 for ; Sat, 23 Oct 2004 00:44:39 +0200 Original-Received: from 213-152-32-235.dsl.eclipse.net.uk ([213.152.32.235]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 23 Oct 2004 00:44:39 +0200 Original-Received: from usenet by 213-152-32-235.dsl.eclipse.net.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 23 Oct 2004 00:44:39 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 25 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 213-152-32-235.dsl.eclipse.net.uk User-Agent: slrn/0.9.8.0 (Linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:28757 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:28757 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