From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Filipp Gunbin Newsgroups: gmane.emacs.bugs Subject: bug#50344: C-x v keybinding for vc-print-branch-log Date: Thu, 16 Sep 2021 14:46:31 +0300 Message-ID: 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> <87fsudsngq.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14809"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (darwin) Cc: 50344@debbugs.gnu.org, Lars Ingebrigtsen , Dmitry Gutov To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 16 13:47:13 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 1mQprD-0003aj-8c for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 16 Sep 2021 13:47:12 +0200 Original-Received: from localhost ([::1]:51032 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mQprB-00022V-82 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 16 Sep 2021 07:47:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34616) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mQpr4-00022G-1P for bug-gnu-emacs@gnu.org; Thu, 16 Sep 2021 07:47:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42447) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mQpr3-0004zR-QO for bug-gnu-emacs@gnu.org; Thu, 16 Sep 2021 07:47:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mQpr3-0007Mm-Ol for bug-gnu-emacs@gnu.org; Thu, 16 Sep 2021 07:47:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Filipp Gunbin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 16 Sep 2021 11:47:01 +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.163179280328269 (code B ref 50344); Thu, 16 Sep 2021 11:47:01 +0000 Original-Received: (at 50344) by debbugs.gnu.org; 16 Sep 2021 11:46:43 +0000 Original-Received: from localhost ([127.0.0.1]:53990 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mQpql-0007Lt-0n for submit@debbugs.gnu.org; Thu, 16 Sep 2021 07:46:43 -0400 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]:55297) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mQpqi-0007LZ-Jw for 50344@debbugs.gnu.org; Thu, 16 Sep 2021 07:46:42 -0400 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id F220B5C01DD; Thu, 16 Sep 2021 07:46:34 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Thu, 16 Sep 2021 07:46:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm1; bh=/4fRCdUpxjQKm4ykM4ra9JuiVx v74r+5NraRxu/BEtg=; b=a4S+ljEvcLahn4W/K1exjvSXbp7KfpWKwz0iMsNq3d mqfCrDsMGJJdOqKvU2rLtyG/Fy7O9FGEkoyYKQDrA1F8B3quW/4spu4KZO5WWIm5 qp7HJ+pgTfhZzmMnwbNlPAgAOaXlN1So0jZprxaPxo37/C1wwGYmtZKYBclDqr9i rHgxyed30cvD86z6Ku6lG/pYZe0KMt42DI2Xyb4HSZu4KALXKe1BRAhFvGdaNfPM E78z+LBCyKELhXtaryq+xO+WD9jXw3y9oTzgecN8d+h0xBYAsuD4ws65y2lYgHds unQE+Kcg3gD/EGsqKQKUbcy8YJbwd0/SnAQp9afiL2gg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=/4fRCd UpxjQKm4ykM4ra9JuiVxv74r+5NraRxu/BEtg=; b=ggW7MUC0axk63XKLyqK+3h mm46mcQdiHBHM9BtH0x8Z97igHeZaRWVfWLehdmq6bgkcdsV24j9T2bf5bydm+C9 tse8ATL5dMh+h6RlD0OkWNw3iZTZIHQxbxCB1l/UParKaCMdDnCO7pv23Lm5NVyf WMZgSq3zVR7LUDaS+PM+3By3+4JpycpU8mS4geNiN1sYC5Da1I4Rz3NnQgUUccLf qVKKHI+jUvd0hBCS5+PCWVhKDlf/DnWVBLo18r8FQaSQA2CBBsycprI/fF0q9Crw QrY2dXZd6CwsTmmCB11wR7WWQRnGoHAJm0U/KPcxHS4h9gtDGi6X/5DddwBup67A == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudehgedggedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufgjfhgffffkgggtsehttdertddtredtnecuhfhrohhmpefhihhlihhp phcuifhunhgsihhnuceofhhguhhnsghinhesfhgrshhtmhgrihhlrdhfmheqnecuggftrf grthhtvghrnhepvdevkeffvdeuvefhuddtjeehkedvueefveettddtveduudfgieffieev ieevhfdtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh epfhhguhhnsghinhesfhgrshhtmhgrihhlrdhfmh X-ME-Proxy: Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 16 Sep 2021 07:46:33 -0400 (EDT) In-Reply-To: <87fsudsngq.fsf@mail.linkov.net> (Juri Linkov's message of "Thu, 09 Sep 2021 20:39:57 +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:214449 Archived-At: On 09/09/2021 20:39 +0300, Juri Linkov wrote: >>>> 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. Maybe I should express this wish in a separate bug, but: It would be nice if vc-create-tag allowed to specify start-point conveniently: git checkout -b new-branch-name START-POINT Currently I do this in shell. Filipp.