From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#52508: [PATCH] Option for vc-delete-file to keep file on disk Date: Sat, 18 Dec 2021 09:07:53 +0200 Message-ID: <835yrmcrw6.fsf@gnu.org> References: <85bl1igo9d.fsf@ashwink.com.np> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5111"; mail-complaints-to="usenet@ciao.gmane.io" Cc: ashwin@ashwink.com.np, 52508@debbugs.gnu.org, dgutov@yandex.ru To: rms@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 18 08:09:40 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 1myTqe-0001Cu-Dn for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 18 Dec 2021 08:09:40 +0100 Original-Received: from localhost ([::1]:59084 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1myTqd-0007mD-2f for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 18 Dec 2021 02:09:39 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:55440) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myTq2-0007lz-Qz for bug-gnu-emacs@gnu.org; Sat, 18 Dec 2021 02:09:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57854) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1myTq2-0007EY-Ib for bug-gnu-emacs@gnu.org; Sat, 18 Dec 2021 02:09:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1myTq2-00089Z-AH for bug-gnu-emacs@gnu.org; Sat, 18 Dec 2021 02:09:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 18 Dec 2021 07:09:02 +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.163981129731289 (code B ref 52508); Sat, 18 Dec 2021 07:09:02 +0000 Original-Received: (at 52508) by debbugs.gnu.org; 18 Dec 2021 07:08:17 +0000 Original-Received: from localhost ([127.0.0.1]:41167 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myTpI-00088b-NN for submit@debbugs.gnu.org; Sat, 18 Dec 2021 02:08:16 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:54578) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myTpE-00088M-W4 for 52508@debbugs.gnu.org; Sat, 18 Dec 2021 02:08:15 -0500 Original-Received: from [2001:470:142:3::e] (port=38370 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myTp8-00077e-Fs; Sat, 18 Dec 2021 02:08:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=aUYVgHdYLT3HU5yb+vEZ9Ti3bTSmoDaQbz9GW70cQEE=; b=DQr8zebs5qDI TgkrXTHELOwe7sun6RYabSzF8JDY5cI3Yf6LZX1tGPFTA0+mhexpHLAo55K35I6d+sRZc1UOfC5kO +yDGfXyHRNh5QCcytOVW6Ep1a8HEMQl5P++yl2V5FIwqJzxF3ZRUTqRB+3NQBe28SoNQSuQlGrJAl Nu4aBBdj0Kztmnbnz61lEvs8HpbyYz71HtrQZktNtUfUmQt+Pyjvv2NuQNn/vz8bZBU31oSfdlsff NC2sGavgMEZfKpAe+appsI794NwHkagQcBHoL2rAaq9d3MXgZcwVv+itj+oeXZxDwPRqR65iFlywk Gi//bk35feDp++O8eHOVww==; Original-Received: from [87.69.77.57] (port=1473 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myTp7-0001qk-62; Sat, 18 Dec 2021 02:08:05 -0500 In-Reply-To: (message from Richard Stallman on 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:222595 Archived-At: > From: Richard Stallman > Date: Fri, 17 Dec 2021 23:41:15 -0500 > Cc: ashwin@ashwink.com.np, 52508@debbugs.gnu.org, dgutov@yandex.ru > > > 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? I think it would be unexpected. VCS deletion usually means you delete both the file on the local disk and tell the VCS to delete it from the repository.