help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs ignores modified state of "untitled" buffer


From: Stephen Berman
Subject: Re: Emacs ignores modified state of "untitled" buffer
Date: Wed, 19 May 2010 22:34:10 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

On Wed, 19 May 2010 16:52:12 +0200 Stefan Vollmar <vollmar@nf.mpg.de> wrote:

> 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?

How about setting buffer-offer-save to t (with setq-default if you want
it for all buffers)?

Steve Berman




reply via email to

[Prev in Thread] Current Thread [Next in Thread]