all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#50344: C-x v keybinding for vc-print-branch-log
@ 2021-09-02 18:43 Juri Linkov
  2021-09-02 23:24 ` Dmitry Gutov
  0 siblings, 1 reply; 91+ messages in thread
From: Juri Linkov @ 2021-09-02 18:43 UTC (permalink / raw)
  To: 50344

While vc-print-branch-log is a frequently used command, it still has no
keybinding in vc-prefix-map.  But it has a keybinding in vc-dir-mode-map.
Many keys are already shared between vc-prefix-map and vc-dir-mode-map, e.g.:

  (defvar vc-dir-mode-map
    ;; VC commands
    (define-key map "v" #'vc-next-action)   ;; C-x v v
    (define-key map "=" #'vc-diff)	   ;; C-x v =
    (define-key map "D" #'vc-root-diff)	   ;; C-x v D
    (define-key map "i" #'vc-register)	   ;; C-x v i
    (define-key map "+" #'vc-update)	   ;; C-x v +
    (define-key map "P" #'vc-push)	   ;; C-x v P
    (define-key map "l" #'vc-print-log)	   ;; C-x v l
    (define-key map "L" #'vc-print-root-log) ;; C-x v L
    (define-key map "I" #'vc-log-incoming)   ;; C-x v I
    (define-key map "O" #'vc-log-outgoing)   ;; C-x v O

Also vc-dir-mode-map has branch keys:

    (let ((branch-map (make-sparse-keymap)))
      (define-key map "B" branch-map)
      (define-key branch-map "c" #'vc-create-tag)
      (define-key branch-map "l" #'vc-print-branch-log)
      (define-key branch-map "s" #'vc-retrieve-tag))

So it makes sense to copy branch keys from vc-dir-mode-map
to vc-prefix-map:

diff --git a/lisp/vc/vc-hooks.el b/lisp/vc/vc-hooks.el
index 4b3c829a2c..d039c400c5 100644
--- a/lisp/vc/vc-hooks.el
+++ b/lisp/vc/vc-hooks.el
@@ -865,6 +865,9 @@ vc-prefix-map
   (let ((map (make-sparse-keymap)))
     (define-key map "a" #'vc-update-change-log)
     (define-key map "b" #'vc-switch-backend)
+    (define-key map "Bc" #'vc-create-tag)
+    (define-key map "Bl" #'vc-print-branch-log)
+    (define-key map "Bs" #'vc-retrieve-tag)
     (define-key map "d" #'vc-dir)
     (define-key map "g" #'vc-annotate)
     (define-key map "G" #'vc-ignore)





^ permalink raw reply related	[flat|nested] 91+ messages in thread

end of thread, other threads:[~2022-09-13 12:24 UTC | newest]

Thread overview: 91+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-02 18:43 bug#50344: C-x v keybinding for vc-print-branch-log Juri Linkov
2021-09-02 23:24 ` Dmitry Gutov
2021-09-03  8:15   ` Juri Linkov
2021-09-03 12:26     ` Dmitry Gutov
2021-09-03 16:18   ` Juri Linkov
2021-09-03 16:41     ` Dmitry Gutov
2021-09-04  6:33       ` Lars Ingebrigtsen
2021-09-05 16:28         ` Juri Linkov
2021-09-06  8:25           ` Lars Ingebrigtsen
2021-09-06 15:19             ` Juri Linkov
2021-09-07 15:05               ` Lars Ingebrigtsen
2021-09-08  2:58                 ` Dmitry Gutov
2021-09-08  8:00                   ` Lars Ingebrigtsen
2021-09-08 11:59                     ` Dmitry Gutov
2021-09-09 17:39                       ` Juri Linkov
2021-09-09 23:18                         ` Dmitry Gutov
2021-09-10  6:46                           ` Juri Linkov
2021-09-10 11:27                             ` Dmitry Gutov
2021-09-10 10:32                         ` Lars Ingebrigtsen
2021-09-10 11:26                           ` Dmitry Gutov
2021-09-13  7:47                             ` Juri Linkov
2021-10-07  7:21                               ` Juri Linkov
2021-10-07  7:47                                 ` Eli Zaretskii
2021-10-07  7:58                                   ` Juri Linkov
2021-10-07  8:28                                     ` Eli Zaretskii
2021-10-07 11:12                                       ` Dmitry Gutov
2021-10-07 12:56                                         ` Eli Zaretskii
2021-10-07 13:06                                           ` Dmitry Gutov
2021-10-07 13:21                                             ` Eli Zaretskii
2021-10-07 13:26                                               ` Dmitry Gutov
2021-10-07 13:50                                                 ` Eli Zaretskii
2021-10-07 17:36                                               ` Juri Linkov
2021-10-07 18:22                                                 ` Eli Zaretskii
2021-10-07 21:49                                               ` Dmitry Gutov
2021-10-12 12:48                                                 ` Filipp Gunbin
2021-10-13  1:45                                                   ` Dmitry Gutov
2021-10-13 10:12                                                     ` Filipp Gunbin
2021-10-13 23:37                                                       ` Dmitry Gutov
2021-12-24 11:56                                                         ` Philip Kaludercic
2021-12-24 12:03                                                           ` Dmitry Gutov
2021-12-24 13:57                                                             ` Philip Kaludercic
2021-12-24 23:45                                                               ` Dmitry Gutov
2021-12-25 11:37                                                                 ` Philip Kaludercic
2021-12-25 12:08                                                                   ` Dmitry Gutov
2022-09-09  5:46                                                         ` Sean Whitton
2022-09-09  6:29                                                           ` Juri Linkov
2022-09-09 17:09                                                             ` Lars Ingebrigtsen
2022-09-11 15:10                                                           ` Juri Linkov
2022-09-11 15:25                                                             ` Lars Ingebrigtsen
2022-09-12 18:07                                                               ` Juri Linkov
2022-09-12 18:21                                                                 ` Eli Zaretskii
2022-09-12 19:13                                                                   ` Juri Linkov
2022-09-13 12:24                                                                     ` Eli Zaretskii
2022-09-12 18:57                                                                 ` Sean Whitton
2021-10-07 13:11                                           ` Robert Pluim
2021-10-07 13:51                                             ` Filipp Gunbin
2021-10-07  9:57                                     ` Gregory Heytings
2021-10-07 11:14                                       ` Dmitry Gutov
2021-10-07 11:25                                         ` Gregory Heytings
2021-10-07 11:35                                           ` Dmitry Gutov
2021-10-07 11:42                                             ` Gregory Heytings
2021-10-07 12:25                                               ` Kévin Le Gouguec
2021-10-07 12:42                                             ` Filipp Gunbin
2021-10-07 12:53                                               ` Dmitry Gutov
2021-10-07 13:11                                             ` Eli Zaretskii
2021-10-07 12:51                                       ` Eli Zaretskii
2021-10-07 17:30                                         ` Juri Linkov
2021-10-07 18:25                                           ` Eli Zaretskii
2021-09-16 11:46                         ` Filipp Gunbin
2021-09-16 11:54                           ` Dmitry Gutov
2021-09-17 15:15                             ` Filipp Gunbin
2021-09-18  0:09                               ` bug#50643: " Dmitry Gutov
2021-09-18 19:03                                 ` Juri Linkov
2021-09-19  0:01                                   ` Dmitry Gutov
2021-09-19 17:04                                     ` bug#50643: " Juri Linkov
2021-09-20  0:33                                       ` Dmitry Gutov
2021-09-20  6:49                                         ` bug#50643: " Juri Linkov
2021-09-20 16:53                                           ` Dmitry Gutov
2021-09-20 17:31                                             ` Filipp Gunbin
2021-09-20 15:59                                   ` bug#50643: " Filipp Gunbin
2021-10-05 17:43                               ` Juri Linkov
2021-10-06  0:37                                 ` Dmitry Gutov
2021-10-06  7:29                                   ` Juri Linkov
2021-10-07  0:57                                     ` Dmitry Gutov
2021-10-06 16:28                                   ` Juri Linkov
2021-10-07  0:47                                     ` Dmitry Gutov
2021-10-07 12:46                                 ` Filipp Gunbin
2021-10-07 12:55                                   ` Robert Pluim
2021-10-07 17:27                                   ` Juri Linkov
2021-09-08  2:50         ` Dmitry Gutov
2021-09-08  7:53           ` Lars Ingebrigtsen

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.