[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/scroll-on-drag f9379c56df 03/35: Call redisplay explicitly
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/scroll-on-drag f9379c56df 03/35: Call redisplay explicitly |
Date: |
Thu, 7 Jul 2022 12:02:43 -0400 (EDT) |
branch: elpa/scroll-on-drag
commit f9379c56dfa10dae17837509a59db7452d83585a
Author: Campbell Barton <ideasman42@gmail.com>
Commit: Campbell Barton <ideasman42@gmail.com>
Call redisplay explicitly
Ensure re-display is performed after all necessary changes are made
---
scroll-on-drag.el | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/scroll-on-drag.el b/scroll-on-drag.el
index 531a794a7c..56af588e18 100644
--- a/scroll-on-drag.el
+++ b/scroll-on-drag.el
@@ -73,6 +73,8 @@
(
;; Don't run unnecessary logic when scrolling.
(inhibit-point-motion-hooks t)
+ ;; Only draw explicitly once all actions have been done.
+ (inhibit-redisplay t)
(has-scrolled nil)
(scroll-timer nil)
@@ -234,6 +236,7 @@
(lambda (self-fn)
(funcall scroll-by-lines-fn lines)
+ (let ((inhibit-redisplay nil)) (redisplay))
(funcall timer-start-fn self-fn)))
((eq scroll-on-drag-style 'line-by-pixel)
@@ -251,7 +254,8 @@
(unless (eq lines 0)
(setq delta-px-accum
(- delta-px-accum (* lines char-height)))
- (funcall scroll-by-lines-fn lines))))
+ (funcall scroll-by-lines-fn lines)
+ (let ((inhibit-redisplay nil)) (redisplay)))))
(funcall timer-start-fn self-fn)))
((eq scroll-on-drag-style 'pixel)
@@ -263,6 +267,7 @@
(if (< delta-scaled 0)
(funcall scroll-down-by-pixels-fn (- delta-scaled))
(funcall scroll-up-by-pixels-fn delta-scaled))
+ (let ((inhibit-redisplay nil)) (redisplay))
(funcall timer-start-fn self-fn))))))
(scroll-reset-fn
@@ -287,6 +292,7 @@
((eq event 'escape)
(funcall scroll-reset-fn)
(funcall scroll-restore-fn)
+ (let ((inhibit-redisplay nil)) (redisplay))
t)
;; Space keeps current position, restarts scrolling.
- [nongnu] elpa/scroll-on-drag d6257b2fb7 05/35: Prevent cursor changing over text, (continued)
- [nongnu] elpa/scroll-on-drag d6257b2fb7 05/35: Prevent cursor changing over text, ELPA Syncer, 2022/07/07
- [nongnu] elpa/scroll-on-drag 823aab7938 27/35: Cleanup: replace 'if' with 'cond', ELPA Syncer, 2022/07/07
- [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 <=
- [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, 2022/07/07
- [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