GNU bug report logs - #38156
27.0.50; [PATCH] VC: ability to skip update buffers prompt

Previous Next

Package: emacs;

Reported by: Andrii Kolomoiets <andreyk.mad <at> gmail.com>

Date: Sat, 9 Nov 2019 20:30:03 UTC

Severity: normal

Tags: fixed, patch

Found in version 27.0.50

Fixed in version 27.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 38156 in the body.
You can then email your comments to 38156 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#38156; Package emacs. (Sat, 09 Nov 2019 20:30:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Andrii Kolomoiets <andreyk.mad <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 09 Nov 2019 20:30:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Andrii Kolomoiets <andreyk.mad <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 27.0.50; [PATCH] VC: ability to skip update buffers prompt
Date: Sat, 9 Nov 2019 22:29:28 +0200
[Message part 1 (text/plain, inline)]
Hi,

The `update' argument of `vc-retrieve-tag' is ignored by git, hg and svn
vc backends so the answer for "Update any affected buffers?" prompt
doesn't matter.  This prompt can be omitted.
[0001-VC-ability-to-skip-update-buffers-prompt.patch (application/octet-stream, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#38156; Package emacs. (Thu, 14 Nov 2019 05:57:02 GMT) Full text and rfc822 format available.

Message #8 received at 38156 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Andrii Kolomoiets <andreyk.mad <at> gmail.com>
Cc: 38156 <at> debbugs.gnu.org
Subject: Re: bug#38156: 27.0.50; [PATCH] VC: ability to skip update buffers
 prompt
Date: Thu, 14 Nov 2019 06:55:58 +0100
Andrii Kolomoiets <andreyk.mad <at> gmail.com> writes:

> The `update' argument of `vc-retrieve-tag' is ignored by git, hg and svn
> vc backends so the answer for "Update any affected buffers?" prompt
> doesn't matter.  This prompt can be omitted.

Would it be possible to make those backends respect the UPDATE argument
instead?  I had a quick peek at vc-cvs-retrieve-tag (which does respect
the argument), and it looks a bit painful, and I'm not sure whether it
looks that useful.

Anybody got an opinion?

I applied the patch anyway, because it provides a way to make the
backends say whether they support it or not, which seems generally
useful.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#38156; Package emacs. (Thu, 14 Nov 2019 07:14:02 GMT) Full text and rfc822 format available.

Message #11 received at 38156 <at> debbugs.gnu.org (full text, mbox):

From: Andrii Kolomoiets <andreyk.mad <at> gmail.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 38156 <at> debbugs.gnu.org
Subject: Re: bug#38156: 27.0.50; [PATCH] VC: ability to skip update buffers
 prompt
Date: Thu, 14 Nov 2019 09:13:33 +0200
[Message part 1 (text/plain, inline)]
Hi Lars,

> On 14 Nov 2019, at 07:55, Lars Ingebrigtsen <larsi <at> gnus.org> wrote:
> 
> I applied the patch anyway, because it provides a way to make the
> backends say whether they support it or not, which seems generally
> useful.

Please install attached patch. Totally missed that default vc functions
are called with `backend` argument.

Thanks.

[0001-lisp-vc-vc.el-vc-default-update-on-retrieve-tag-Acce.patch (application/octet-stream, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#38156; Package emacs. (Thu, 14 Nov 2019 07:19:01 GMT) Full text and rfc822 format available.

Message #14 received at 38156 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Andrii Kolomoiets <andreyk.mad <at> gmail.com>
Cc: 38156 <at> debbugs.gnu.org
Subject: Re: bug#38156: 27.0.50; [PATCH] VC: ability to skip update buffers
 prompt
Date: Thu, 14 Nov 2019 08:18:37 +0100
Andrii Kolomoiets <andreyk.mad <at> gmail.com> writes:

> Please install attached patch. Totally missed that default vc functions
> are called with `backend` argument.

OK; installed.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#38156; Package emacs. (Thu, 14 Nov 2019 09:55:02 GMT) Full text and rfc822 format available.

Message #17 received at 38156 <at> debbugs.gnu.org (full text, mbox):

From: Andrii Kolomoiets <andreyk.mad <at> gmail.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 38156 <at> debbugs.gnu.org
Subject: Re: bug#38156: 27.0.50; [PATCH] VC: ability to skip update buffers
 prompt
Date: Thu, 14 Nov 2019 11:54:07 +0200
Hi Lars,

> On 14 Nov 2019, at 07:55, Lars Ingebrigtsen <larsi <at> gnus.org> wrote:
> 
> Andrii Kolomoiets <andreyk.mad <at> gmail.com> writes:
> 
>> The `update' argument of `vc-retrieve-tag' is ignored by git, hg and svn
>> vc backends so the answer for "Update any affected buffers?" prompt
>> doesn't matter.  This prompt can be omitted.
> 
> Would it be possible to make those backends respect the UPDATE argument
> instead?  I had a quick peek at vc-cvs-retrieve-tag (which does respect
> the argument), and it looks a bit painful, and I'm not sure whether it
> looks that useful.

vc-retrieve-tag is already updating buffers by calling
(vc-resynch-buffer dir t t t)

Maybe this commits are related:
http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=5828f6cacc5
http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=5f4f2ae4f96

IMO there are nothing more those backends can do with buffers so
`update` argument is mean nothing to them.

Don't know about cvs backend though.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#38156; Package emacs. (Sat, 16 Nov 2019 07:14:01 GMT) Full text and rfc822 format available.

Message #20 received at 38156 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Andrii Kolomoiets <andreyk.mad <at> gmail.com>
Cc: 38156 <at> debbugs.gnu.org
Subject: Re: bug#38156: 27.0.50; [PATCH] VC: ability to skip update buffers
 prompt
Date: Sat, 16 Nov 2019 08:13:25 +0100
Andrii Kolomoiets <andreyk.mad <at> gmail.com> writes:

> vc-retrieve-tag is already updating buffers by calling
> (vc-resynch-buffer dir t t t)
>
> Maybe this commits are related:
> http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=5828f6cacc5
> http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=5f4f2ae4f96
>
> IMO there are nothing more those backends can do with buffers so
> `update` argument is mean nothing to them.

OK; closing.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) fixed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sat, 16 Nov 2019 07:14:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 27.1, send any further explanations to 38156 <at> debbugs.gnu.org and Andrii Kolomoiets <andreyk.mad <at> gmail.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sat, 16 Nov 2019 07:14:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 14 Dec 2019 12:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 191 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.