[Top][All Lists]
[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
- Re: Creating an empty file, Jay Belanger, 2007/01/23
- Re: Creating an empty file, David Kastrup, 2007/01/23
- Re: Creating an empty file, Giorgos Keramidas, 2007/01/24
- Re: Creating an empty file, Kevin Rodgers, 2007/01/25
- Re: Creating an empty file, Romain Francoise, 2007/01/25
- Re: Creating an empty file, Stefan Monnier, 2007/01/25
- Re: Creating an empty file, Richard Stallman, 2007/01/25
- Re: Creating an empty file, martin rudalics, 2007/01/25
- Re: Creating an empty file, Alfred M. Szmidt, 2007/01/25
- Re: Creating an empty file, Lennart Borgman (gmail), 2007/01/25
- Re: Creating an empty file, Richard Stallman, 2007/01/26