all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stephen Berman <stephen.berman@gmx.net>
To: Timur Aydin <ta@taydin.org>
Cc: emacs-devel@gnu.org
Subject: Re: Question about handling file deletion
Date: Sun, 30 Jun 2013 00:44:23 +0200	[thread overview]
Message-ID: <87mwq88rlk.fsf@rosalinde.fritz.box> (raw)
In-Reply-To: <51CEE315.1020803@taydin.org> (Timur Aydin's message of "Sat, 29 Jun 2013 16:37:25 +0300")

On Sat, 29 Jun 2013 16:37:25 +0300 Timur Aydin <ta@taydin.org> wrote:

> On 6/26/2013 3:22 PM, Stephen Berman wrote:
>> If a package provides functionality for deleting files used by it, is it
>> considered a bug in the package if it does not handle the situation
>> where a user deletes such files using a command outside of the package
>> and this causes errors when using the package which don't arise if the
>> package file-deletion functionality is used?  I'm faced with this issue
>> in the new version of todo-mode.el (see bug#14688).  If someone deletes
>> a todo file using e.g. Dired and then gets an error in Todo mode and
>> reports it as a bug, is it kosher for me reply "If it hurts, don't do
>> that.  Use todo-delete-file." and close the bug?  (That command doesn't
>> actually exist yet, but I think it will be much easier to implement than
>> trying to handle the result of deleting todo files outside of Todo
>> mode.)
>
> When I visit a file and then delete that file using "rm", the buffer of that
> file is still there and emacs doesn't do anything about it. So if somebody
> deletes a TODO file, why not let the todo information stay in the respective
> buffer? 

It does, and this can cause problems, as I elaborated in this thread.

>         So what is different about todo-mode.el that makes it necessary to
> implement a different behavior?
>
> I'm not criticizing you motivation, only trying to understand the situation
> better.

I tried to explain that here:

http://lists.gnu.org/archive/html/emacs-devel/2013-06/msg01154.html

But in this followup:

http://lists.gnu.org/archive/html/emacs-devel/2013-06/msg01216.html

I acknowledged that it's better to handle external file deletion, and
that's what I'll try to do.

Steve Berman



      reply	other threads:[~2013-06-29 22:44 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
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 [this message]

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=87mwq88rlk.fsf@rosalinde.fritz.box \
    --to=stephen.berman@gmx.net \
    --cc=emacs-devel@gnu.org \
    --cc=ta@taydin.org \
    /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.