Stefan Monnier <[EMAIL PROTECTED]> writes: >>> Yet another variety would be to create a buffer which does have a >>> file, call it "Unnamed" or some such (i.e., in the default directory), >>> and if such a file already exists, modify it by attaching something >>> like a number. > >> I think the default emacs behavior (if the buffer doesn't have a name, >> ask for one when saving) is far better. You could create new >> _buffer_ names like "unnamed" or whatever, but actually setting the >> _file_ name to that seems harmful. > > It all depends on whether other parts of the code would be adjusted or not. > The important issues about the behavior of "new files" (whose file name has > not yet been set): > - make sure C-x C-s prompts for a file name. > - make sure autosave works. > - make sure the auto-save-list includes the new files. > - there might be more.
I think the main point is that the mode is set from auto-mode-alist, and that things like auto-insert work. Specifying the file name saves specifying mode and stuff. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel