[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/scroll-on-jump 69c86542a1 15/31: Docs: add docstrings
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/scroll-on-jump 69c86542a1 15/31: Docs: add docstrings |
Date: |
Thu, 7 Jul 2022 12:03:13 -0400 (EDT) |
branch: elpa/scroll-on-jump
commit 69c86542a148222a7571506a2515fc52529d209d
Author: Campbell Barton <ideasman42@gmail.com>
Commit: Campbell Barton <ideasman42@gmail.com>
Docs: add docstrings
---
scroll-on-jump.el | 20 +++++++++++++++-----
1 file changed, 15 insertions(+), 5 deletions(-)
diff --git a/scroll-on-jump.el b/scroll-on-jump.el
index f85a56ca44..f0cdc035c9 100644
--- a/scroll-on-jump.el
+++ b/scroll-on-jump.el
@@ -160,7 +160,8 @@ Argument ALSO-MOVE-POINT When non-nil, move the POINT as
well."
(scroll-on-jump--scroll-by-lines-simple window lines-scroll nil))
(defun scroll-on-jump--animated-scroll-by-line (window lines-scroll dir
also-move-point)
- "Animated scroll WINDOW LINES-SCROLL lines along DIR direction."
+ "Animated scroll WINDOW LINES-SCROLL lines along DIR direction.
+Moving the point when ALSO-MOVE-POINT is set."
(let
(
(time-init (current-time))
@@ -234,7 +235,8 @@ Argument ALSO-MOVE-POINT When non-nil, move the POINT as
well."
(run-window-scroll-functions window))
(defun scroll-on-jump--animated-scroll-by-px (window lines-scroll dir
also-move-point)
- "Animated scroll WINDOW LINES-SCROLL lines along DIR direction."
+ "Animated scroll WINDOW LINES-SCROLL lines along DIR direction.
+Argument ALSO-MOVE-POINT moves the point while scrolling."
(let
(
(time-init (current-time))
@@ -333,6 +335,9 @@ Argument ALSO-MOVE-POINT When non-nil, move the POINT as
well."
(run-window-scroll-functions window))
(defun scroll-on-jump--scroll-impl (window lines-scroll dir also-move-point)
+ "Scroll WINDOW LINES-SCROLL lines along DIR direction.
+Moving the point when ALSO-MOVE-POINT is set."
+
(cond
;; No animation.
((zerop scroll-on-jump-duration)
@@ -403,7 +408,8 @@ Argument ALSO-MOVE-POINT When non-nil, move the POINT as
well."
(goto-char point-next))
(defmacro scroll-on-jump--impl (use-window-start &rest body)
- "Main macro that wraps BODY in logic that reacts to change in `point'."
+ "Main macro that wraps BODY in logic that reacts to change in `point'.
+Argument USE-WINDOW-START detects window scrolling when non-nil."
`
(let
( ;; Set in case we have an error.
@@ -477,7 +483,9 @@ Argument ALSO-MOVE-POINT When non-nil, move the POINT as
well."
;; Use for wrapping functions that set the point.
;;;###autoload
-(defmacro scroll-on-jump (&rest body) `(scroll-on-jump--impl nil ,@body))
+(defmacro scroll-on-jump (&rest body)
+ "Main macro that wraps BODY in logic that reacts to change in `point'."
+ `(scroll-on-jump--impl nil ,@body))
;;;###autoload
(defmacro scroll-on-jump-interactive (fn)
@@ -508,7 +516,9 @@ without changing behavior anywhere else."
;; Use when wrapping actions that themselves scroll.
;;;###autoload
-(defmacro scroll-on-jump-with-scroll (&rest body) `(scroll-on-jump--impl t
,@body))
+(defmacro scroll-on-jump-with-scroll (&rest body)
+ "Main macro that wraps BODY in logic that reacts to change in `point' and
vertical scroll."
+ `(scroll-on-jump--impl t ,@body))
;;;###autoload
(defmacro scroll-on-jump-with-scroll-interactive (fn)
- [nongnu] branch elpa/scroll-on-jump created (now 8fde237ae6), ELPA Syncer, 2022/07/07
- [nongnu] elpa/scroll-on-jump 4b11cda039 07/31: Cleanup: pass the window to count-screen-lines, ELPA Syncer, 2022/07/07
- [nongnu] elpa/scroll-on-jump 94986120c4 08/31: readme: add link to demo video, ELPA Syncer, 2022/07/07
- [nongnu] elpa/scroll-on-jump fddbdfdfe0 11/31: Fix error where the pixel scroll was left a non-zero value, ELPA Syncer, 2022/07/07
- [nongnu] elpa/scroll-on-jump 42329b5707 20/31: Fix visual glitch when used with next/previous line, ELPA Syncer, 2022/07/07
- [nongnu] elpa/scroll-on-jump 5007e9ea8a 18/31: readme: add examples suggested in #2, ELPA Syncer, 2022/07/07
- [nongnu] elpa/scroll-on-jump 69c86542a1 15/31: Docs: add docstrings,
ELPA Syncer <=
- [nongnu] elpa/scroll-on-jump dd2818d906 17/31: Cleanup: make docstring under 80 chars, ELPA Syncer, 2022/07/07
- [nongnu] elpa/scroll-on-jump 30dc5f5e50 21/31: Cleanup: remove recursion check, ELPA Syncer, 2022/07/07
- [nongnu] elpa/scroll-on-jump 28bac2cdc3 22/31: Cleanup: quiet checkdoc warnings for wide docstrings, ELPA Syncer, 2022/07/07
- [nongnu] elpa/scroll-on-jump 0ce93b3ea6 19/31: readme: remove 'evil-goto-first-line' as 'evil-goto-line' already scrolls, ELPA Syncer, 2022/07/07
- [nongnu] elpa/scroll-on-jump 000dc41039 25/31: Fix error passing out-of-range point to count-screen-lines, ELPA Syncer, 2022/07/07
- [nongnu] elpa/scroll-on-jump 99386fc01b 30/31: Cleanup: use brief SPDX license, ELPA Syncer, 2022/07/07
- [nongnu] elpa/scroll-on-jump 556e9a7a81 28/31: Fix error detecting scroll changes, ELPA Syncer, 2022/07/07
- [nongnu] elpa/scroll-on-jump 9767013ca8 13/31: Support wrapping functions that themselves scroll, ELPA Syncer, 2022/07/07
- [nongnu] elpa/scroll-on-jump 8fde237ae6 31/31: Change URL to codeberg, ELPA Syncer, 2022/07/07
- [nongnu] elpa/scroll-on-jump a614bc7f8f 06/31: Fix the case when the windows buffer is not the current-buffer, ELPA Syncer, 2022/07/07