Improve scrolling of windows whose font is different from frame's default.
authorEli Zaretskii <eliz@gnu.org>
Sun, 7 Jul 2013 15:49:03 +0000 (18:49 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sun, 7 Jul 2013 15:49:03 +0000 (18:49 +0300)
commit9aff9b3864085addb02b699f9648e547a8c00e54
tree14a6e4e5ec433be1dc4270a2f33ddbba9083e9b2
parent0da857ddacb50219c6988bb68457e70dbe555826
Improve scrolling of windows whose font is different from frame's default.

 lisp/simple.el (default-font-height, window-screen-lines): New
 functions.
 (line-move, line-move-partial): Use them instead of
 frame-char-height and window-text-height.  This makes scrolling
 text smoother when the buffer's default face uses a font that is
 different from the frame's default font.
lisp/ChangeLog
lisp/simple.el