diff options
author | Tak Kunihiro <tkk@misasa.okayama-u.ac.jp> | 2017-10-27 17:17:42 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2017-10-27 17:17:42 +0300 |
commit | 1bda71ec3b11eeb4d06c3da094a3cb21bac18d5c (patch) | |
tree | 9d6e5bfe1aae832d05796608a4e8469d72cd25ff /lisp/emacs-lisp/easy-mmode.el | |
parent | 196106d37d085da6d7bf4a36dfda70f7073b2bb8 (diff) | |
download | emacs-1bda71ec3b11eeb4d06c3da094a3cb21bac18d5c.tar.gz emacs-1bda71ec3b11eeb4d06c3da094a3cb21bac18d5c.tar.bz2 emacs-1bda71ec3b11eeb4d06c3da094a3cb21bac18d5c.zip |
Improve pixel-scroll-mode
Scroll vertically by number of pixels returned by
'frame-char-height' with or without horizontally scrolled.
(Bug#28922)
* lisp/pixel-scroll.el (pixel-resolution-fine-flag): When t, scroll
by number of pixels returned by 'frame-char-height'.
(pixel-scroll-up): Scroll by 'frame-char-height'. Fix algorithm to
move cursor to avoid unexpected jump.
(pixel-scroll-down): Scroll by 'frame-char-height'.
(pixel-bob-at-top-p): Consider number of pixels that is about to
scroll.
(pixel-posn-y-at-point): Consider existence of an overlay string.
Return nil when horizontally scrolled.
(pixel-point-at-top-p): Consider number of pixels that is about to
scroll. Use different algorithm when horizontally scrolled.
(pixel-point-at-bottom-p): Consider number of pixels that is about
to scroll. Return nil when horizontally scrolled.
(pixel-scroll-pixel-down): Move cursor when horizontally scrolled.
(pixel--whistlestop-line-up): Change cosmetics and move cursor when
horizontally scrolled.
(pixel-line-height): Call 'pixel-visual-line-height' instead of
'line-pixel-height'.
(pixel-visual-line-height): New function to return height in pixels
of text line where cursor is with or without horizontally scrolled,
considering response of display engine.
(pixel-visible-pos-in-window): New function to return position of
a char shown on text line where cursor is on screen with or without
horizontally scrolled.
Diffstat (limited to 'lisp/emacs-lisp/easy-mmode.el')
0 files changed, 0 insertions, 0 deletions