From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.bugs Subject: bug#52508: [PATCH] Option for vc-delete-file to keep file on disk Date: Fri, 17 Dec 2021 23:41:15 -0500 Message-ID: References: <85bl1igo9d.fsf@ashwink.com.np> Reply-To: rms@gnu.org Content-Type: text/plain; charset=Utf-8 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7328"; mail-complaints-to="usenet@ciao.gmane.io" Cc: ashwin@ashwink.com.np, 52508@debbugs.gnu.org, dgutov@yandex.ru To: Ashwin Kafle Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 18 05:43:28 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 1myRZ9-0001lj-Jf for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 18 Dec 2021 05:43:27 +0100 Original-Received: from localhost ([::1]:57708 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1myRZ8-0005jS-HP for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 17 Dec 2021 23:43:26 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:35404) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myRXn-0001xF-DF for bug-gnu-emacs@gnu.org; Fri, 17 Dec 2021 23:42:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57740) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1myRXn-00009o-3c for bug-gnu-emacs@gnu.org; Fri, 17 Dec 2021 23:42:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1myRXm-0004EG-LF for bug-gnu-emacs@gnu.org; Fri, 17 Dec 2021 23:42:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Richard Stallman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 18 Dec 2021 04:42: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.163980248716206 (code B ref 52508); Sat, 18 Dec 2021 04:42:02 +0000 Original-Received: (at 52508) by debbugs.gnu.org; 18 Dec 2021 04:41:27 +0000 Original-Received: from localhost ([127.0.0.1]:41053 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myRXC-0004DH-8Y for submit@debbugs.gnu.org; Fri, 17 Dec 2021 23:41:26 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:34292) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myRX8-0004Cp-NQ for 52508@debbugs.gnu.org; Fri, 17 Dec 2021 23:41:23 -0500 Original-Received: from [2001:470:142:3::e] (port=34152 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 1myRX1-0007u8-8f; Fri, 17 Dec 2021 23:41:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From: mime-version; bh=wtUR60szDORhct0qSbJ0ORhWm0M7z0CsKamO/JOw2yk=; b=fEaDwy9vixi6 kc97vVksiMe975lFPI73MVqAQW2UT+UnVXd9SnTJUSDgzPo4n9UaS3hbZE+BUlLtY9szACGQeiNsb 5w5AJXe8JiWK7FDUtmYovhFV9PA2WViKieyJhAy6BdwjK9Z7CEkhQ/UaLQScgd6GNfrAc4NMfVG4W WdcnQQkZPeghafQyDoWAhBuVOOPdsW0fv3XlYM787M5zTO6JtDh22YjrYQZx0Icr0E6YbFfCoPcc2 A+u2gBWB50tWws4t2Xtwx7JWEk37H6b6iAR5tDufRR51JeRLj/XHieh2/HXZ4FblZ9qfs81LLtMAK lanikGp3a4MCGYKUNmvVkg==; Original-Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1myRX1-0001hI-D7; Fri, 17 Dec 2021 23:41:15 -0500 In-Reply-To: <85bl1igo9d.fsf@ashwink.com.np> (message from Ashwin Kafle on Wed, 15 Dec 2021 10:23:42 +0000) 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:222590 Archived-At: [[[ 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. -- Dr Richard Stallman (https://stallman.org) Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)