[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/scroll-on-drag 882dc94bb8 12/35: Cleanup: remove unused va
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/scroll-on-drag 882dc94bb8 12/35: Cleanup: remove unused variables |
Date: |
Thu, 7 Jul 2022 12:02:48 -0400 (EDT) |
branch: elpa/scroll-on-drag
commit 882dc94bb8be58c8d30cd6cdc394290e4dd71ec7
Author: Campbell Barton <ideasman42@gmail.com>
Commit: Campbell Barton <ideasman42@gmail.com>
Cleanup: remove unused variables
---
scroll-on-drag.el | 24 ++++++++++--------------
1 file changed, 10 insertions(+), 14 deletions(-)
diff --git a/scroll-on-drag.el b/scroll-on-drag.el
index 8cf82d4ee8..0a4e3d4ca7 100644
--- a/scroll-on-drag.el
+++ b/scroll-on-drag.el
@@ -1,4 +1,4 @@
-;;; scroll-on-drag.el --- Interactive scrolling. -*- lexical-binding: t -*-
+;;; scroll-on-drag.el --- Interactive scrolling -*- lexical-binding: t -*-
;; Copyright (C) 2019 Campbell Barton
@@ -184,7 +184,6 @@ Returns true when scrolling took place, otherwise nil."
;; Restoration position.
(restore-window-start (window-start))
(restore-point (point))
- (restore-point-use-scroll-offset nil)
;; X11 cursor.
(restore-x-pointer-shape (and (boundp 'x-pointer-shape) x-pointer-shape))
@@ -276,14 +275,12 @@ Returns true when scrolling took place, otherwise nil."
(if scroll-on-drag-smooth
;; Smooth-Scrolling.
- (let
- (
- (lines-remainder
- (scroll-on-drag--scroll-by-pixels
- this-window
- this-frame-char-height
- delta-scaled
- t)))
+ (progn
+ (scroll-on-drag--scroll-by-pixels
+ this-window
+ this-frame-char-height
+ delta-scaled
+ t)
(when (>= (point) point-of-last-line)
(set-window-vscroll this-window 0 t))
(setq do-draw t))
@@ -298,8 +295,8 @@ Returns true when scrolling took place, otherwise nil."
(unless (zerop lines)
(setq delta-px-accum
(- delta-px-accum (* lines this-frame-char-height)))
- (let ((lines-remainder
(scroll-on-drag--scroll-by-lines this-window lines t)))
- (setq do-draw t))))))
+ (scroll-on-drag--scroll-by-lines this-window lines t)
+ (setq do-draw t)))))
(when do-draw
(let
@@ -348,8 +345,7 @@ Returns true when scrolling took place, otherwise nil."
(let
((inhibit-redisplay nil))
(run-hooks 'scroll-on-drag-redisplay-hook)
- (redisplay))
- (setq restore-point-use-scroll-offset t))))))
+ (redisplay)))))))
;; Set arrow cursor (avoids annoying flicker on scroll).
(when (display-graphic-p)
- [nongnu] elpa/scroll-on-drag be3c43b74e 21/35: Fix restoring the point with mixed tabs/spaces, (continued)
- [nongnu] elpa/scroll-on-drag be3c43b74e 21/35: Fix restoring the point with mixed tabs/spaces, ELPA Syncer, 2022/07/07
- [nongnu] elpa/scroll-on-drag 3cd1e1801a 23/35: Update URL, ELPA Syncer, 2022/07/07
- [nongnu] elpa/scroll-on-drag 2fbd643ea9 16/35: Add .elisp-autofmt to enable auto-formatting, ELPA Syncer, 2022/07/07
- [nongnu] elpa/scroll-on-drag 01c14f4c02 35/35: Cleanup: quiet checkdoc warning, ELPA Syncer, 2022/07/07
- [nongnu] elpa/scroll-on-drag 0a362232a0 19/35: Run 'run-window-scroll-functions' after scrolling, ELPA Syncer, 2022/07/07
- [nongnu] elpa/scroll-on-drag 8962f5f8a7 30/35: Add scroll-on-drag-clamp option to prevent scrolling past point-max, ELPA Syncer, 2022/07/07
- [nongnu] elpa/scroll-on-drag 2d79a6d9c2 18/35: Cleanup: minor syntax changes, ELPA Syncer, 2022/07/07
- [nongnu] elpa/scroll-on-drag 97741be699 32/35: Remove override for timer-idle-list, ELPA Syncer, 2022/07/07
- [nongnu] elpa/scroll-on-drag f9379c56df 03/35: Call redisplay explicitly, ELPA Syncer, 2022/07/07
- [nongnu] elpa/scroll-on-drag 56ab51a329 07/35: Use zerop instead of comparing with zero, ELPA Syncer, 2022/07/07
- [nongnu] elpa/scroll-on-drag 882dc94bb8 12/35: Cleanup: remove unused variables,
ELPA Syncer <=
- [nongnu] elpa/scroll-on-drag cacadcd9bd 20/35: Cleanup: add sections, ELPA Syncer, 2022/07/07
- [nongnu] elpa/scroll-on-drag 271b4aa6b3 11/35: Add redisplay hook, ELPA Syncer, 2022/07/07
- [nongnu] elpa/scroll-on-drag 6d62a239a9 28/35: Cleanup: use defgroup, ELPA Syncer, 2022/07/07
- [nongnu] elpa/scroll-on-drag 6db1380826 25/35: Cleanup: formatting, ELPA Syncer, 2022/07/07
- [nongnu] elpa/scroll-on-drag ba2c1a598e 17/35: Fix for idle timers running during scroll, ELPA Syncer, 2022/07/07
- [nongnu] elpa/scroll-on-drag 157637ba6b 26/35: Remove cursor setting code (resolving #1), ELPA Syncer, 2022/07/07