emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating an empty file


From: Stefan Monnier
Subject: Re: Creating an empty file
Date: Tue, 23 Jan 2007 20:19:24 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.92 (gnu/linux)

> I don't think this a good idea since it will also cause Emacs to
> refuse deleting the buffer without confirmation, and it will cause
> autosaving to occur.

Good point.

> I think the current behavior is perfectly fine with regard to setting
> the modification flag (or rather not setting it).  The problem rather
> is that C-x C-s consults nothing except the modification flag before
> deciding not to save at all, and not asking a question about it.  And
> the prefix flag is already used for a different purpose, so we can't
> use that to signal "I really mean it".

So maybe save-buffer should first check to see if the file exists, and if
not, it should save, even if there are no changes.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]