[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/transient 5c746f3146 15/17: No longer consider popup na
From: |
Jonas Bernoulli |
Subject: |
[elpa] externals/transient 5c746f3146 15/17: No longer consider popup navigation a secondary feature |
Date: |
Fri, 25 Mar 2022 06:22:18 -0400 (EDT) |
branch: externals/transient
commit 5c746f314678117fcb45be7a003cbdc1781b0ea9
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
No longer consider popup navigation a secondary feature
In practical terms that just means moving the definitions of two
keymaps. Also, just because I now consider this a useful feature
that doesn't mean that it won't need more work.
---
lisp/transient.el | 38 ++++++++++++++++++--------------------
1 file changed, 18 insertions(+), 20 deletions(-)
diff --git a/lisp/transient.el b/lisp/transient.el
index 9723c20692..95865a9484 100644
--- a/lisp/transient.el
+++ b/lisp/transient.el
@@ -1572,6 +1572,22 @@ to `transient-predicate-map'. Also see
`transient-base-map'.")
"Show common permanently")))
("C-x l" "Show/hide suffixes" transient-set-level)]])))
+(defvar transient-popup-navigation-map
+ (let ((map (make-sparse-keymap)))
+ (define-key map (kbd "<down-mouse-1>") #'transient-noop)
+ (define-key map (kbd "<up>") #'transient-backward-button)
+ (define-key map (kbd "<down>") #'transient-forward-button)
+ (define-key map (kbd "C-r") #'transient-isearch-backward)
+ (define-key map (kbd "C-s") #'transient-isearch-forward)
+ map))
+
+(defvar transient-button-map
+ (let ((map (make-sparse-keymap)))
+ (define-key map (kbd "<mouse-1>") #'transient-push-button)
+ (define-key map (kbd "<mouse-2>") #'transient-push-button)
+ (define-key map (kbd "RET") #'transient-push-button)
+ map))
+
(defvar transient-predicate-map
(let ((map (make-sparse-keymap)))
(define-key map [transient-suspend] #'transient--do-suspend)
@@ -1628,8 +1644,6 @@ For transient commands that are bound in individual
transients,
the transient behavior is specified using the `:transient' slot
of the corresponding object.")
-(defvar transient-popup-navigation-map)
-
(defvar transient--transient-map nil)
(defvar transient--predicate-map nil)
(defvar transient--redisplay-map nil)
@@ -3721,8 +3735,7 @@ resumes the suspended transient.")
(message "Debugging transient %s"
(if transient--debug "enabled" "disabled")))
-;;; Compatibility
-;;;; Popup Navigation
+;;; Popup Navigation
(defun transient-popup-navigation-help ()
"Inform the user how to enable popup navigation commands."
@@ -3730,22 +3743,6 @@ resumes the suspended transient.")
(message "This command is only available if `%s' is non-nil"
'transient-enable-popup-navigation))
-(defvar transient-popup-navigation-map
- (let ((map (make-sparse-keymap)))
- (define-key map (kbd "<down-mouse-1>") #'transient-noop)
- (define-key map (kbd "<up>") #'transient-backward-button)
- (define-key map (kbd "<down>") #'transient-forward-button)
- (define-key map (kbd "C-r") #'transient-isearch-backward)
- (define-key map (kbd "C-s") #'transient-isearch-forward)
- map))
-
-(defvar transient-button-map
- (let ((map (make-sparse-keymap)))
- (define-key map (kbd "<mouse-1>") #'transient-push-button)
- (define-key map (kbd "<mouse-2>") #'transient-push-button)
- (define-key map (kbd "RET") #'transient-push-button)
- map))
-
(define-button-type 'transient-button
'face nil
'keymap transient-button-map)
@@ -3783,6 +3780,7 @@ See `forward-button' for information about N."
beg (next-single-property-change
beg 'face nil (line-end-position))))))
+;;; Compatibility
;;;; Popup Isearch
(defvar transient--isearch-mode-map
- [elpa] externals/transient 017eb7b3cb 07/17: Explicitly define generic functions, (continued)
- [elpa] externals/transient 017eb7b3cb 07/17: Explicitly define generic functions, Jonas Bernoulli, 2022/03/25
- [elpa] externals/transient da97c6d18a 06/17: Revert most of "Use more function quotes", Jonas Bernoulli, 2022/03/25
- [elpa] externals/transient 0619c7ef19 08/17: Automatically publish statistics, Jonas Bernoulli, 2022/03/25
- [elpa] externals/transient 31d355b596 10/17: transient-set-level: Refresh shown levels after setting one, Jonas Bernoulli, 2022/03/25
- [elpa] externals/transient dd67ff9061 12/17: transient--do-pre-command: New function, Jonas Bernoulli, 2022/03/25
- [elpa] externals/transient bb056e7156 13/17: Invoke suffix commands directly when a button is pushed, Jonas Bernoulli, 2022/03/25
- [elpa] externals/transient 132090a4b6 17/17: transient-enable-popup-navigation: Enable by default, Jonas Bernoulli, 2022/03/25
- [elpa] externals/transient 75a44f5058 16/17: transient-enable-popup-navigation: Improve docstring, Jonas Bernoulli, 2022/03/25
- [elpa] externals/transient ecf340cbff 09/17: make: Set GITSTATS, Jonas Bernoulli, 2022/03/25
- [elpa] externals/transient 98d5020238 14/17: transient-popup-navigation-map: No longer bind C-p and C-n, Jonas Bernoulli, 2022/03/25
- [elpa] externals/transient 5c746f3146 15/17: No longer consider popup navigation a secondary feature,
Jonas Bernoulli <=