aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Kangas2021-04-03 04:25:59 +0200
committerStefan Kangas2021-04-03 04:25:59 +0200
commitd73229c48ec2d18e5ee67a9739a9a4e7d424fccc (patch)
tree5cff37ad94ded0b9006e726b1f21c62fda2c0a81
parentcd5dfa086d204c01791bfdcdf9fe1215c4bf1e42 (diff)
downloademacs-d73229c48ec2d18e5ee67a9739a9a4e7d424fccc.tar.gz
emacs-d73229c48ec2d18e5ee67a9739a9a4e7d424fccc.zip
* lisp/pixel-scroll.el: Use lexical-binding.
-rw-r--r--lisp/pixel-scroll.el8
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))