emacs-devel
[Top][All Lists]
Advanced

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

Re: File menu changes (suggestions)


From: David Kastrup
Subject: Re: File menu changes (suggestions)
Date: Thu, 30 Jun 2005 07:38:39 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Stefan Monnier <address@hidden> 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




reply via email to

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