all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: "Sebastien Vauban" <sva-news@mygooglest.com>
Cc: 15902@debbugs.gnu.org
Subject: bug#15902: 24.3.50; Auto-save file not deleted when quitting Emacs (and saying "don't save")
Date: Fri, 15 Nov 2013 20:18:14 -0500	[thread overview]
Message-ID: <jwv4n7dqhnc.fsf-monnier+emacsbugs@gnu.org> (raw)
In-Reply-To: <86txfd4u6n.fsf@somewhere.org> (Sebastien Vauban's message of "Fri, 15 Nov 2013 15:26:56 +0100")

> For example, when I open some files after 3 weeks, how will I know that, for
> some of them, I explicitly disregarded the changes when leaving Emacs (and
> should ignore the message), while, for others, I did not intend to loose the
> modifications, and I would need to recover them?

Of course, it's a tradeoff.  We could let the user choose between "exit
with auto-save" and "exit without auto-save".  But along with "save
& exit" that would make it a 3-way answer, so it would make it
more complex than the simple yes/or question we have now.

Note also that if you don't know whether it's worth recovering, you can
just try it out, then look at the resulting unsaved changes (via
diff-buffer-with-file).

This design is based on the assumption that the usually will usually know if
recovery is useful.  If that's the case, then Emacs's behavior is very
convenient, providing safe defaults without getting in the way.  But if
that's not the case, then indeed it's not perfect, but I think it's
still fairly good.

Another options it to use M-~ before exiting when you know that you
don't want to keep the changes: that should get you rid of both the
prompt and the auto-save file.


        Stefan





  reply	other threads:[~2013-11-16  1:18 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-15 11:23 bug#15902: 24.3.50; Auto-save file not deleted when quitting Emacs (and saying "don't save") Sebastien Vauban
2013-11-15 11:50 ` Eli Zaretskii
     [not found]   ` <83eh6hj34j.fsf-mXXj517/zsQ@public.gmane.org>
2013-11-15 12:19     ` Sebastien Vauban
2013-11-15 14:05       ` Stefan Monnier
     [not found]         ` <jwvhabd4vev.fsf-monnier+emacsbugs-mXXj517/zsQ@public.gmane.org>
2013-11-15 14:26           ` Sebastien Vauban
2013-11-16  1:18             ` Stefan Monnier [this message]
     [not found]             ` <mailman.6307.1384564761.10748.bug-gnu-emacs@gnu.org>
2013-11-27 10:27               ` Francesco Pizzolante
2013-11-16 20:15 ` Nicolas Richard
     [not found] ` <mailman.6383.1384633039.10748.bug-gnu-emacs@gnu.org>
2013-11-17 15:17   ` bug#15902: 24.3.50; ?Auto-save file not deleted when quitting Emacs (and saying "don't?save") Alan Mackenzie
2019-08-18 17:45 ` bug#15902: 24.3.50; Auto-save file not deleted when quitting Emacs (and saying "don't save") Stefan Kangas

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=jwv4n7dqhnc.fsf-monnier+emacsbugs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=15902@debbugs.gnu.org \
    --cc=sva-news@mygooglest.com \
    /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.