all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
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 10:33:19 -0400	[thread overview]
Message-ID: <jwvip116j3q.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87zjud5aej.fsf@rosalinde.fritz.box> (Stephen Berman's message of "Wed, 26 Jun 2013 14:22:44 +0200")

> 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

There's no rule, but usually it's OK for Emacs to misbehave slightly in
such circumstances, tho it's also usually he case that Emacs tries to
handle such cases gracefully.

IOW it depends: should it be obvious to the user that just "rm"ing the
file will lead to an error?
E.g. can she still see a reference to the file somewhere else)?  If the
remaining ("dangling") reference to the lost file is not shown to the
user, than Emacs should work harder to try and handle the
disappearance seamlessly.


        Stefan



  reply	other threads:[~2013-06-26 14:33 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 [this message]
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

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=jwvip116j3q.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.