From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ashwin Kafle Newsgroups: gmane.emacs.bugs Subject: bug#52508: [PATCH] Option for vc-delete-file to keep file on disk Date: Sat, 18 Dec 2021 07:36:21 +0000 Message-ID: <85r1aaqs96.fsf@ashwink.com.np> References: <85bl1igo9d.fsf@ashwink.com.np> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4818"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Ashwin Kafle , 52508@debbugs.gnu.org, dgutov@yandex.ru To: Richard Stallman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 18 08:36: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 1myUGe-000128-Iw for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 18 Dec 2021 08:36:32 +0100 Original-Received: from localhost ([::1]:46456 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1myUGd-0002jS-AA for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 18 Dec 2021 02:36:31 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59448) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myUGG-0002gJ-Iz for bug-gnu-emacs@gnu.org; Sat, 18 Dec 2021 02:36:08 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57879) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1myUG9-0006pK-JH for bug-gnu-emacs@gnu.org; Sat, 18 Dec 2021 02:36:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1myUG9-0000Lx-HU for bug-gnu-emacs@gnu.org; Sat, 18 Dec 2021 02:36:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ashwin Kafle Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 18 Dec 2021 07:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52508 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 52508-submit@debbugs.gnu.org id=B52508.16398129311317 (code B ref 52508); Sat, 18 Dec 2021 07:36:01 +0000 Original-Received: (at 52508) by debbugs.gnu.org; 18 Dec 2021 07:35:31 +0000 Original-Received: from localhost ([127.0.0.1]:41192 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myUFf-0000LA-9a for submit@debbugs.gnu.org; Sat, 18 Dec 2021 02:35:31 -0500 Original-Received: from forward100j.mail.yandex.net ([5.45.198.240]:37042) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myUFb-0000Ku-7y for 52508@debbugs.gnu.org; Sat, 18 Dec 2021 02:35:29 -0500 Original-Received: from iva8-def7434e1e2c.qloud-c.yandex.net (iva8-def7434e1e2c.qloud-c.yandex.net [IPv6:2a02:6b8:c0c:3b96:0:640:def7:434e]) by forward100j.mail.yandex.net (Yandex) with ESMTP id B8B1364F36D9; Sat, 18 Dec 2021 10:35:20 +0300 (MSK) Original-Received: from iva4-b3ebd202b141.qloud-c.yandex.net (iva4-b3ebd202b141.qloud-c.yandex.net [2a02:6b8:c0c:4e8e:0:640:b3eb:d202]) by iva8-def7434e1e2c.qloud-c.yandex.net (mxback/Yandex) with ESMTP id 4YCHif4F0e-ZKeCdsmN; Sat, 18 Dec 2021 10:35:20 +0300 Authentication-Results: iva8-def7434e1e2c.qloud-c.yandex.net; dkim=pass Original-Received: by iva4-b3ebd202b141.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id uj1bXzfhpW-ZJPWHCbn; Sat, 18 Dec 2021 10:35:19 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) X-Yandex-Fwd: 2 In-Reply-To: (Richard Stallman's message of "Fri, 17 Dec 2021 23:41:15 -0500") 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:222597 Archived-At: Richard Stallman writes: > [[[ To any NSA and FBI agents reading my email: please consider ]]] > [[[ whether defending the US Constitution against all enemies, ]]] > [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > > > I've created the attached patch to have vc-delete file to keep files on > > disk using a prefix argument. I've only tested it for vc-git. > > This may seem shocking, but what about changing vc-delete-file > to ALWAYS preserve the local file? In other words, to change ONLY the repo? > > That's the operation that vc-delete-file is necessary for. > If you do in fact want to delete the local file as well, that's easy to do. > > This would have the advantage of one less switch to remember. I had the same initial thought ;) But, vc-delete-file is used by a lot of people and it's probably muscle memory for them. I didn't want people to be affected much by this patch. Also, there's a new revision of this patch under bug#52507 that will make sure that the local file is always preserved even if the VCS itself deletes it. After i understand what Juri is saying, i'll likely make a new patch removing the change from vc-git.el Thank you, Stallman, for all the hard work you've done and continue to do.