From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#56311: [PATCH] new function: delete-visited-file Date: Thu, 30 Jun 2022 12:27:24 +0200 Message-ID: <87wncybg4z.fsf@gnus.org> References: <83k08y67ml.fsf@gnu.org> <87wncyr7st.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35234"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Eli Zaretskii , Zachary Kanfer , 56311@debbugs.gnu.org To: Visuwesh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 30 12:28:31 2022 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 1o6rPT-00090m-1Y for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 30 Jun 2022 12:28:31 +0200 Original-Received: from localhost ([::1]:43538 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o6rPR-0000DG-ME for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 30 Jun 2022 06:28:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46498) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6rP0-0000Cv-Bv for bug-gnu-emacs@gnu.org; Thu, 30 Jun 2022 06:28:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39074) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o6rP0-0008N5-42 for bug-gnu-emacs@gnu.org; Thu, 30 Jun 2022 06:28:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o6rP0-0005hM-15 for bug-gnu-emacs@gnu.org; Thu, 30 Jun 2022 06:28:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 30 Jun 2022 10:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56311 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 56311-submit@debbugs.gnu.org id=B56311.165658485421841 (code B ref 56311); Thu, 30 Jun 2022 10:28:01 +0000 Original-Received: (at 56311) by debbugs.gnu.org; 30 Jun 2022 10:27:34 +0000 Original-Received: from localhost ([127.0.0.1]:32968 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o6rOY-0005gD-91 for submit@debbugs.gnu.org; Thu, 30 Jun 2022 06:27:34 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:42124) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o6rOX-0005fw-6S for 56311@debbugs.gnu.org; Thu, 30 Jun 2022 06:27:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=1wDO9bJEtWeufH/kh1ADrzNne8oXxdwHz9PLBG0gS3I=; b=Z2kLSepy6bA+vuIMjQ0MkiyIIb oZ4od5fEbaQt8743BMbT8EnzNVo3oEwmO94qE/++ejrsQxIt+NJ/VK5treUnM9gaJsxBCJyESNT/X SBN3IMiep8ZxNtmsApxCXEuwsjsyhkchjzCKMGECwtzioJP/wAnrAGaYcCaCkLwePwMo=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o6rOO-0002Go-Kc; Thu, 30 Jun 2022 12:27:27 +0200 In-Reply-To: <87wncyr7st.fsf@gmail.com> (Visuwesh's message of "Thu, 30 Jun 2022 11:50:50 +0530") X-Now-Playing: Andrew Poppy's _The Beating of Wings_: "Cadenza" 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:235711 Archived-At: Visuwesh writes: > FWIW, the fact that Emacs leaves the buffer around has saved my back at > least twice, > > . when I accidentally deleted the wrong files in dired due to > stale marks. > . when I tried to fix a broken symlink but got the argument order in > ln wrong and had the real file "zeroed". And since deleting the visited file is currently very easy, as Eli pointed out: M-x delete-file RET M-n RET I don't think this would be a command that people would use a lot. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no