[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/transient 45fd93d972 11/17: Move definitions of transie
From: |
Jonas Bernoulli |
Subject: |
[elpa] externals/transient 45fd93d972 11/17: Move definitions of transient-scroll-{up, down} |
Date: |
Tue, 21 Nov 2023 10:17:50 -0500 (EST) |
branch: externals/transient
commit 45fd93d972992c0489a9e8de4170045d4c71d5a1
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
Move definitions of transient-scroll-{up,down}
The next few commit collects most commands in one place, but here we
do the opposite. Boring commands, such as these, which just wrap some
existing command with `with-selected-window', are finally all kept out
of sight.
---
lisp/transient.el | 32 ++++++++++++++++----------------
1 file changed, 16 insertions(+), 16 deletions(-)
diff --git a/lisp/transient.el b/lisp/transient.el
index dc9483fa52..e01fe232f8 100644
--- a/lisp/transient.el
+++ b/lisp/transient.el
@@ -2849,22 +2849,6 @@ transient is active."
(oset obj value (nth pos hst))
(mapc #'transient-init-value transient--suffixes))))
-(defun transient-scroll-up (&optional arg)
- "Scroll text of transient popup window upward ARG lines.
-If ARG is nil scroll near full screen. This is a wrapper
-around `scroll-up-command' (which see)."
- (interactive "^P")
- (with-selected-window transient--window
- (scroll-up-command arg)))
-
-(defun transient-scroll-down (&optional arg)
- "Scroll text of transient popup window down ARG lines.
-If ARG is nil scroll near full screen. This is a wrapper
-around `scroll-down-command' (which see)."
- (interactive "^P")
- (with-selected-window transient--window
- (scroll-down-command arg)))
-
(defun transient-push-button ()
"Invoke the suffix command represented by this button."
(interactive))
@@ -4069,6 +4053,22 @@ resumes the suspended transient."
(message "This command is only available if `%s' is non-nil"
'transient-enable-popup-navigation))
+(defun transient-scroll-up (&optional arg)
+ "Scroll text of transient popup window upward ARG lines.
+If ARG is nil scroll near full screen. This is a wrapper
+around `scroll-up-command' (which see)."
+ (interactive "^P")
+ (with-selected-window transient--window
+ (scroll-up-command arg)))
+
+(defun transient-scroll-down (&optional arg)
+ "Scroll text of transient popup window down ARG lines.
+If ARG is nil scroll near full screen. This is a wrapper
+around `scroll-down-command' (which see)."
+ (interactive "^P")
+ (with-selected-window transient--window
+ (scroll-down-command arg)))
+
(defun transient-backward-button (n)
"Move to the previous button in the transient popup buffer.
See `backward-button' for information about N."
- [elpa] externals/transient 7bb6f670fa 09/17: Move definition of transient button-type, (continued)
- [elpa] externals/transient 7bb6f670fa 09/17: Move definition of transient button-type, Jonas Bernoulli, 2023/11/21
- [elpa] externals/transient a53205c51b 10/17: Move definition of transient--restore-winconf, Jonas Bernoulli, 2023/11/21
- [elpa] externals/transient 7da468ef9d 07/17: transient-format(around:suffix): Absorb around:infix method, Jonas Bernoulli, 2023/11/21
- [elpa] externals/transient c885d12b54 15/17: Move definition of transient-resume-mode-map, Jonas Bernoulli, 2023/11/21
- [elpa] externals/transient 413f76a783 16/17: Collect most commands in one section, Jonas Bernoulli, 2023/11/21
- [elpa] externals/transient fdd0532575 06/17: transient-format(around:suffix): Cosmetics, Jonas Bernoulli, 2023/11/21
- [elpa] externals/transient ee26a40301 14/17: Move definition of transient-toggle-common, Jonas Bernoulli, 2023/11/21
- [elpa] externals/transient 57bb749f98 17/17: Remove obsolete function alias transient--current-buffer after all, Jonas Bernoulli, 2023/11/21
- [elpa] externals/transient 38c548e06b 04/17: Keep obsolete transient--current-buffer for one release, Jonas Bernoulli, 2023/11/21
- [elpa] externals/transient c55defa145 01/17: Account for shorthands when determining handle-switch-frame predicate, Jonas Bernoulli, 2023/11/21
- [elpa] externals/transient 45fd93d972 11/17: Move definitions of transient-scroll-{up, down},
Jonas Bernoulli <=
- [elpa] externals/transient 923246d174 12/17: Move definition of transient-popup-navigation-help, Jonas Bernoulli, 2023/11/21
- [elpa] externals/transient 82bc29d29f 13/17: transient-inhibit-move: Rename and improve strings, Jonas Bernoulli, 2023/11/21