emacs-devel
[Top][All Lists]
Advanced

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

Re: File menu changes (suggestions)


From: Miles Bader
Subject: Re: File menu changes (suggestions)
Date: Thu, 30 Jun 2005 08:46:08 +0900

2005/6/30, Eli Zaretskii <address@hidden>:
> > This seems to work already if you save a buffer with no associated filename.
> 
> True; but what about if you kill Emacs? IIRC, a buffer that has no
> associated file will not cause Emacs to prompt for saving it, right?
> That's why I suggested to pick some mundane file name automatically.

I don't think we should be creating random filenames, and I think we
should treat such "new" buffers more like (though not entirely like)
scratch buffers than normal file-visiting buffers.

However, if someone creates a buffer with a "New File" menu item, it
is actually somewhat more likely that they intended to save it.

So I can envision a "New File" menu item that would (1) keep the
buffer-file-name `nil', but (2) turn on auto-save mode, and (3) mark
the buffer specially so that exit-emacs asks about saving it (and if
you answer `y', asks you for a filename).

[Of course scratch buffers created the old-fashioned way should
continue to be not saved by default; that's far too ingrained to
change I think.  Maybe a non-menu user would want to use "M-x
new-file" sometimes though...]

-Miles
-- 
Do not taunt Happy Fun Ball.




reply via email to

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