From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#50344: C-x v keybinding for vc-print-branch-log Date: Thu, 09 Sep 2021 20:39:57 +0300 Organization: LINKOV.NET Message-ID: <87fsudsngq.fsf@mail.linkov.net> References: <87mtoux1ha.fsf@mail.linkov.net> <1f39aa34-6626-3d0b-d764-2c9908787d99@yandex.ru> <87o8998wf4.fsf@mail.linkov.net> <84e4e2ef-6c8d-3645-9e1e-3129981dd45f@yandex.ru> <875yvgvohe.fsf@gnus.org> <87y28burzd.fsf@mail.linkov.net> <87o896kt5k.fsf@gnus.org> <87sfyhj3qw.fsf@mail.linkov.net> <87zgsoctoc.fsf@gnus.org> <59a05468-2309-c6e7-5a2a-51426c208966@yandex.ru> <87tuiv4hvc.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29222"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: 50344@debbugs.gnu.org, Lars Ingebrigtsen To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 09 19:59:33 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mOOKj-0007TH-CP for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 09 Sep 2021 19:59:33 +0200 Original-Received: from localhost ([::1]:50064 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mOOKi-0003i0-BQ for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 09 Sep 2021 13:59:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45482) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mOOKH-0003WN-8e for bug-gnu-emacs@gnu.org; Thu, 09 Sep 2021 13:59:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52864) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mOOKF-00064Z-T6 for bug-gnu-emacs@gnu.org; Thu, 09 Sep 2021 13:59:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mOOKF-0007iZ-Ry for bug-gnu-emacs@gnu.org; Thu, 09 Sep 2021 13:59:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 09 Sep 2021 17:59:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50344 X-GNU-PR-Package: emacs Original-Received: via spool by 50344-submit@debbugs.gnu.org id=B50344.163121031329589 (code B ref 50344); Thu, 09 Sep 2021 17:59:03 +0000 Original-Received: (at 50344) by debbugs.gnu.org; 9 Sep 2021 17:58:33 +0000 Original-Received: from localhost ([127.0.0.1]:36171 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mOOJl-0007hB-97 for submit@debbugs.gnu.org; Thu, 09 Sep 2021 13:58:33 -0400 Original-Received: from relay6-d.mail.gandi.net ([217.70.183.198]:45605) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mOOJh-0007gW-5c for 50344@debbugs.gnu.org; Thu, 09 Sep 2021 13:58:29 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 41664C0004; Thu, 9 Sep 2021 17:58:21 +0000 (UTC) In-Reply-To: (Dmitry Gutov's message of "Wed, 8 Sep 2021 14:59:18 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:213934 Archived-At: >>> Speaking of (re)moving bindings: 'C-x v b' (vc-switch-backend) seems >>> particularly useless. >> Oh, wow. What's the use case for that command? I can't imagine when >> that would actually do something useful... And it's a really old >> command, too -- perhaps this was something that made sense in an RCS >> world? > > I think it's for the case of nested repositories, like in bug#42966 and > other linked reports. And perhaps our detection might make the wrong > choice, thus it can be tweaked manually. > > I don't have any specific scenario in mind, though. Or personal experience > with such nesting. > >>> If we do this the conservative way, though, the whole procedure can >>> span half a decade: >>> >>> - Move vc-switch-backend to 'C-x v B' (Emacs 28) >>> - Move branch-map to 'b' and vc-create-tag to 'C-x v b c' (Emacs 29) >>> - Finally move vc-search-log to 'C-x v s' (Emacs 30) >> We could do the first two steps in Emacs 28, perhaps -- if anybody's >> actually using `C-x v b', they'll then get >> C-x v b- >> in the echo area, which should tell them that something's different is >> happening now... > > Works for me. > > Juri, what do you say? I think in the long-term it would be nice to have these keybindings: C-x v B - vc-switch-backend C-x v b c - vc-create-tag (maybe it should have an alias 'vc-create-branch'?) C-x v b l - vc-print-branch-log C-x v b s - vc-retrieve-tag (maybe it should have an alias 'vc-switch-branch'?) C-x v s - vc-log-search C-x v r - free, any ideas what to bind to it? Since `C-x v b' will show "C-x v b-" in the echo area, and `C-x v s' will show "Search log with pattern: " in the minibuffer. and `C-x v r' will show "C-x v r is undefined", I see no problem in adding all keybindings before the next release.