From: michael@cadilhac.name (Michaël Cadilhac)
Cc: emacs-devel@gnu.org
Subject: Re: Creating an empty file
Date: Tue, 23 Jan 2007 19:20:20 +0100 [thread overview]
Message-ID: <87y7ntppuj.fsf@lrde.org> (raw)
In-Reply-To: <861wllheo9.fsf@lola.quinscape.zz> (David Kastrup's message of "Tue\, 23 Jan 2007 17\:48\:54 +0100")
[-- Attachment #1.1: Type: text/plain, Size: 1326 bytes --]
David Kastrup <dak@gnu.org> writes:
> Jay Belanger <belanger@truman.edu> writes:
>
>> michael@cadilhac.name (Michaël Cadilhac) writes:
>>
>>> David Kastrup <dak@gnu.org> 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: michael.cadilhac@gmail.com--' - --'
[-- Attachment #1.2: Type: application/pgp-signature, Size: 188 bytes --]
[-- Attachment #2: Type: text/plain, Size: 142 bytes --]
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel
next prev parent reply other threads:[~2007-01-23 18:20 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <86bqkphiyj.fsf@lola.quinscape.zz>
[not found] ` <87odopr8ga.fsf@lrde.org>
2007-01-23 16:35 ` Creating an empty file Jay Belanger
2007-01-23 16:48 ` David Kastrup
2007-01-23 17:19 ` Jay Belanger
2007-01-23 17:23 ` David Kastrup
2007-01-23 17:57 ` Michaël Cadilhac
2007-01-23 23:56 ` David Kastrup
2007-01-24 1:19 ` Stefan Monnier
2007-01-24 7:12 ` martin rudalics
2007-01-24 2:58 ` Giorgos Keramidas
2007-01-25 9:06 ` Kevin Rodgers
2007-01-25 10:36 ` Romain Francoise
2007-01-25 19:39 ` Stefan Monnier
2007-01-25 21:44 ` Richard Stallman
2007-01-25 22:01 ` martin rudalics
2007-01-25 22:07 ` Alfred M. Szmidt
2007-01-25 22:14 ` Lennart Borgman (gmail)
2007-01-26 11:43 ` Richard Stallman
2007-01-25 22:14 ` Piet van Oostrum
2007-01-23 18:20 ` Michaël Cadilhac [this message]
2007-01-23 16:49 ` Leo
2007-01-23 17:11 ` David Kastrup
2007-01-23 21:57 ` Phil Jackson
2007-01-24 7:37 ` David Kastrup
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=87y7ntppuj.fsf@lrde.org \
--to=michael@cadilhac.name \
--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.