GNU bug report logs - #10902
24.0.93; Point displayed after end of buffer with scroll-margin

Previous Next

Package: emacs;

Reported by: Johan Bockgård <bojohan <at> gnu.org>

Date: Mon, 27 Feb 2012 19:22:01 UTC

Severity: normal

Found in version 24.0.93

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Johan Bockgård <bojohan <at> gnu.org>
Subject: bug#10902: closed (Re: bug#10902: 24.0.93; Point displayed after
 end of buffer with scroll-margin)
Date: Sat, 03 Mar 2012 19:09:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#10902: 24.0.93; Point displayed after end of buffer with scroll-margin

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 10902 <at> debbugs.gnu.org.

-- 
10902: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10902
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Eli Zaretskii <eliz <at> gnu.org>
To: Johan Bockgård <bojohan <at> gnu.org>
Cc: 10902-done <at> debbugs.gnu.org
Subject: Re: bug#10902: 24.0.93;
	Point displayed after end of buffer with scroll-margin
Date: Sat, 03 Mar 2012 21:06:13 +0200
> From: Johan Bockgård <bojohan <at> gnu.org>
> Cc: 10902 <at> debbugs.gnu.org
> Date: Sat, 03 Mar 2012 18:28:41 +0100
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> >> > I will take a look soon.  Thanks for reporting this.
> >> >
> >> > P.S.  Is there a real-life use-case behind this?  I mean, setting a
> >> > scroll margin that is wider than the window sounds... how should I put
> >> > it... weird, no?
> >> 
> >> The precise value of scroll-margin is not important. It happens for any
> >> value > 1.
> >
> > But only if the window height is 2 lines more than the buffer line
> > count, according to my testing.
> 
> Mine too.
> 
> > Anyway, I think I fixed this (in revision 107481 on the trunk).
> > Please see if there are any leftovers after that fix.
> 
> It fixes the problem for me. Thanks.

Thanks, I'm closing the bug.


[Message part 3 (message/rfc822, inline)]
From: Johan Bockgård <bojohan <at> gnu.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.0.93; Point displayed after end of buffer with scroll-margin
Date: Mon, 27 Feb 2012 20:18:09 +0100
emacs -Q

Eval

    (progn
      (pop-to-buffer (get-buffer-create "*foo*"))
      (dotimes (n 5) (insert "x\n"))
      (goto-char (point-min))
      (setq scroll-margin 100)
      (set-window-text-height nil (+ 5 2)))

Press `M->'

  => Point is displayed one line below the end of the buffer.



This bug report was last modified 13 years and 118 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.