[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Creating an empty file
From: |
Michaël Cadilhac |
Subject: |
Re: Creating an empty file |
Date: |
Tue, 23 Jan 2007 19:20:20 +0100 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.92 (gnu/linux) |
David Kastrup <address@hidden> writes:
> Jay Belanger <address@hidden> writes:
>
>> address@hidden (Michaël Cadilhac) writes:
>>
>>> David Kastrup <address@hidden> writes:
>>>
>>>> If I do
>>>> C-x C-f somefile.txt RET C-x C-s
>>>> in order to create and save an empty file, Emacs replies
>>>>
>>>> No changes need to be saved
>>>>
>>>> and does not actually save the file, even though saving the file would
>>>> change the state on disk.
>>>
>>> I can't reproduce it.
>>
>> I can, even with emacs -Q.
>
> I think Michaël assumed that I meant to open an _existing_ file.
Worse, I misread the RET : I did C-x C-f a.txt RET *RET* C-x C-s ;
sorry my bad.
If I have to create an empty file, I do C-x C-f a.txt RET RET
<backspace> then save ; this is why I did that.
The ... unnatural way (but Emacs way) to do it is probably :
C-x C-f a.txt RET C-u M-~ C-x C-s
My opinion is that Emacs is doing TRT. But I may be influenced by some
years of practice :-)
--
| Michaël `Micha' Cadilhac | Un certain Blaise Pascal |
| Epita/LRDE Promo 2007 | etc... etc... |
| http://michael.cadilhac.name | -- Prévert (Les paris stupides) |
`--JID: address@hidden' - --'
pgprJOv7RTaic.pgp
Description: PGP signature
- Re: Creating an empty file, (continued)
- 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
- Re: Creating an empty file, Piet van Oostrum, 2007/01/25
Re: Creating an empty file,
Michaël Cadilhac <=
Re: Creating an empty file, Leo, 2007/01/23