bug-gnu-emacs
[Top][All Lists]
Advanced

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

Re: 21.1: mh-e folder mode displayed incorrectly


From: Peter S Galbraith
Subject: Re: 21.1: mh-e folder mode displayed incorrectly
Date: Thu, 25 Oct 2001 12:40:30 -0400

Gerd Moellmann wrote:

> Peter S Galbraith <GalbraithP@dfo-mpo.gc.ca> writes:
> 
> >  In a 3-line window (4 lines when counting the status line),
> >  running (recenter '(list 4)) puts the cursor on the second line
> >  (the middle of the 3 lines) when executed in emacs20.  This is
> >  the intended behaviour in the mh-folder window.
> > 
> >  The same command done in emacs21 does not consistently place the
> >  cursor on the second line.  In my tests, it either goes to the
> >  first line or the last line, depending on whether the 3-line
> >  window is on top or bottom.  Note that it works correctly in a
> >  non-window emacs so the bug is in the
> >   if (FRAME_WINDOW_P (XFRAME (w->frame)))
> >  part of window.c's DEFUN("recenter").
> > 
> > In summary, I think it's an emacs21 bug in (recenter) and not an
> > mh-e bug.
> 
> Could please check with this patch, Peter?

Strangely, it works when mh-summary-height is set to 4 (e.g. 3
buffer lines plus the status line; recenter puts the cursor on
the 2nd of the 3 lines), but it doesn't really work in a larger
buffer.

For example, when mh-summary-height is set to 6 or 8 or 10, the
recenter puts the cursor one line too high (whereas pre-patched
emacs21.1 would put it one line too low).  So your patches
overcompensates a little.  Will my font size affect the result?
Or was that accounted for?  (I'm using 9x15)

Hope this helps,
Peter



reply via email to

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