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, 07 Oct 2021 15:46:47 +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> <85dfa858-091b-80df-b9d1-bd1136c2b91e@yandex.ru> <878rz72wqg.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="6235"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (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 Oct 07 14:47:41 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 1mYSoG-0001OM-AP for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 07 Oct 2021 14:47:41 +0200 Original-Received: from localhost ([::1]:46856 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mYSoE-000441-MK for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 07 Oct 2021 08:47:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50640) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mYSne-00040p-F8 for bug-gnu-emacs@gnu.org; Thu, 07 Oct 2021 08:47:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34752) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mYSne-00079c-6X for bug-gnu-emacs@gnu.org; Thu, 07 Oct 2021 08:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mYSnd-0000m9-RO for bug-gnu-emacs@gnu.org; Thu, 07 Oct 2021 08: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, 07 Oct 2021 12: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.16336108192973 (code B ref 50344); Thu, 07 Oct 2021 12:47:01 +0000 Original-Received: (at 50344) by debbugs.gnu.org; 7 Oct 2021 12:46:59 +0000 Original-Received: from localhost ([127.0.0.1]:46298 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mYSna-0000ls-Qu for submit@debbugs.gnu.org; Thu, 07 Oct 2021 08:46:59 -0400 Original-Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:52685) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mYSnY-0000ld-C0 for 50344@debbugs.gnu.org; Thu, 07 Oct 2021 08:46:57 -0400 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id A0CC9320077A; Thu, 7 Oct 2021 08:46:50 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Thu, 07 Oct 2021 08:46:50 -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=SVpZsOXlEaqJDl0i0z1JtS7RO3 jZa7SmW2my6M+4OBg=; b=lbCH6daVOFFuW+m4ly7zoDAPUx/fHAqpJsl74kl5/Q hNVbGR6InoTUzEIbGj4IrCpjldW4spbEVBIMELgHIVyY+DR9o/QicrN63451pL+I jewJd5b6g6q1tiWWwEUUE4F5IrS57XOp7ImLjryXCCeP8uXyXMNuMdG0nuLDU3th X0mVxF3TE5uvNE5+wogbeaLoIMqxmu9PDXdaJSGVmT5M0Gar11WUr7a5PuEhhEz9 yiJHWJOXSjF5CA9NIySEZ2G4B2v/NOMnCWhuyyuzH5c5BQv9IQVeEqNIADfodv4Q tjblsDDjKfUFT8n4SwkDOmQtPzIOysL0iTEE7827wDFA== 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=fm1; bh=SVpZsO XlEaqJDl0i0z1JtS7RO3jZa7SmW2my6M+4OBg=; b=I8Kd+d6RI5aSZaNoW30i9Z L9uhDEMaRtTvWNZx4PtbISccLAb8dhPHbigWpnl1iKYWBYEY3mDahSSHWDOiZVr+ u8I2w5vPpuHrjQ70Abl7ERZP+CZUJL+X1O6UsHOdR/gqzan1Fek+rT2Z0M9vV6z7 tcpqiSc9otkNiSQtALMbS/MBbNfET5wSyax2UZ9rex65f2+jn6RgxuerhwaDEEoR tdKj8fGdPwR7A9qAqkh3g0c0fUrgSx99/+iFPadfixG+7ffNihZtSqJv9KL17+e7 +N9sF8sRJxOUaovfhIuFq6MIW0vdBsxiXnHdV3LOgoG/z8GXbG6kgRZGRdnOqh1A == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudelkedgheegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufgjfhgffffkgggtsehttdertddtredtnecuhfhrohhmpefhihhlihhp phcuifhunhgsihhnuceofhhguhhnsghinhesfhgrshhtmhgrihhlrdhfmheqnecuggftrf grthhtvghrnhepvdevkeffvdeuvefhuddtjeehkedvueefveettddtveduudfgieffieev ieevhfdtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh epfhhguhhnsghinhesfhgrshhtmhgrihhlrdhfmh X-ME-Proxy: Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 7 Oct 2021 08:46:49 -0400 (EDT) In-Reply-To: <878rz72wqg.fsf@mail.linkov.net> (Juri Linkov's message of "Tue, 05 Oct 2021 20:43:35 +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:216648 Archived-At: Thanks, two very minor doc comments: > +;;;###autoload > +(defun vc-retrieve-tag (dir name &optional branchp) > "For each file in or below DIR, retrieve their tagged version NAME. > NAME can name a branch, in which case this command will switch to the > named branch in the directory DIR. > @@ -2375,15 +2413,21 @@ vc-retrieve-tag > (read-directory-name "Directory: " default-directory nil t)))) > (list > dir > - (vc-read-revision (format-prompt "Tag name to retrieve" "latest revisions") > + (vc-read-revision (format-prompt > + (if current-prefix-arg > + "Branch name to retrieve" > + "Tag name to retrieve") > + "latest revisions") Mention prefix arg in the docstring? > +(defun vc-switch-branch (dir name) > + "Switch to the branch NAME in the directory DIR. > +If NAME is empty, it refers to the latest revisions of the current branch. > +Uses `vc-retrieve-tag' with the non-nil arg `branchp'." "latest revision" instead of plural? Filipp.