unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Emacs ignores modified state of "untitled" buffer
@ 2010-05-19 14:52 Stefan Vollmar
  2010-05-19 15:04 ` Drew Adams
                   ` (2 more replies)
  0 siblings, 3 replies; 22+ messages in thread
From: Stefan Vollmar @ 2010-05-19 14:52 UTC (permalink / raw)
  To: Emacs mailing list

[-- Attachment #1: Type: text/plain, Size: 931 bytes --]

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







[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 4409 bytes --]

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2010-05-29  1:04 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-19 14:52 Emacs ignores modified state of "untitled" buffer Stefan Vollmar
2010-05-19 15:04 ` Drew Adams
2010-05-19 20:34 ` Stephen Berman
2010-05-20 12:45 ` Kevin Rodgers
2010-05-20 13:29   ` Drew Adams
2010-05-20 14:00     ` Stefan Vollmar
2010-05-21  2:00       ` Kevin Rodgers
2010-05-21  2:06         ` Lennart Borgman
2010-05-21  1:56     ` Kevin Rodgers
2010-05-21  8:03       ` Stefan Vollmar
2010-05-21 13:17         ` Kevin Rodgers
2010-05-21 13:59           ` Stefan Vollmar
2010-05-21 14:11             ` Kevin Rodgers
2010-05-21 14:30               ` Stefan Vollmar
2010-05-21 17:15           ` Lennart Borgman
2010-05-21 20:49             ` Stefan Vollmar
2010-05-21 20:56               ` Lennart Borgman
2010-05-21 14:20       ` Drew Adams
2010-05-28 14:32         ` Kevin Rodgers
2010-05-28 17:18           ` Drew Adams
2010-05-28 21:21             ` Stefan Vollmar
     [not found]           ` <mailman.2.1275067137.32597.help-gnu-emacs@gnu.org>
2010-05-29  1:04             ` Tim X

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).