From: martin rudalics <rudalics@gmx.at>
Cc: Emacs Developement List <emacs-devel@gnu.org>
Subject: Re: save-query-if-deleted
Date: Wed, 27 Sep 2006 14:12:45 +0200 [thread overview]
Message-ID: <451A6ABD.2030806@gmx.at> (raw)
In-Reply-To: <quack.20060927T0137.lthlko5emd7@roar.cs.berkeley.edu>
> I propose the patch below which adds the variable
> `save-query-if-deleted'. If non-nil, the `basic-save-buffer' will
> query before saving if the file has been deleted, but existed
> since last visited/saved.
>
> In this patch it defaults to nil, but I think it is a very useful
> feature. Usually when a file no longer exists it's because I
> renamed it in a shell window and forgot to re-open it in Emacs; in
> these situations, saving it should require confirmation.
>
> What do you think?
I'd appreciate it. If `buffer-file-name' and `save-query-if-deleted'
are both non-nil, I'd have `buffer-save-buffer' ask whether to save the
buffer even if it was not modified.
next prev parent reply other threads:[~2006-09-27 12:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-27 8:37 save-query-if-deleted Karl Chen
2006-09-27 12:12 ` martin rudalics [this message]
2006-09-27 18:12 ` save-query-if-deleted Eli Zaretskii
2006-09-28 2:13 ` save-query-if-deleted Richard Stallman
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=451A6ABD.2030806@gmx.at \
--to=rudalics@gmx.at \
--cc=emacs-devel@gnu.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.