From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Question about handling file deletion Date: Wed, 26 Jun 2013 21:42:19 -0400 Message-ID: References: <87zjud5aej.fsf@rosalinde.fritz.box> <87mwqc5wja.fsf@rosalinde.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1372297345 5588 80.91.229.3 (27 Jun 2013 01:42:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 27 Jun 2013 01:42:25 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stephen Berman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 27 03:42:26 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Us1E9-00054p-Ch for ged-emacs-devel@m.gmane.org; Thu, 27 Jun 2013 03:42:25 +0200 Original-Received: from localhost ([::1]:33726 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Us1E9-0003Zz-2C for ged-emacs-devel@m.gmane.org; Wed, 26 Jun 2013 21:42:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55087) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Us1E5-0003Zt-BE for emacs-devel@gnu.org; Wed, 26 Jun 2013 21:42:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Us1E4-00060n-Hh for emacs-devel@gnu.org; Wed, 26 Jun 2013 21:42:21 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:29046) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Us1E4-00060i-Dc for emacs-devel@gnu.org; Wed, 26 Jun 2013 21:42:20 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFMCppA/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kiB4GwS2NDYN9A6R6gV6DE4FK X-IPAS-Result: Av4EABK/CFFMCppA/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kiB4GwS2NDYN9A6R6gV6DE4FK X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="17262953" Original-Received: from 76-10-154-64.dsl.teksavvy.com (HELO fmsmemgm.homelinux.net) ([76.10.154.64]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 26 Jun 2013 21:42:14 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 8C970AE34D; Wed, 26 Jun 2013 21:42:19 -0400 (EDT) In-Reply-To: <87mwqc5wja.fsf@rosalinde.fritz.box> (Stephen Berman's message of "Thu, 27 Jun 2013 00:36:57 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.182 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:161122 Archived-At: > I'm not sure I understand what you mean by "reference to the lost file". I meant it in a very general way. E.g. a buffer whose buffer-file-name points to this file. Or the presence of this file name in a list of files somewhere. > The Todo mode state includes a list of all todo files, which is exposed > to users for e.g. minibuffer completion. If a file is deleted from > outside of Todo mode, this list won't be updated, so in that sense it > contains a "reference to the lost file", which the user can see. That seems harmless. > But while the user presumably knows the file is missing, Todo mode > doesn't, and that can lead to errors, especially if a live buffer is > still holding the content of the deleted file and the user calls > a Todo command to manipulate the buffer. What kind of errors? Stefan