From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Stephen Berman <stephen.berman@gmx.net>
Cc: emacs-devel@gnu.org
Subject: Re: Question about handling file deletion
Date: Wed, 26 Jun 2013 21:42:19 -0400 [thread overview]
Message-ID: <jwv38s48h5u.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87mwqc5wja.fsf@rosalinde.fritz.box> (Stephen Berman's message of "Thu, 27 Jun 2013 00:36:57 +0200")
> 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
next prev parent reply other threads:[~2013-06-27 1:42 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-26 12:22 Question about handling file deletion Stephen Berman
2013-06-26 14:33 ` Stefan Monnier
2013-06-26 22:36 ` Stephen Berman
2013-06-27 1:42 ` Stefan Monnier [this message]
2013-06-28 8:36 ` Stephen Berman
2013-06-28 22:40 ` Stefan Monnier
2013-06-29 13:37 ` Timur Aydin
2013-06-29 22:44 ` Stephen Berman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwv38s48h5u.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=stephen.berman@gmx.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.