<<< Date Index >>>     <<< Thread Index >>>

Re: Change in behavior <current-middle> (was: [2005-02-13] CVS repository changes)



Re: René Clerc in <20050214230851.GK589@xxxxxxxx>
> >     * globals.h, init.h, menu.c: Christoph Berg's menu_context,
> >     and a version of menu_move_off where that's not optional,
> >     but where mutt will just try to avoid moving off the bottom.
> >     Complain to mutt-dev if you want this to be optional.
> 
> (assuming this complaint has indeed to do with the above patch:)

It has.

> Previously, <current-middle> would reposition the current message in
> the midle of the index, even if it was the last message - it would
> complement the index with blank lines.  I liked this behavior very
> much, since it is intuitive and, IMO, correct.

My original version of the patch had "menu_move_off" configurable,
defaulting to "yes", i.e. the previous mutt behaviour. Thomas decided
that he fixed it to "no", since that would make the index symmetric,
i.e. not move off at neither end. It's also the way I had been using
the patch.

I don't use <current-middle>, but what I noticed in my mutt usage was
the following: without menu_context > 0, I would constantly hit
<space> to see if there were new messages below the indicator if it
was at the bottom of the screen (iirc it always was there). With
menu_context > 0, the index automatically scrolls up upon arrival.

So, if you used <current-middle> so far to get the indicator off the
bottom to check for new mail, you might want to try menu_context
instead. I could be wrong in your case, but in mine it really worked :-)

> Haven't looked at the source yet, shouldn't be too hard to make
> optional, but first like to hear other people's opinion on this.

You just have to include the code for menu_move_off. If desired, I'll
update the remaining part of the patch for CVS.

Christoph
-- 
cb@xxxxxxxx | http://www.df7cb.de/

Attachment: signature.asc
Description: Digital signature