[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#9246: Scrolling bug with word-wrap in emacs -nw
From: |
Eli Zaretskii |
Subject: |
bug#9246: Scrolling bug with word-wrap in emacs -nw |
Date: |
Fri, 30 Dec 2011 11:34:23 +0200 |
> From: Antoine Levitt <antoine.levitt@gmail.com>
> Cc: riccardi.thomas@gmail.com, 9246@debbugs.gnu.org
> Date: Thu, 29 Dec 2011 23:45:25 +0100
>
> >> So, should erc-scrollbottom be changed?
> >
> > Definitely. It shouldn't use window-scroll-functions.
>
> So is there a hook it could use?
How about post-command-hook?
> Incidentally, this warning doesn't get displayed on C-h v, it might be a
> good idea to move it.
Patches are welcome.
> >> Actually, this is a behavior I'd like for emacs as a whole, to make it
> >> behave more like other editors that never display anything past the end
> >> of text. Is there any way to do it, some other variable one could set in
> >> addition to scroll-conservatively?
> >
> > Maybe, I don't know.
>
> If you don't know, it probably means there isn't ;)
Don't count on that ;-)
> I tried to hack something together, but I couldn't make it work, because
> I couldn't find an appropriate way to express "if the window is
> displaying stuff past the end of buffer" (using window-end and
> buffer-end does not work, because window-end can never be past
> buffer-end).
How about this strategy:
go to window-end
call posn-at-point
compare the row returned by posn-at-point with window-height
- bug#9246: Scrolling bug with word-wrap in emacs -nw, Eli Zaretskii, 2011/12/24
- bug#9246: Scrolling bug with word-wrap in emacs -nw, Antoine Levitt, 2011/12/24
- bug#9246: Scrolling bug with word-wrap in emacs -nw, Eli Zaretskii, 2011/12/24
- bug#9246: Scrolling bug with word-wrap in emacs -nw, Antoine Levitt, 2011/12/24
- bug#9246: Scrolling bug with word-wrap in emacs -nw, Eli Zaretskii, 2011/12/24
- bug#9246: Scrolling bug with word-wrap in emacs -nw, Antoine Levitt, 2011/12/24
- bug#9246: Scrolling bug with word-wrap in emacs -nw, Eli Zaretskii, 2011/12/24
- bug#9246: Scrolling bug with word-wrap in emacs -nw, Antoine Levitt, 2011/12/29
- bug#9246: Scrolling bug with word-wrap in emacs -nw,
Eli Zaretskii <=
- bug#9246: Scrolling bug with word-wrap in emacs -nw, Antoine Levitt, 2011/12/30
- bug#9246: Scrolling bug with word-wrap in emacs -nw, Eli Zaretskii, 2011/12/30
- bug#9246: Scrolling bug with word-wrap in emacs -nw, Antoine Levitt, 2011/12/30
- bug#9246: Scrolling bug with word-wrap in emacs -nw, Eli Zaretskii, 2011/12/30
- bug#9246: Scrolling bug with word-wrap in emacs -nw, Stefan Monnier, 2011/12/31
- bug#9246: Scrolling bug with word-wrap in emacs -nw, Richard Stallman, 2011/12/31
- bug#9246: Scrolling bug with word-wrap in emacs -nw, Eli Zaretskii, 2011/12/31
- bug#9246: Scrolling bug with word-wrap in emacs -nw, Antoine Levitt, 2011/12/31
- bug#9246: Scrolling bug with word-wrap in emacs -nw, Eli Zaretskii, 2011/12/31