From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Boruch Baum Newsgroups: gmane.emacs.bugs Subject: bug#23276: autorevert for a deleted dired directory (ref: 23276) Date: Tue, 29 Dec 2020 16:18:20 -0500 Message-ID: <20201229211819.f6xohj66hpb5dqeg@E15-2016.optimum.net> References: <20201229200229.2qdkhuhuir573whz@E15-2016.optimum.net> <310ee0da-94c8-49b3-afd4-4418735aa02e@default> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40693"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: NeoMutt/20180716 Cc: 23276@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 29 22:19:14 2020 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 1kuMOc-000AQ2-AO for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 29 Dec 2020 22:19:10 +0100 Original-Received: from localhost ([::1]:41100 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kuMOb-00061M-9v for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 29 Dec 2020 16:19:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35896) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kuMOU-000612-Ms for bug-gnu-emacs@gnu.org; Tue, 29 Dec 2020 16:19:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57055) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kuMOU-00037v-FU for bug-gnu-emacs@gnu.org; Tue, 29 Dec 2020 16:19:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kuMOU-0005K9-8w for bug-gnu-emacs@gnu.org; Tue, 29 Dec 2020 16:19:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Boruch Baum Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 29 Dec 2020 21:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23276 X-GNU-PR-Package: emacs Original-Received: via spool by 23276-submit@debbugs.gnu.org id=B23276.160927671520427 (code B ref 23276); Tue, 29 Dec 2020 21:19:02 +0000 Original-Received: (at 23276) by debbugs.gnu.org; 29 Dec 2020 21:18:35 +0000 Original-Received: from localhost ([127.0.0.1]:40368 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kuMO2-0005JP-QJ for submit@debbugs.gnu.org; Tue, 29 Dec 2020 16:18:35 -0500 Original-Received: from mout.gmx.net ([212.227.17.20]:54055) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kuMO0-0005JC-UW for 23276@debbugs.gnu.org; Tue, 29 Dec 2020 16:18:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1609276704; bh=C3LiREdQclCQG1YucPu8LMQriItcQTK5zUs1sQXbOYo=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject:References:In-Reply-To; b=aObKq3zxaghoKUWRJW7B9FcNwa5peVYIQrk+gWGgjzP/krKIFqa6ssAFnVDBHA4YZ DbJBUrLzfR9IIT2caEIgxqHml1VEYS5HlDdfOFenwWII4EoyMoPOGdvfqQiMI1I/Ey CTzlFb+vv9g3YS9Yrwo4EGtpwqIntlCWovl2wQfc= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from E15-2016.optimum.net ([70.19.86.82]) by mail.gmx.com (mrgmx105 [212.227.17.174]) with ESMTPSA (Nemesis) id 1MbAgq-1kIohr2Eci-00bZ2I; Tue, 29 Dec 2020 22:18:23 +0100 Content-Disposition: inline In-Reply-To: <310ee0da-94c8-49b3-afd4-4418735aa02e@default> X-Provags-ID: V03:K1:9h6nO0KjBSVnhTvEfB5jHdyaodDY00jVZwbZSWnHi/k6BIc4rqQ RFguEg1VMdkA6R6GmbIGopUqXAVvEAY6PModuZ4pAaXMd8zxgyoegKtRRR5i4NLzseeTrdB o9J4FgV/8MYZeYOiTjy4ZjMUR0ZFvWf4Xj1S6R02nXxkhmffz6vr9bz4oA2crj8r5juL5DO pzYV2VQn5QmXrUz/EH99Q== X-UI-Out-Filterresults: notjunk:1;V03:K0:7RIDtenblow=:2RFURfegXK6l1XoFnl6EUd 1OCyyIWcqUdpJgmwl9ewOLQUn/vjOgP8vSNhhHPSrLkp+q1QtOkbx8of/zRcne5HV/QCLvKIa jnD0JGd2E+TSnkKf5lzUo8VJ3ntWo5ekiC/bFC/1HKFHLfV3/C+A1GdhUowpULXw5gNB+yHuu uZTekU8+LZg1E94ylWQI+4b+HFADNuj4Ugc3EerTQ7C/MwwZTRzMw7/Vft4dmspSDojiTvK/F /XqByOh2wYwpJAw4Ao+2z1WC0XGPtTk/2F5YEfF2SiSCssF0926GZwyIlY/+0pObFxUpTXFkn auIUK2/dlx81XoTOtQqBZgBo3n9JY0XA1ErD9eMhQxecGfjujbkmTP5AGIU7PeLIB9JCZSGQS /8yG5ipClEuvXzzHawazYtTB9qvUg+nUs+esrCOdnpXneAFT0TtsIPs9sVb+1WcLFSNWs1yuC 1wqkOf8v4FrrDIFhYb2azjF4C4sXv4udNFLveAeIM/FSBQ3hkim4NyCfqCfLuMs23tMhHY07u rYqCT4vhXfXq1+iaqJMpIfZ4lzvQRrF11COuVqqUXQqj6qX8ZA6M01fNdr19/tNIBait8ND73 nRA4t3nLebsIgQ6IdzRGVBewxA0/NbUHDBd5tkPRlAbreJtC60znm1gYpSW4ZCiFxrXq5D1Rx JdNiwyN8Lk28vsRgz7XEALvoK2paktO+kzHPCdkPBlTGgj9tSy6mlukFtsBCcg7j2B0h8TXgm ZHkkj0EIlDO2i/gvk+j9l3ncLmth8eNDXkA+kQs98mHTAbvIxTaPaJ+eaXmOqfF+L3MlShWC 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:196977 Archived-At: On 2020-12-29 12:24, Drew Adams wrote: > My own take is different. I think the behavior should be similar to > what we do for a file. > > The only difference I can think of (so far) is that the notion of > "saving" the changes is combined with the notion of turning off > read-only. For a file those are two different things: `C-x C-q' > doesn't save editing changes to disk. > > When you use `C-x C-q' to go back to Dired mode from WDired, you are > in effect saving your changes. I was familiar with the "C-c C-c" keybinding, but I tried your keybinding just now for a simple edit and it work! I don't see it documented like "C-c C-c" but both *are* bound to the same function. > > If you're in WDired making changes, and something - ANYTHING, inside > or outside Emacs - deletes the directory, then what should happen is > that when you try `C-x C-q' to save your changes, the directory and > its files and subdirs are created, so that the Dired buffer is made to > correspond to the changes you made. > > That may not be easy to implement. But ideally that's the behavior I'd > like: just like saving changes to a file buffer, if something - > ANYTHING - deletes the file while you're editing its buffer. It would also create expectation-conflicts between inside-emacs expectations and outside-emacs expectations. For example, if outside emacs I perform a 'shred' operation on a dirtree, I wouldn't want that operation undone by emacs. I would have a likewise expectation for a simple delete in an environment that doesn't implement some form of 'trash-can'. At worst case, I'm imagining emacs performing file-locks on all elements of huge dirtree in a multi-user environment, all for a single file rename... =2D- hkp://keys.gnupg.net CA45 09B5 5351 7C11 A9D1 7286 0036 9E45 1595 8BC0