[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Emacs ignores modified state of "untitled" buffer
From: |
Stefan Vollmar |
Subject: |
Emacs ignores modified state of "untitled" buffer |
Date: |
Wed, 19 May 2010 16:52:12 +0200 |
Hello,
we have a user who wants to always open Emacs with a new "untitled" buffer so
he can start writing right away without having to think of a file name first
(similar to a "New Document" feature in Mac and Windows programs). If we try
this in site-start.el:
(generate-new-buffer "untitled")
(switch-to-buffer "untitled")
we are almost there - Emacs starts with the new "untitled" buffer. However, if
he then exits Emacs, Emacs does not warn about a modified buffer and potential
data loss, although the buffer is marked dirty. How can we get the usual
behaviour for this new buffer?
Many thanks in advance,
Stefan
--
Dr. Stefan Vollmar, Dipl.-Phys.
Head of IT group
Max-Planck-Institut für neurologische Forschung
Gleuelerstr. 50, 50931 Köln, Germany
Tel.: +49-221-4726-213 FAX +49-221-4726-298
Tel.: +49-221-478-5713 Mobile: 0160-93874279
Email: vollmar@nf.mpg.de http://www.nf.mpg.de
smime.p7s
Description: S/MIME cryptographic signature
- Emacs ignores modified state of "untitled" buffer,
Stefan Vollmar <=
- RE: Emacs ignores modified state of "untitled" buffer, Drew Adams, 2010/05/19
- Re: Emacs ignores modified state of "untitled" buffer, Stephen Berman, 2010/05/19
- Re: Emacs ignores modified state of "untitled" buffer, Kevin Rodgers, 2010/05/20
- Re: Emacs ignores modified state of "untitled" buffer, Kevin Rodgers, 2010/05/20
- Re: Emacs ignores modified state of "untitled" buffer, Stefan Vollmar, 2010/05/21
- Re: Emacs ignores modified state of "untitled" buffer, Kevin Rodgers, 2010/05/21