diff options
| author | Helmut Eller | 2026-02-13 09:10:16 +0100 |
|---|---|---|
| committer | Helmut Eller | 2026-02-13 09:10:16 +0100 |
| commit | 91c9e9883488d715a30877dfd7641ef4b3c62658 (patch) | |
| tree | e2c4525147e443f86baf9d0144aeadec082d7564 /lisp/pixel-scroll.el | |
| parent | 9a4a54af9192a6653164364c75721ee814ffb1e8 (diff) | |
| parent | f1fe4d46190263e164ccd1e066095d46a156297f (diff) | |
| download | emacs-feature/igc.tar.gz emacs-feature/igc.zip | |
Merge branch 'master' into feature/igcfeature/igc
Diffstat (limited to 'lisp/pixel-scroll.el')
| -rw-r--r-- | lisp/pixel-scroll.el | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/lisp/pixel-scroll.el b/lisp/pixel-scroll.el index dbb532f691b..23e63add994 100644 --- a/lisp/pixel-scroll.el +++ b/lisp/pixel-scroll.el | |||
| @@ -90,7 +90,6 @@ | |||
| 90 | (require 'mwheel) | 90 | (require 'mwheel) |
| 91 | (require 'subr-x) | 91 | (require 'subr-x) |
| 92 | (require 'ring) | 92 | (require 'ring) |
| 93 | (require 'cua-base) | ||
| 94 | 93 | ||
| 95 | (defvar pixel-wait 0 | 94 | (defvar pixel-wait 0 |
| 96 | "Idle time on each step of pixel scroll specified in second. | 95 | "Idle time on each step of pixel scroll specified in second. |
| @@ -831,7 +830,13 @@ It is a vector of the form [ VELOCITY TIME SIGN ]." | |||
| 831 | ;; since we want exactly 1 | 830 | ;; since we want exactly 1 |
| 832 | ;; page to be scrolled. | 831 | ;; page to be scrolled. |
| 833 | nil 1) | 832 | nil 1) |
| 834 | (cua-scroll-up))) | 833 | (cond |
| 834 | ((eobp) | ||
| 835 | (scroll-up)) ; signal error | ||
| 836 | (t | ||
| 837 | (condition-case nil | ||
| 838 | (scroll-up) | ||
| 839 | (end-of-buffer (goto-char (point-max)))))))) | ||
| 835 | 840 | ||
| 836 | ;;;###autoload | 841 | ;;;###autoload |
| 837 | (defun pixel-scroll-interpolate-up () | 842 | (defun pixel-scroll-interpolate-up () |
| @@ -840,7 +845,13 @@ It is a vector of the form [ VELOCITY TIME SIGN ]." | |||
| 840 | (if pixel-scroll-precision-interpolate-page | 845 | (if pixel-scroll-precision-interpolate-page |
| 841 | (pixel-scroll-precision-interpolate (window-text-height nil t) | 846 | (pixel-scroll-precision-interpolate (window-text-height nil t) |
| 842 | nil 1) | 847 | nil 1) |
| 843 | (cua-scroll-down))) | 848 | (cond |
| 849 | ((bobp) | ||
| 850 | (scroll-down)) ; signal error | ||
| 851 | (t | ||
| 852 | (condition-case nil | ||
| 853 | (scroll-down) | ||
| 854 | (beginning-of-buffer (goto-char (point-min)))))))) | ||
| 844 | 855 | ||
| 845 | ;;;###autoload | 856 | ;;;###autoload |
| 846 | (define-minor-mode pixel-scroll-precision-mode | 857 | (define-minor-mode pixel-scroll-precision-mode |