2005/6/30, Eli Zaretskii <[EMAIL PROTECTED]>: > > 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. _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel