unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@linkov.net>
To: Dmitry Gutov <dgutov@yandex.ru>
Cc: 50344@debbugs.gnu.org, Lars Ingebrigtsen <larsi@gnus.org>
Subject: bug#50344: C-x v keybinding for vc-print-branch-log
Date: Thu, 07 Oct 2021 10:21:45 +0300	[thread overview]
Message-ID: <878rz5pc9i.fsf@mail.linkov.net> (raw)
In-Reply-To: <874kaptwki.fsf@mail.linkov.net> (Juri Linkov's message of "Mon,  13 Sep 2021 10:47:01 +0300")

[-- Attachment #1: Type: text/plain, Size: 1104 bytes --]

> I realized that quite likely many users already rely on 'C-x v s'
> and 'C-x v r' to create/switch branches because currently there is
> no other quick way to do these frequent actions.  OTOH, I don't
> believe that 'vc-switch-backend' is used often.  So it seems pretty safe
> to just create a new prefix key map for 'C-x v b', and rebind 'vc-switch-backend'
> to 'C-x v B'.  Then leave 'C-x v r' and 'C-x v s' unchanged to give
> users time to adopt to the new branch-related prefix map 'C-x v b'.

It will take more time to create branch commands due to many problems.
So the best what we could do now is to rebind 'vc-switch-backend'
from 'C-x v b' to 'C-x v B' in emacs-28 to give time to adapt
to  new keybinding.  'vc-switch-backend' was announced in NEWS thusly:

  If a file is registered in multiple backends, you can switch to
  another one using C-x v b (vc-switch-backend).  This does not change
  any files, it only changes VC's perspective on the file.  Use this to
  pick up changes from CVS while working under RCS locally.

So it was intended to switch backends between CVS and RCS.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: vc-switch-backend.patch --]
[-- Type: text/x-diff, Size: 1093 bytes --]

diff --git a/etc/NEWS b/etc/NEWS
index 8b327fac0f..26af52af58 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -3299,6 +3299,10 @@ Setting this to nil inhibits that.
 ** 'vc-print-branch-log' shows the change log from its root directory.
 It previously used to use the default directory.
 
+---
+** 'vc-switch-backend' is rebound from 'C-x v b' to 'C-x v B'.
+The prefix key 'C-x v b' is reserved for coming branch commands.
+
 ---
 ** 'project-shell' and 'shell' now use 'pop-to-buffer-same-window'.
 This is to keep the same behavior as Eshell.
diff --git a/lisp/vc/vc-hooks.el b/lisp/vc/vc-hooks.el
index b7760e3bba..7455a306bc 100644
--- a/lisp/vc/vc-hooks.el
+++ b/lisp/vc/vc-hooks.el
@@ -864,7 +864,8 @@ vc-kill-buffer-hook
 (defvar vc-prefix-map
   (let ((map (make-sparse-keymap)))
     (define-key map "a" #'vc-update-change-log)
-    (define-key map "b" #'vc-switch-backend)
+    ;; TODO: Use the prefix key "b" for branch commands.
+    (define-key map "B" #'vc-switch-backend)
     (define-key map "d" #'vc-dir)
     (define-key map "g" #'vc-annotate)
     (define-key map "G" #'vc-ignore)

  reply	other threads:[~2021-10-07  7:21 UTC|newest]

Thread overview: 91+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878rz5pc9i.fsf@mail.linkov.net \
    --to=juri@linkov.net \
    --cc=50344@debbugs.gnu.org \
    --cc=dgutov@yandex.ru \
    --cc=larsi@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).