diff options
| -rw-r--r-- | lisp/pixel-scroll.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/pixel-scroll.el b/lisp/pixel-scroll.el index 68dc0fb94b3..78b8259b395 100644 --- a/lisp/pixel-scroll.el +++ b/lisp/pixel-scroll.el | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | ;;; pixel-scroll.el --- Scroll a line smoothly | 1 | ;;; pixel-scroll.el --- Scroll a line smoothly -*- lexical-binding: t -*- |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 2017-2021 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2017-2021 Free Software Foundation, Inc. |
| 4 | ;; Author: Tak Kunihiro <tkk@misasa.okayama-u.ac.jp> | 4 | ;; Author: Tak Kunihiro <tkk@misasa.okayama-u.ac.jp> |
| @@ -124,7 +124,7 @@ This is an alternative of `scroll-up'. Scope moves downward." | |||
| 124 | (or arg (setq arg 1)) | 124 | (or arg (setq arg 1)) |
| 125 | (if (pixel-scroll-in-rush-p) | 125 | (if (pixel-scroll-in-rush-p) |
| 126 | (scroll-up arg) | 126 | (scroll-up arg) |
| 127 | (dotimes (ii arg) ; move scope downward | 127 | (dotimes (_ arg) ; move scope downward |
| 128 | (let ((amt (if pixel-resolution-fine-flag | 128 | (let ((amt (if pixel-resolution-fine-flag |
| 129 | (if (integerp pixel-resolution-fine-flag) | 129 | (if (integerp pixel-resolution-fine-flag) |
| 130 | pixel-resolution-fine-flag | 130 | pixel-resolution-fine-flag |
| @@ -145,7 +145,7 @@ This is and alternative of `scroll-down'. Scope moves upward." | |||
| 145 | (or arg (setq arg 1)) | 145 | (or arg (setq arg 1)) |
| 146 | (if (pixel-scroll-in-rush-p) | 146 | (if (pixel-scroll-in-rush-p) |
| 147 | (scroll-down arg) | 147 | (scroll-down arg) |
| 148 | (dotimes (ii arg) | 148 | (dotimes (_ arg) |
| 149 | (let ((amt (if pixel-resolution-fine-flag | 149 | (let ((amt (if pixel-resolution-fine-flag |
| 150 | (if (integerp pixel-resolution-fine-flag) | 150 | (if (integerp pixel-resolution-fine-flag) |
| 151 | pixel-resolution-fine-flag | 151 | pixel-resolution-fine-flag |
| @@ -244,7 +244,7 @@ that was scrolled." | |||
| 244 | (dst (* line height)) ; goal @25 @25 @92 | 244 | (dst (* line height)) ; goal @25 @25 @92 |
| 245 | (delta (- dst src))) ; pixels to be scrolled 25 17 4 | 245 | (delta (- dst src))) ; pixels to be scrolled 25 17 4 |
| 246 | (pixel--whistlestop-pixel-up (1- delta)) ; until one less @24 @24 @91 | 246 | (pixel--whistlestop-pixel-up (1- delta)) ; until one less @24 @24 @91 |
| 247 | (dotimes (ii line) | 247 | (dotimes (_ line) |
| 248 | ;; On horizontal scrolling, move cursor. | 248 | ;; On horizontal scrolling, move cursor. |
| 249 | (when (> (window-hscroll) 0) | 249 | (when (> (window-hscroll) 0) |
| 250 | (vertical-motion 1)) | 250 | (vertical-motion 1)) |