[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: save-query-if-deleted
From: |
martin rudalics |
Subject: |
Re: save-query-if-deleted |
Date: |
Wed, 27 Sep 2006 14:12:45 +0200 |
User-agent: |
Mozilla Thunderbird 1.0 (Windows/20041206) |
> 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.