[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/diff-hl 983366c 1/2: Make diff-hl-show-hunk's key bindi
From: |
ELPA Syncer |
Subject: |
[elpa] externals/diff-hl 983366c 1/2: Make diff-hl-show-hunk's key bindings more consistent with the base set |
Date: |
Mon, 30 Aug 2021 21:57:14 -0400 (EDT) |
branch: externals/diff-hl
commit 983366cb40923df23dd26ab38f616a1791094653
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>
Make diff-hl-show-hunk's key bindings more consistent with the base set
To avoid the conflict between 'C-v x n' as diff-hl-revert-hunk and
diff-hl-show-hunk-next.
Mentioned in #169.
The user can, of course, choose their own bindings.
/Cc @alvarogonzalezsotillo
---
diff-hl-show-hunk-posframe.el | 4 +---
diff-hl-show-hunk.el | 6 ++----
2 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/diff-hl-show-hunk-posframe.el b/diff-hl-show-hunk-posframe.el
index ba77151..16de180 100644
--- a/diff-hl-show-hunk-posframe.el
+++ b/diff-hl-show-hunk-posframe.el
@@ -91,10 +91,8 @@ Customize it to change the base properties of the text.")
(define-key map [escape] #'diff-hl-show-hunk-hide)
(define-key map (kbd "q") #'diff-hl-show-hunk-hide)
(define-key map (kbd "C-g") #'diff-hl-show-hunk-hide)
- (define-key map (kbd "p") #'diff-hl-show-hunk-previous)
- (define-key map (kbd "n") #'diff-hl-show-hunk-next)
(define-key map (kbd "c") #'diff-hl-show-hunk-copy-original-text)
- (define-key map (kbd "r") #'diff-hl-show-hunk-revert-hunk)
+ (define-key map (kbd "n") #'diff-hl-show-hunk-revert-hunk)
(define-key map (kbd "[") #'diff-hl-show-hunk-previous)
(define-key map (kbd "]") #'diff-hl-show-hunk-next)
(define-key map (kbd "{") #'diff-hl-show-hunk-previous)
diff --git a/diff-hl-show-hunk.el b/diff-hl-show-hunk.el
index 6e3e63b..f8998b7 100644
--- a/diff-hl-show-hunk.el
+++ b/diff-hl-show-hunk.el
@@ -212,10 +212,8 @@ Returns a list with the buffer and the line number of the
clicked line."
(defvar diff-hl-show-hunk--inline-popup-map
(let ((map (make-sparse-keymap)))
- (define-key map (kbd "p") #'diff-hl-show-hunk-previous)
- (define-key map (kbd "n") #'diff-hl-show-hunk-next)
(define-key map (kbd "c") #'diff-hl-show-hunk-copy-original-text)
- (define-key map (kbd "r") #'diff-hl-show-hunk-revert-hunk)
+ (define-key map (kbd "n") #'diff-hl-show-hunk-revert-hunk)
(define-key map (kbd "[") #'diff-hl-show-hunk-previous)
(define-key map (kbd "]") #'diff-hl-show-hunk-next)
(define-key map (kbd "{") #'diff-hl-show-hunk-previous)
@@ -273,7 +271,7 @@ BUFFER is a buffer with the hunk."
(if (and (boundp 'diff-hl-reference-revision)
diff-hl-reference-revision)
(concat "Diff with " diff-hl-reference-revision)
"Diff with HEAD")
- "(q)Quit (p)Previous (n)Next (r)Revert (c)Copy original"
+ "(q)Quit (\[)Previous (\])Next (n)Revert (c)Copy original"
diff-hl-show-hunk--inline-popup-map
#'diff-hl-show-hunk-hide
point